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.
Types, command parameters and event payloads for the Network
domain. The method-name constants for the same domain are in
crate::methods.
Structs§
- AdAncestry
- Encapsulates the script ancestry and the root script filter list rule that caused the resource or element to be labeled as an ad.
- AdProvenance
- Represents the provenance of an ad resource or element. Only one of
filterlistRuleoradScriptAncestrycan be set. IffilterlistRuleis provided, the resource URL directly matches a filter list rule. IfadScriptAncestryis provided, an ad script initiated the resource fetch or appended the element to the DOM. If neither is provided, the entity is known to be an ad, but provenance tracking information is unavailable. - AdScript
Identifier - Identifies the script on the stack that caused a resource or element to be labeled as an ad. For resources, this indicates the context that triggered the fetch. For elements, this indicates the context that caused the element to be appended to the DOM.
- Associated
Cookie - 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.
- Auth
Challenge - Authorization challenge for HTTP status code 401 or 407.
- Auth
Challenge Response - Response to an AuthChallenge.
- Block
Pattern - Experimental: may change without notice.
- Blocked
SetCookie With Reason - A cookie which was not stored from a response with the corresponding reason.
- Cached
Resource - Information about the cached resource.
- CanClear
Browser Cache Params - Tells whether clearing browser cache is supported.
- CanClear
Browser Cache Returns - What
Network.canClearBrowserCacheanswers with. - CanClear
Browser Cookies Params - Tells whether clearing browser cookies is supported.
- CanClear
Browser Cookies Returns - What
Network.canClearBrowserCookiesanswers with. - CanEmulate
Network Conditions Params - Tells whether emulation of network conditions is supported.
- CanEmulate
Network Conditions Returns - What
Network.canEmulateNetworkConditionsanswers with. - Challenge
Event Details - Session event details specific to challenges.
- Clear
Browser Cache Params - Clears browser cache.
- Clear
Browser Cookies Params - Clears browser cookies.
- Client
Security State - Experimental: may change without notice.
- Configure
Durable Messages Params - Configures storing response bodies outside of renderer, so that these survive a cross-process navigation. If maxTotalBufferSize is not set, durable messages are disabled.
- Connect
Timing - Experimental: may change without notice.
- Content
Security Policy Status - Experimental: may change without notice.
- Cookie
- Cookie object
- Cookie
Param - Cookie parameter object
- Cookie
Partition Key - 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.
- Cors
Error Status - Creation
Event Details - Session event details specific to creation.
- Cross
Origin Embedder Policy Status - Experimental: may change without notice.
- Cross
Origin Opener Policy Status - Experimental: may change without notice.
- Data
Received Event - Fired when data chunk was received over the network.
- Delete
Cookies Params - Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
- Delete
Device Bound Session Params - Deletes a device bound session.
- Device
Bound Session - A device bound session.
- Device
Bound Session Cookie Craving - A device bound session’s cookie craving.
- Device
Bound Session Event Occurred Event - Triggered when a device bound session event occurs.
- Device
Bound Session Failed Request - Details about a failed device bound session network request.
- Device
Bound Session Inclusion Rules - A device bound session’s inclusion rules.
- Device
Bound Session Key - Unique identifier for a device bound session.
- Device
Bound Session UrlRule - A device bound session’s inclusion URL rule.
- Device
Bound Session With Usage - How a device bound session was used during a request.
- Device
Bound Sessions Added Event - Triggered when the initial set of device bound sessions is added.
- Direct
TcpSocket Aborted Event - Fired when direct_socket.TCPSocket is aborted.
- Direct
TcpSocket Chunk Received Event - Fired when data is received from tcp direct socket stream.
- Direct
TcpSocket Chunk Sent Event - Fired when data is sent to tcp direct socket stream.
- Direct
TcpSocket Closed Event - Fired when direct_socket.TCPSocket is closed.
- Direct
TcpSocket Created Event - Fired upon direct_socket.TCPSocket creation.
- Direct
TcpSocket Opened Event - Fired when direct_socket.TCPSocket connection is opened.
- Direct
TcpSocket Options - Experimental: may change without notice.
- Direct
UdpMessage - Experimental: may change without notice.
- Direct
UdpSocket Aborted Event - Fired when direct_socket.UDPSocket is aborted.
- Direct
UdpSocket Chunk Received Event - Fired when message is received from udp direct socket stream.
- Direct
UdpSocket Chunk Sent Event - Fired when message is sent to udp direct socket stream.
- Direct
UdpSocket Closed Event - Fired when direct_socket.UDPSocket is closed.
- Direct
UdpSocket Created Event - Fired upon direct_socket.UDPSocket creation.
- Direct
UdpSocket Joined Multicast Group Event - Experimental: may change without notice.
- Direct
UdpSocket Left Multicast Group Event - Experimental: may change without notice.
- Direct
UdpSocket Opened Event - Fired when direct_socket.UDPSocket connection is opened.
- Direct
UdpSocket Options - Experimental: may change without notice.
- Disable
Params - Disables network tracking, prevents network events from being sent to the client.
- Emulate
Network Conditions ByRule Params - Activates emulation of network conditions for individual requests using
URL match patterns. Unlike the deprecated Network.emulateNetworkConditions
this method does not affect
navigatorstate. Use Network.overrideNetworkState to explicitly modifynavigatorbehavior. - Emulate
Network Conditions ByRule Returns - What
Network.emulateNetworkConditionsByRuleanswers with. - Emulate
Network Conditions Params - Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule and overrideNetworkState commands, which can be used together to the same effect.
- Enable
Device Bound Sessions Params - Sets up tracking device bound sessions and fetching of initial set of sessions.
- Enable
Params - Enables network tracking, network events will now be delivered to the client.
- Enable
Reporting ApiParams - 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.
- Event
Source Message Received Event - Fired when EventSource message is received.
- Exempted
SetCookie With Reason - 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.
- Fetch
Schemeful Site Params - Fetches the schemeful site for a specific origin.
- Fetch
Schemeful Site Returns - What
Network.fetchSchemefulSiteanswers with. - GetAll
Cookies Params - Returns all browser cookies. Depending on the backend support, will return
detailed cookie information in the
cookiesfield. Deprecated. Use Storage.getCookies instead. - GetAll
Cookies Returns - What
Network.getAllCookiesanswers with. - GetCertificate
Params - Returns the DER-encoded certificate.
- GetCertificate
Returns - What
Network.getCertificateanswers with. - GetCookies
Params - Returns all browser cookies for the current URL. Depending on the backend
support, will return detailed cookie information in the
cookiesfield. - GetCookies
Returns - What
Network.getCookiesanswers with. - GetRequest
Post Data Params - Returns post data sent with the request. Returns an error when no data was sent with the request.
- GetRequest
Post Data Returns - What
Network.getRequestPostDataanswers with. - GetResponse
Body Params - Returns content served for the given request.
- GetResponse
Body Returns - What
Network.getResponseBodyanswers with. - GetSecurity
Isolation Status Params - Returns information about the COEP/COOP isolation status.
- GetSecurity
Isolation Status Returns - What
Network.getSecurityIsolationStatusanswers with. - Initiator
- Information about the request initiator.
- Load
Network Resource Options - An options object that may be extended later to better support CORS, CORB and streaming.
- Load
Network Resource Page Result - An object providing the result of a network resource load.
- Load
Network Resource Params - Fetches the resource and returns the content.
- Load
Network Resource Returns - What
Network.loadNetworkResourceanswers with. - Loading
Failed Event - Fired when HTTP request has failed to load.
- Loading
Finished Event - Fired when HTTP request has finished loading.
- Network
Conditions - Experimental: may change without notice.
- Override
Network State Params - Override the state of navigator.onLine and navigator.connection.
- Policy
Updated Event - Fired once security policy has been updated.
- Post
Data Entry - Post data entry for HTTP request
- Refresh
Event Details - Session event details specific to refresh.
- Replay
XhrParams - 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.
- Reporting
ApiEndpoint - Experimental: may change without notice.
- Reporting
ApiEndpoints Changed ForOrigin Event - Experimental: may change without notice.
- Reporting
ApiReport - An object representing a report generated by the Reporting API.
- Reporting
ApiReport Added Event - Is sent whenever a new report is added. And after ‘enableReportingApi’ for all existing reports.
- Reporting
ApiReport Updated Event - Experimental: may change without notice.
- Request
- HTTP request data.
- Request
Served From Cache Event - Fired if request ended up loading from cache.
- Request
Will BeSent Event - Fired when page is about to send HTTP request.
- Request
Will BeSent Extra Info Event - 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.
- Resource
Changed Priority Event - Fired when resource loading priority is changed
- Resource
Timing - Timing information for the request.
- Response
- HTTP response data.
- Response
Received Early Hints Event - 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.
- Response
Received Event - Fired when HTTP response is available.
- Response
Received Extra Info Event - 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.
- Search
InResponse Body Params - Searches for given string in response content.
- Search
InResponse Body Returns - What
Network.searchInResponseBodyanswers with. - Security
Details - Security details about a request.
- Security
Isolation Status - Experimental: may change without notice.
- Service
Worker Router Info - Experimental: may change without notice.
- SetAttach
Debug Stack Params - Specifies whether to attach a page script stack id in requests
- SetBlocked
UrLs Params - Blocks URLs from loading.
- SetBypass
Service Worker Params - Toggles ignoring of service worker for each request.
- SetCache
Disabled Params - Toggles ignoring cache for each request. If
true, cache will not be used. - SetCookie
Controls Params - Sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed
- SetCookie
Params - Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
- SetCookie
Returns - What
Network.setCookieanswers with. - SetCookies
Params - Sets given cookies.
- SetExtra
Http Headers Params - Specifies whether to always send extra HTTP headers with the requests from this page.
- SetUser
Agent Override Params - Allows overriding user agent with the given string.
- Signed
Certificate Timestamp - Details of a signed certificate timestamp (SCT).
- Signed
Exchange Error - Information about a signed exchange response.
- Signed
Exchange Header - Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
- Signed
Exchange Info - Information about a signed exchange response.
- Signed
Exchange Received Event - Fired when a signed exchange was received over the network
- Signed
Exchange Signature - Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
- Stream
Resource Content Params - Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.
- Stream
Resource Content Returns - What
Network.streamResourceContentanswers with. - Termination
Event Details - Session event details specific to termination.
- Trust
Token Operation Done Event - 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.
- Trust
Token Params - 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.
- WebSocket
Closed Event - Fired when WebSocket is closed.
- WebSocket
Created Event - Fired upon WebSocket creation.
- WebSocket
Frame - WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
- WebSocket
Frame Error Event - Fired when WebSocket message error occurs.
- WebSocket
Frame Received Event - Fired when WebSocket message is received.
- WebSocket
Frame Sent Event - Fired when WebSocket message is sent.
- WebSocket
Handshake Response Received Event - Fired when WebSocket handshake response becomes available.
- WebSocket
Request - WebSocket request data.
- WebSocket
Response - WebSocket response data.
- WebSocket
Will Send Handshake Request Event - Fired when WebSocket is about to initiate handshake.
- WebTransport
Closed Event - Fired when WebTransport is disposed.
- WebTransport
Connection Established Event - Fired when WebTransport handshake is finished.
- WebTransport
Created Event - Fired upon WebTransport creation.
Enums§
- Alternate
Protocol Usage - The reason why Chrome uses a specific transport protocol for HTTP semantics.
- Auth
Challenge Response Response - The values
responseaccepts onAuthChallengeResponse. - Auth
Challenge Source - The values
sourceaccepts onAuthChallenge. - Blocked
Reason - The reason why request was blocked.
- Certificate
Transparency Compliance - Whether the request complied with Certificate Transparency policy.
- Challenge
Event Details Challenge Result - The values
challengeResultaccepts onChallengeEventDetails. - Connection
Type - The underlying connection technology that the browser is supposedly using.
- Content
Security Policy Source - Experimental: may change without notice.
- Cookie
Blocked Reason - Types of reasons why a cookie may not be sent with a request.
- Cookie
Exemption Reason - Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.
- Cookie
Priority - Represents the cookie’s ‘Priority’ status: https://tools.ietf.org/html/draft-west-cookie-priority-00
- Cookie
Same Site - Represents the cookie’s ‘SameSite’ status: https://tools.ietf.org/html/draft-west-first-party-cookies
- Cookie
Source Scheme - 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.
- Cors
Error - The reason why request was blocked.
- Cross
Origin Embedder Policy Value - Experimental: may change without notice.
- Cross
Origin Opener Policy Value - Experimental: may change without notice.
- Device
Bound Session Fetch Result - A fetch result for a device bound session creation or refresh. LINT.IfChange(DeviceBoundSessionFetchResult)
- Device
Bound Session UrlRule Rule Type - The values
ruleTypeaccepts onDeviceBoundSessionUrlRule. - Device
Bound Session With Usage Usage - The values
usageaccepts onDeviceBoundSessionWithUsage. - Direct
Socket DnsQuery Type - Experimental: may change without notice.
- Error
Reason - Network level fetch failure reason.
- Initiator
Type - The values
typeaccepts onInitiator. - IpAddress
Space - Experimental: may change without notice.
- Local
Network Access Request Policy - Experimental: may change without notice.
- Refresh
Event Details Refresh Result - The values
refreshResultaccepts onRefreshEventDetails. - Render
Blocking Behavior - The render-blocking behavior of a resource request.
- Report
Status - The status of a Reporting API report.
- Request
Referrer Policy - The values
referrerPolicyaccepts onRequest. - Resource
Priority - Loading priority of a resource request.
- Resource
Type - Resource type as it was perceived by the rendering engine.
- Service
Worker Response Source - Source of serviceworker response.
- Service
Worker Router Source - Source of service worker router.
- SetCookie
Blocked Reason - Types of reasons why a cookie may not be stored from a response.
- Signed
Exchange Error Field - Field type for a signed exchange related error.
- Termination
Event Details Deletion Reason - The values
deletionReasonaccepts onTerminationEventDetails. - Trust
Token Operation Done Status - The values
statusaccepts ontrustTokenOperationDone. - Trust
Token Operation Type - Experimental: may change without notice.
- Trust
Token Params Refresh Policy - The values
refreshPolicyaccepts onTrustTokenParams.
Type Aliases§
- Device
Bound Session Event Id - A unique identifier for a device bound session event.
- Headers
- Request / response headers as keys / values of JSON object.
- Loader
Id - Unique loader identifier.
- Monotonic
Time - Monotonically increasing time in seconds since an arbitrary point in the past.
- Report
Id - Experimental: may change without notice.
- Request
Id - Unique network request identifier. Note that this does not identify individual HTTP requests that are part of a network request.
- Time
Since Epoch - UTC time in seconds, counted from January 1, 1970.