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.
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.
Disables network tracking, prevents network events from being sent to the client.
Activates emulation of network conditions.
Enables network tracking, network events will now be delivered to the client.
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.
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.
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 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.
Fired when request for resources within a .wbn file failed.
Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.
Fired once when parsing the .wbn file has failed.
Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.
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.