Module chrome_remote_interface_model::network[][src]

This is supported on crate features Network and Debugger and Runtime and Security only.
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

AuthChallengeexperimental

Authorization challenge for HTTP status code 401 or 407.

Response to an AuthChallenge.

A cookie with was not sent with a request with the corresponding reason.

A cookie which was not stored from a response with the corresponding reason.

Information about the cached resource.

Tells whether clearing browser cache is supported.

Tells whether clearing browser cache is supported.

Tells whether clearing browser cookies is supported.

Tells whether clearing browser cookies is supported.

Tells whether emulation of network conditions is supported.

Tells whether emulation of network conditions is supported.

Clears accepted encodings set by setAcceptedEncodings

Clears accepted encodings set by setAcceptedEncodings

Clears browser cache.

Clears browser cache.

Clears browser cookies.

Clears browser cookies.

ContinueInterceptedRequestCommandDeprecatedexperimental

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.

ContinueInterceptedRequestReturnDeprecatedexperimental

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.

Cookie object

Cookie parameter object

Fired when data chunk was received over the network.

Deletes browser cookies with matching name and url or domain/path pair.

Deletes browser cookies with matching name and url or domain/path pair.

Disables network tracking, prevents network events from being sent to the client.

Disables network tracking, prevents network events from being sent to the client.

Activates emulation of network conditions.

Activates emulation of network conditions.

Enables network tracking, network events will now be delivered to the client.

Enables network tracking, network events will now be delivered to the client.

Fired when EventSource message is received.

Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.

Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.

Returns the DER-encoded certificate.

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 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 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 content served for the given currently intercepted request.

Returns content served for the given request.

Returns information about the COEP/COOP isolation status.

Returns information about the COEP/COOP isolation status.

Request / response headers as keys / values of JSON object.

Information about the request initiator.

Unique intercepted request identifier.

Fetches the resource and returns the content.

An options object that may be extended later to better support CORS, CORB and streaming.

An object providing the result of a network resource load.

Fetches the resource and returns the content.

Unique loader identifier.

Fired when HTTP request has failed to load.

Fired when HTTP request has finished loading.

Monotonically increasing time in seconds since an arbitrary point in the past.

Post data entry for HTTP request

ReplayXhrCommandexperimental

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.

ReplayXhrReturnexperimental

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.

HTTP request data.

Unique request identifier.

RequestInterceptedEventDeprecatedexperimental

Details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked. Deprecated, use Fetch.requestPaused instead.

RequestInterceptedEventBuilderDeprecatedexperimental
RequestPatternexperimental

Request pattern for interception.

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

Timing information for the request.

HTTP response data.

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.

Searches for given string in response content.

Security details about a request.

Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.

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

Specifies whether to attach a page script stack id in requests

Blocks URLs from loading.

Blocks URLs from loading.

Toggles ignoring of service worker for each request.

Toggles ignoring of service worker for each request.

Toggles ignoring cache for each request. If true, cache will not be used.

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 a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

Sets given cookies.

Sets given cookies.

For testing.

For testing.

Specifies whether to always send extra HTTP headers with the requests from this page.

Specifies whether to always send extra HTTP headers with the requests from this page.

SetRequestInterceptionCommandDeprecatedexperimental

Sets the requests to intercept that match the provided patterns and optionally resource types. Deprecated, please use Fetch.enable instead.

SetRequestInterceptionReturnDeprecatedexperimental

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.

Allows overriding user agent with the given string.

Details of a signed certificate timestamp (SCT).

Information about a signed exchange response.

Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation

SignedExchangeInfoexperimental

Information about a signed exchange response.

Fired when a signed exchange was received over the network

Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1

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.

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.

UTC time in seconds, counted from January 1, 1970.

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.

TrustTokenParamsexperimental

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.

Fired when WebSocket is closed.

Fired upon WebSocket creation.

WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.

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.

WebSocket request data.

WebSocket response data.

Fired when WebSocket is about to initiate handshake.

Fired when WebTransport is disposed.

Fired when WebTransport handshake is finished.

Fired upon WebTransport creation.

Enums