function(oXhr, oEntry) {
			var fnRespond = function() {
				if (oXhr.readyState !== 0) {
					var sResponseText = oEntry.response.content.text;

					// Transform headers to the required format for XMLHttpRequests.
					var oHeaders = {};
					oEntry.response.headers.forEach(function(mHeader) {
						oHeaders[mHeader.name] = mHeader.value;
					});

					// Support for injected callbacks
					if (typeof sResponseText === "function") {
						sResponseText = sResponseText();
					}

					oXhr.respond(
						oEntry.response.status,
						oHeaders,
						sResponseText
					);
				}
			};
			// If the request is async, a possible delay will be applied.
			if (oXhr.async) {
				// Create new browser task with the setTimeout function to make sure that responses of async requests are not delievered too fast.
				setTimeout(function() {
					fnRespond();
				}, this.calculateDelay(this.mDelaySettings, oEntry.time));
			} else {
				fnRespond();
			}
		}
function(oXhr, oEntry) {
			var fnRespond = function() {
				if (oXhr.readyState !== 0) {
					var sResponseText = oEntry.response.content.text;

					// Transform headers to the required format for XMLHttpRequests.
					var oHeaders = {};
					oEntry.response.headers.forEach(function(mHeader) {
						oHeaders[mHeader.name] = mHeader.value;
					});

					// Support for injected callbacks
					if (typeof sResponseText === "function") {
						sResponseText = sResponseText();
					}

					oXhr.respond(
						oEntry.response.status,
						oHeaders,
						sResponseText
					);
				}
			};
			// If the request is async, a possible delay will be applied.
			if (oXhr.async) {
				// Create new browser task with the setTimeout function to make sure that responses of async requests are not delievered too fast.
				setTimeout(function() {
					fnRespond();
				}, this.calculateDelay(this.mDelaySettings, oEntry.time));
			} else {
				fnRespond();
			}
		}
function ( oXhr , oEntry ) { var fnRespond = function ( ) { if ( oXhr . readyState !== 0 ) { var sResponseText = oEntry . response . content . text ; // Transform headers to the required format for XMLHttpRequests. var oHeaders = { } ; oEntry . response . headers . forEach ( function ( mHeader ) { oHeaders [ mHeader . name ] = mHeader . value ; } ) ; // Support for injected callbacks if ( typeof sResponseText === "function" ) { sResponseText = sResponseText ( ) ; } oXhr . respond ( oEntry . response . status , oHeaders , sResponseText ) ; } } ; // If the request is async, a possible delay will be applied. if ( oXhr . async ) { // Create new browser task with the setTimeout function to make sure that responses of async requests are not delievered too fast. setTimeout ( function ( ) { fnRespond ( ) ; } , this . calculateDelay ( this . mDelaySettings , oEntry . time ) ) ; } else { fnRespond ( ) ; } }
Responds to a given FakeXMLHttpRequest object with an entry from a har file.
If a delay is provided, the time is calculated and the response of async requests will be delayed.
Sync requests can not be deleayed.

@param {Object} oXhr FakeXMLHttpRequest to respond.
@param {Object} oEntry Entry from the har file.
Responds to a given FakeXMLHttpRequest object with an entry from a har file . If a delay is provided the time is calculated and the response of async requests will be delayed . Sync requests can not be deleayed .
This function is called by the XMLHttpRequests module when the response is ready.