Forked from dongyuwei/request-with-initiator-har.js
Created
February 22, 2013 23:45
-
-
Save espenfjo/5017467 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_buildRequest: function() | |
{ | |
var res = { | |
method: this._request.requestMethod, | |
url: this._buildRequestURL(this._request.url), | |
httpVersion: this._request.requestHttpVersion, | |
headers: this._request.requestHeaders, | |
queryString: this._buildParameters(this._request.queryParameters || []), | |
cookies: this._buildCookies(this._request.requestCookies || []), | |
headersSize: this._request.requestHeadersSize, | |
bodySize: this.requestBodySize, | |
initiator: this._request.initiator | |
}; | |
if (this._request.requestFormData) | |
res.postData = this._buildPostData(); | |
return res; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment