Contains information about a web request. An instance of this object is passed into the
Values of this type are objects. They contain the following properties:
string. The cookie store ID of the current context.
string. URL of the page into which the requested resource will be loaded.
integer. Zero if the request happens in the main frame; a positive value is the ID of a subframe in which the request happens. If the document of a (sub-)frame is loaded (
frameIdindicates the ID of this frame, not the ID of the outer frame. Frame IDs are unique within a tab.
boolean. Indicates if this response will be fetched from disk cache.
truefor private browsing requests.
string. Standard HTTP method: for example, "GET" or "POST".
string. URL of the resource that triggered the request. Note that this may not be the same as the URL of the page into which the requested resource will be loaded. For example, if a document triggers a load in a different window through the target attribute of a link, or a CSS document includes an image using the
url()functional notation, then this is the URL of the original document or of the CSS document, respectively.
integer. ID of the frame that contains the frame that sent the request. Set to -1 if no parent frame exists.
string. The ID of the request. Request IDs are unique within a browser session, so you can use an ID to identify different events associated with the same request.
webRequest.HttpHeaders. The HTTP request headers that will be sent with this request. Note that this is only included if the
"requestHeaders"option was passed into
integer. ID of the tab in which the request takes place. Set to -1 if the request is not related to a tab.
boolean. Indicates whether the request and its content window hierarchy is third party.
number. The time when this event fired, in milliseconds since the epoch.
webRequest.ResourceType. The type of resource being requested: for example, "image", "script", or "stylesheet".
string. Target of the request.
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.