provide option to override status line

This commit is contained in:
deepak1556 2016-04-08 14:03:57 +05:30
parent 4fc35a4587
commit 3fb39ad3ef
3 changed files with 33 additions and 4 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)`