Merge pull request #5030 from deepak1556/webrequest_response_headers_patch

session: webRequest.OnHeadersReceived should accept status line.
This commit is contained in:
Cheng Zhao 2016-04-11 20:04:32 +09:00
commit 5659ee5c0b
3 changed files with 63 additions and 7 deletions

View file

@ -446,6 +446,8 @@ The `callback` has to be called with an `response` object:
* `cancel` Boolean
* `responseHeaders` Object (optional) - When provided, the server is assumed
to have responded with these headers.
* `statusLine` String (optional) - Should be provided when overriding `responseHeaders`
to change header status otherwise original response header's status will be used.
#### `ses.webRequest.onResponseStarted([filter, ]listener)`