Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update type for responseHeaders in the webRequest module #18302

Merged
merged 1 commit into from May 16, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -131,11 +131,11 @@ response are visible by the time this listener is fired.
* `timestamp` Double
* `statusLine` String
* `statusCode` Integer
* `responseHeaders` Object
* `responseHeaders` Record<string, string> (Optional)
* `callback` Function
* `response` Object
* `cancel` Boolean (optional)
* `responseHeaders` Object (optional) - When provided, the server is assumed
* `responseHeaders` Record<string, string> (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
@@ -160,7 +160,7 @@ The `callback` has to be called with an `response` object.
* `resourceType` String
* `referrer` String
* `timestamp` Double
* `responseHeaders` Object
* `responseHeaders` Record<string, string> (Optional)
* `fromCache` Boolean - Indicates whether the response was fetched from disk
cache.
* `statusCode` Integer
@@ -189,7 +189,7 @@ and response headers are available.
* `ip` String (optional) - The server IP address that the request was
actually sent to.
* `fromCache` Boolean
* `responseHeaders` Object
* `responseHeaders` Record<string, string> (Optional)

The `listener` will be called with `listener(details)` when a server initiated
redirect is about to occur.
@@ -208,7 +208,7 @@ redirect is about to occur.
* `resourceType` String
* `referrer` String
* `timestamp` Double
* `responseHeaders` Object
* `responseHeaders` Record<string, string> (Optional)
* `fromCache` Boolean
* `statusCode` Integer
* `statusLine` String
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.