src/sap.ui.core/src/sap/ui/thirdparty/RequestRecorder.js
function(bDeleteRecordings) {
			// Check for the filename or ask for it (if configured)
			var sFilename = (this.sFilename || this.sDefaultFilename);
			if (this.bPromptForDownloadFilename) {
				sFilename = window.prompt("Enter file name", sFilename + ".har");
			} else {
				sFilename = sFilename + ".har";
			}

			// The content skeleton
			var mHarContent = {
				log: {
					version: "1.2",
					creator: {
						name: "RequestRecorder",
						version: "1.0"
					},
					entries: this.aRequests
				}
			};

			// Check if recorded entries should be cleared.
			if (bDeleteRecordings) {
				this.deleteRecordedEntries();
			}

			// Inject the data into the dom and download it (if configured).
			if (!this.bIsDownloadDisabled) {
				var sString = JSON.stringify(mHarContent, null, 4);
				var a = document.createElement("a");
				document.body.appendChild(a);
				var oBlob = new window.Blob([sString], { type: "octet/stream" });
				var sUrl = window.URL.createObjectURL(oBlob);
				a.href = sUrl;
				a.download = sFilename;
				a.click();
				window.URL.revokeObjectURL(sUrl);
			}
			return mHarContent;
		}
function(bDeleteRecordings) {
			// Check for the filename or ask for it (if configured)
			var sFilename = (this.sFilename || this.sDefaultFilename);
			if (this.bPromptForDownloadFilename) {
				sFilename = window.prompt("Enter file name", sFilename + ".har");
			} else {
				sFilename = sFilename + ".har";
			}

			// The content skeleton
			var mHarContent = {
				log: {
					version: "1.2",
					creator: {
						name: "RequestRecorder",
						version: "1.0"
					},
					entries: this.aRequests
				}
			};

			// Check if recorded entries should be cleared.
			if (bDeleteRecordings) {
				this.deleteRecordedEntries();
			}

			// Inject the data into the dom and download it (if configured).
			if (!this.bIsDownloadDisabled) {
				var sString = JSON.stringify(mHarContent, null, 4);
				var a = document.createElement("a");
				document.body.appendChild(a);
				var oBlob = new window.Blob([sString], { type: "octet/stream" });
				var sUrl = window.URL.createObjectURL(oBlob);
				a.href = sUrl;
				a.download = sFilename;
				a.click();
				window.URL.revokeObjectURL(sUrl);
			}
			return mHarContent;
		}
function ( bDeleteRecordings ) { // Check for the filename or ask for it (if configured) var sFilename = ( this . sFilename || this . sDefaultFilename ) ; if ( this . bPromptForDownloadFilename ) { sFilename = window . prompt ( "Enter file name" , sFilename + ".har" ) ; } else { sFilename = sFilename + ".har" ; } // The content skeleton var mHarContent = { log : { version : "1.2" , creator : { name : "RequestRecorder" , version : "1.0" } , entries : this . aRequests } } ; // Check if recorded entries should be cleared. if ( bDeleteRecordings ) { this . deleteRecordedEntries ( ) ; } // Inject the data into the dom and download it (if configured). if ( ! this . bIsDownloadDisabled ) { var sString = JSON . stringify ( mHarContent , null , 4 ) ; var a = document . createElement ( "a" ) ; document . body . appendChild ( a ) ; var oBlob = new window . Blob ( [ sString ] , { type : "octet/stream" } ) ; var sUrl = window . URL . createObjectURL ( oBlob ) ; a . href = sUrl ; a . download = sFilename ; a . click ( ) ; window . URL . revokeObjectURL ( sUrl ) ; } return mHarContent ; }
Transforms and delivers the recorded data for the har file.
If the downloading is not disabled the file will be downloaded automatically or with an optional prompt for a filename.

@param  {boolean} bDeleteRecordings True if the existing entries should be deleted.
@returns {Object} The recorded har file content
Transforms and delivers the recorded data for the har file . If the downloading is not disabled the file will be downloaded automatically or with an optional prompt for a filename .