Network Domain
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.
Functions
Tells whether clearing browser cache is supported.
Tells whether clearing browser cookies is supported.
Tells whether emulation of network conditions is supported.
Clears accepted encodings set by setAcceptedEncodings
Clears browser cache.
Clears browser cookies.
Configures storing response bodies outside of renderer, so that these survive a cross-process navigation. If maxTotalBufferSize is not set, durable messages are disabled.
Response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId. Deprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.
Fired when data chunk was received over the network.
Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
Triggered when a device bound session event occurs.
Triggered when the initial set of device bound sessions is added.
Fired when direct_socket.TCPSocket is aborted.
Fired when data is received from tcp direct socket stream.
Fired when data is sent to tcp direct socket stream.
Fired when direct_socket.TCPSocket is closed.
Fired upon direct_socket.TCPSocket creation.
Fired when direct_socket.TCPSocket connection is opened.
Fired when direct_socket.UDPSocket is aborted.
Fired when message is received from udp direct socket stream.
Fired when message is sent to udp direct socket stream.
Fired when direct_socket.UDPSocket is closed.
Fired upon direct_socket.UDPSocket creation.
(undocumented in the protocol definition)
(undocumented in the protocol definition)
Fired when direct_socket.UDPSocket connection is opened.
Disables network tracking, prevents network events from being sent to the client.
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.
Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated Network.emulateNetworkConditions this method does not affect navigator state. Use Network.overrideNetworkState to explicitly modify navigator behavior.
Enables network tracking, network events will now be delivered to the client.
Sets up tracking device bound sessions and fetching of initial set of sessions.
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.
Subscribes to all events related to this domain.
Fired when EventSource message is received.
Fetches the schemeful site for a specific origin.
Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. Deprecated. Use Storage.getCookies instead.
Returns the DER-encoded certificate.
Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.
Returns post data sent with the request. Returns an error when no data was sent with the request.
Returns content served for the given request.
Returns content served for the given currently intercepted request.
Returns information about the COEP/COOP isolation status.
Fired when HTTP request has failed to load.
Fired when HTTP request has finished loading.
Fetches the resource and returns the content.
Override the state of navigator.onLine and navigator.connection.
Fired once security policy has been updated.
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.
(undocumented in the protocol definition)
Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.
(undocumented in the protocol definition)
Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.
Fired if request ended up loading from cache.
Fired when page is about to send HTTP request.
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.
Fired when resource loading priority is changed
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.
Fired when HTTP response is available.
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.
Searches for given string in response content.
Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
Specifies whether to attach a page script stack id in requests
Blocks URLs from loading.
Toggles ignoring of service worker for each request.
Toggles ignoring cache for each request. If true, cache will not be used.
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
Sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed
Sets given cookies.
Specifies whether to always send extra HTTP headers with the requests from this page.
Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.
Allows overriding user agent with the given string.
Fired when a signed exchange was received over the network
Enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.
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.
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.
Fired when WebSocket is closed.
Fired upon WebSocket creation.
Fired when WebSocket message error occurs.
Fired when WebSocket message is received.
Fired when WebSocket message is sent.
Fired when WebSocket handshake response becomes available.
Fired when WebSocket is about to initiate handshake.
Fired when WebTransport is disposed.
Fired when WebTransport handshake is finished.
Fired upon WebTransport creation.