Expand description
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.
Structs§
- A cookie associated with the request which may or may not be sent with it. Includes the cookies itself and reasons for blocking or exemption. AssociatedCookie
- Authorization challenge for HTTP status code 401 or 407. AuthChallenge
- Response to an AuthChallenge. AuthChallengeResponse
- A cookie which was not stored from a response with the corresponding reason. BlockedSetCookieWithReason
- Information about the cached resource. CachedResource
- Clears accepted encodings set by setAcceptedEncodings clearAcceptedEncodingsOverride
- Clears accepted encodings set by setAcceptedEncodings clearAcceptedEncodingsOverride
- Clears browser cache. clearBrowserCache
- Clears browser cache. clearBrowserCache
- Clears browser cookies. clearBrowserCookies
- Clears browser cookies. clearBrowserCookies
- Cookie object Cookie
- Cookie parameter object CookieParam
- cookiePartitionKey object The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h. CookiePartitionKey
- Deletes browser cookies with matching name and url or domain/path/partitionKey pair. deleteCookies
- Deletes browser cookies with matching name and url or domain/path/partitionKey pair. deleteCookies
- Disables network tracking, prevents network events from being sent to the client. disable
- Disables network tracking, prevents network events from being sent to the client. disable
- Activates emulation of network conditions. emulateNetworkConditions
- Activates emulation of network conditions. emulateNetworkConditions
- Enables network tracking, network events will now be delivered to the client. enable
- Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers ‘reportingApiReportAdded’ for all existing reports. enableReportingApi
- Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers ‘reportingApiReportAdded’ for all existing reports. enableReportingApi
- Enables network tracking, network events will now be delivered to the client. enable
- Fired when data chunk was received over the network. dataReceived
- Fired when EventSource message is received. eventSourceMessageReceived
- Fired when HTTP request has failed to load. loadingFailed
- Fired when HTTP request has finished loading. loadingFinished
- Fired once security policy has been updated. policyUpdated
- Is sent whenever a new report is added. And after ‘enableReportingApi’ for all existing reports. reportingApiReportAdded
- Fired if request ended up loading from cache. requestServedFromCache
- Fired when page is about to send HTTP request. requestWillBeSent
- Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request. requestWillBeSentExtraInfo
- Fired when resource loading priority is changed resourceChangedPriority
- Fired when HTTP response is available. responseReceived
- Fired when 103 Early Hints headers is received in addition to the common response. Not every responseReceived event will have an responseReceivedEarlyHints fired. Only one responseReceivedEarlyHints may be fired for eached responseReceived event. responseReceivedEarlyHints
- Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived. responseReceivedExtraInfo
- Fired when a signed exchange was received over the network signedExchangeReceived
- Fired when request for resources within a .wbn file failed. subresourceWebBundleInnerResponseError
- Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage. subresourceWebBundleInnerResponseParsed
- Fired once when parsing the .wbn file has failed. subresourceWebBundleMetadataError
- Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents. subresourceWebBundleMetadataReceived
- Fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received. trustTokenOperationDone
- Fired when WebSocket is closed. webSocketClosed
- Fired upon WebSocket creation. webSocketCreated
- Fired when WebSocket message error occurs. webSocketFrameError
- Fired when WebSocket message is received. webSocketFrameReceived
- Fired when WebSocket message is sent. webSocketFrameSent
- Fired when WebSocket handshake response becomes available. webSocketHandshakeResponseReceived
- Fired when WebSocket is about to initiate handshake. webSocketWillSendHandshakeRequest
- Fired when WebTransport is disposed. webTransportClosed
- Fired when WebTransport handshake is finished. webTransportConnectionEstablished
- Fired upon WebTransport creation. webTransportCreated
- A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason. ExemptedSetCookieWithReason
- Returns the DER-encoded certificate. getCertificate
- Returns the DER-encoded certificate. getCertificate
- Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the
cookies
field. getCookies - Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the
cookies
field. getCookies - Returns post data sent with the request. Returns an error when no data was sent with the request. getRequestPostData
- Returns post data sent with the request. Returns an error when no data was sent with the request. getRequestPostData
- Returns content served for the given currently intercepted request. getResponseBodyForInterception
- Returns content served for the given currently intercepted request. getResponseBodyForInterception
- Returns content served for the given request. getResponseBody
- Returns content served for the given request. getResponseBody
- Returns information about the COEP/COOP isolation status. getSecurityIsolationStatus
- Returns information about the COEP/COOP isolation status. getSecurityIsolationStatus
- Request / response headers as keys / values of JSON object. Headers
- Information about the request initiator. Initiator
- Unique intercepted request identifier. InterceptionId
- An options object that may be extended later to better support CORS, CORB and streaming. LoadNetworkResourceOptions
- An object providing the result of a network resource load. LoadNetworkResourcePageResult
- Fetches the resource and returns the content. loadNetworkResource
- Fetches the resource and returns the content. loadNetworkResource
- Unique loader identifier. LoaderId
- Monotonically increasing time in seconds since an arbitrary point in the past. MonotonicTime
- Post data entry for HTTP request PostDataEntry
- This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password. replayXHR
- This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password. replayXHR
- An object representing a report generated by the Reporting API. ReportingApiReport
- HTTP request data. Request
- Unique request identifier. RequestId
- Request pattern for interception. RequestPattern
- Timing information for the request. ResourceTiming
- HTTP response data. Response
- Searches for given string in response content. searchInResponseBody
- Searches for given string in response content. searchInResponseBody
- Security details about a request. SecurityDetails
- Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted. setAcceptedEncodings
- Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted. setAcceptedEncodings
- Specifies whether to attach a page script stack id in requests setAttachDebugStack
- Specifies whether to attach a page script stack id in requests setAttachDebugStack
- Blocks URLs from loading. setBlockedURLs
- Blocks URLs from loading. setBlockedURLs
- Toggles ignoring of service worker for each request. setBypassServiceWorker
- Toggles ignoring of service worker for each request. setBypassServiceWorker
- Toggles ignoring cache for each request. If
true
, cache will not be used. setCacheDisabled - Toggles ignoring cache for each request. If
true
, cache will not be used. setCacheDisabled - Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. setCookie
- Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. setCookie
- Sets given cookies. setCookies
- Sets given cookies. setCookies
- Specifies whether to always send extra HTTP headers with the requests from this page. setExtraHTTPHeaders
- Specifies whether to always send extra HTTP headers with the requests from this page. setExtraHTTPHeaders
- Allows overriding user agent with the given string. setUserAgentOverride
- Allows overriding user agent with the given string. setUserAgentOverride
- Details of a signed certificate timestamp (SCT). SignedCertificateTimestamp
- Information about a signed exchange response. SignedExchangeError
- Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation SignedExchangeHeader
- Information about a signed exchange response. SignedExchangeInfo
- Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 SignedExchangeSignature
- Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming. streamResourceContent
- Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming. streamResourceContent
- Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can’t be continued as is – you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. takeResponseBodyForInterceptionAsStream
- Returns a handle to the stream representing the response body. Note that after this command, the intercepted request can’t be continued as is – you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. takeResponseBodyForInterceptionAsStream
- UTC time in seconds, counted from January 1, 1970. TimeSinceEpoch
- Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl. TrustTokenParams
- WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. WebSocketFrame
- WebSocket request data. WebSocketRequest
- WebSocket response data. WebSocketResponse
Enums§
- The reason why Chrome uses a specific transport protocol for HTTP semantics.
- The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
- Source of the authentication challenge.
- The reason why request was blocked.
- Whether the request complied with Certificate Transparency policy.
- The underlying connection technology that the browser is supposedly using.
- List of content encodings supported by the backend.
- Types of reasons why a cookie may not be sent with a request.
- Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
- Represents the cookie’s ‘Priority’ status: https://tools.ietf.org/html/draft-west-cookie-priority-00
- Represents the cookie’s ‘SameSite’ status: https://tools.ietf.org/html/draft-west-first-party-cookies
- Represents the source scheme of the origin that originally set the cookie. A value of “Unset” allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.
- The reason why request was blocked.
- Network level fetch failure reason.
- Type of this initiator.
- Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
- The status of a Reporting API report.
- The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
- Loading priority of a resource request.
- Resource type as it was perceived by the rendering engine.
- Source of serviceworker response.
- Source of service worker router.
- Types of reasons why a cookie may not be stored from a response.
- Field type for a signed exchange related error.
- Detailed success or error status of the operation. ‘AlreadyExists’ also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).
- Only set for “token-redemption” operation and determine whether to request a fresh SRR or use a still valid cached SRR.