chrome.experimental.webRequest
For information on how to use experimental APIs, see the chrome.experimental.* APIs page.
API reference: chrome.experimental.webRequest
Properties
getLastError
chrome.extensionlastError
Methods
method name
void
chrome.module.methodName(,
)
Undocumented.
A description from the json schema def of the function goes here.
Parameters
Returns
Callback function
The callback parameter should specify a function
that looks like this:
If you specify the callback parameter, it should
specify a function that looks like this:
function(Type param1, Type param2) {...};
This function was added in version .
If you require this function, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
Events
onBeforeRedirect
chrome.experimental.webRequest.onBeforeRedirect.addListener(function(object details) {...});
Undocumented.
Fires when a server initiated redirect is about to occur.
Parameters
-
details
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
requestId
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The ID of the request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The URL of the current request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
statusCode
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- Standard HTTP status code returned by the server.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
redirectUrl
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The new URL.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
timeStamp
(
optional
enumerated
Type
array of
number
)
-
Undocumented.
- The time when the browser was about to make the redirect, in milliseconds since the epoch.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
onBeforeRequest
chrome.experimental.webRequest.onBeforeRequest.addListener(function(object details) {...});
Undocumented.
Fires when a request is about to occur.
Parameters
-
details
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
requestId
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The ID of the request. Request IDs are unique within a browser session. As a result, they could be used to relate different events of the same request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
method
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- Standard HTTP method.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
tabId
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The ID of the tab in which the request takes place. Set to null if the request isn't related to a tab.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
type
(
optional
enumerated
Type
array of
string
["main_frame", "sub_frame", "stylesheet", "script", "image", "object", "other"]
)
-
Undocumented.
- How the requested resource will be used.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
timeStamp
(
optional
enumerated
Type
array of
number
)
-
Undocumented.
- The time when the browser was about to make the request, in milliseconds since the epoch.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
onCompleted
chrome.experimental.webRequest.onCompleted.addListener(function(object details) {...});
Undocumented.
Fires when a request is completed.
Parameters
-
details
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
requestId
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The ID of the request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The URL of the current request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
statusCode
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- Standard HTTP status code returned by the server.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
timeStamp
(
optional
enumerated
Type
array of
number
)
-
Undocumented.
- The time when the response was received completely, in milliseconds since the epoch.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
onErrorOccurred
chrome.experimental.webRequest.onErrorOccurred.addListener(function(object details) {...});
Undocumented.
Fires when an error occurs.
Parameters
-
details
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
requestId
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The ID of the request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The URL of the current request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
error
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The error description.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
timeStamp
(
optional
enumerated
Type
array of
number
)
-
Undocumented.
- The time when the error occurred, in milliseconds since the epoch.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
onHeadersReceived
chrome.experimental.webRequest.onHeadersReceived.addListener(function(object details) {...});
Undocumented.
Fires when the status line and response headers are received after a request is sent to the server.
Parameters
-
details
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
requestId
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The ID of the request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
statusCode
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- Standard HTTP status code returned by the server.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
timeStamp
(
optional
enumerated
Type
array of
number
)
-
Undocumented.
- The time when the status line and response headers were received, in milliseconds since the epoch.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
onRequestSent
chrome.experimental.webRequest.onRequestSent.addListener(function(object details) {...});
Undocumented.
Fires when a request is sent to the server.
Parameters
-
details
(
optional
enumerated
Type
array of
object
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
requestId
(
optional
enumerated
Type
array of
integer
)
-
Undocumented.
- The ID of the request.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
url
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
-
Description of this parameter from the json schema.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
ip
(
optional
enumerated
Type
array of
string
)
-
Undocumented.
- The server IP address that is actually connected to. Note that it may be a literal IPv6 address.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-
timeStamp
(
optional
enumerated
Type
array of
number
)
-
Undocumented.
- The time when the browser finished sending the request, in milliseconds since the epoch.
-
This parameter was added in version
.
You must omit this parameter in earlier versions,
and you may omit it in any version. If you require this
parameter, the manifest key
minimum_chrome_version
can ensure that your extension won't be run in an earlier browser version.
-
-
-