Module network

Module network 

Source
Available 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.
AuthChallengeBuilderexperimental
AuthChallengeResponseexperimental
Response to an AuthChallenge.
BlockedCookieWithReasonexperimental
A cookie with was not sent with a request with the corresponding reason.
BlockedSetCookieWithReasonexperimental
A cookie which was not stored from a response with the corresponding reason.
CachedResource
Information about the cached resource.
CachedResourceBuilder
CanClearBrowserCacheCommandDeprecated
Tells whether clearing browser cache is supported.
CanClearBrowserCacheReturnDeprecated
Tells whether clearing browser cache is supported.
CanClearBrowserCookiesCommandDeprecated
Tells whether clearing browser cookies is supported.
CanClearBrowserCookiesReturnDeprecated
Tells whether clearing browser cookies is supported.
CanEmulateNetworkConditionsCommandDeprecated
Tells whether emulation of network conditions is supported.
CanEmulateNetworkConditionsReturnDeprecated
Tells whether emulation of network conditions is supported.
ClearAcceptedEncodingsOverrideCommandexperimental
Clears accepted encodings set by setAcceptedEncodings
ClearAcceptedEncodingsOverrideReturnexperimental
Clears accepted encodings set by setAcceptedEncodings
ClearBrowserCacheCommand
Clears browser cache.
ClearBrowserCacheReturn
Clears browser cache.
ClearBrowserCookiesCommand
Clears browser cookies.
ClearBrowserCookiesReturn
Clears browser cookies.
ClientSecurityStateexperimental
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.
ContinueInterceptedRequestCommandBuilderDeprecatedexperimental
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
Cookie object
CookieBuilder
CookieParam
Cookie parameter object
CookieParamBuilder
CorsErrorStatus
CrossOriginEmbedderPolicyStatusexperimental
CrossOriginEmbedderPolicyStatusBuilderexperimental
CrossOriginOpenerPolicyStatusexperimental
CrossOriginOpenerPolicyStatusBuilderexperimental
DataReceivedEvent
Fired when data chunk was received over the network.
DataReceivedEventBuilder
DeleteCookiesCommand
Deletes browser cookies with matching name and url or domain/path pair.
DeleteCookiesCommandBuilder
DeleteCookiesReturn
Deletes browser cookies with matching name and url or domain/path pair.
DisableCommand
Disables network tracking, prevents network events from being sent to the client.
DisableReturn
Disables network tracking, prevents network events from being sent to the client.
EmulateNetworkConditionsCommand
Activates emulation of network conditions.
EmulateNetworkConditionsCommandBuilder
EmulateNetworkConditionsReturn
Activates emulation of network conditions.
EnableCommand
Enables network tracking, network events will now be delivered to the client.
EnableReturn
Enables network tracking, network events will now be delivered to the client.
EventSourceMessageReceivedEvent
Fired when EventSource message is received.
EventSourceMessageReceivedEventBuilder
GetAllCookiesCommand
Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.
GetAllCookiesReturn
Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.
GetCertificateCommandexperimental
Returns the DER-encoded certificate.
GetCertificateReturnexperimental
Returns the DER-encoded certificate.
GetCookiesCommand
Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.
GetCookiesReturn
Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.
GetRequestPostDataCommand
Returns post data sent with the request. Returns an error when no data was sent with the request.
GetRequestPostDataReturn
Returns post data sent with the request. Returns an error when no data was sent with the request.
GetResponseBodyCommand
Returns content served for the given request.
GetResponseBodyForInterceptionCommandexperimental
Returns content served for the given currently intercepted request.
GetResponseBodyForInterceptionReturnexperimental
Returns content served for the given currently intercepted request.
GetResponseBodyReturn
Returns content served for the given request.
GetSecurityIsolationStatusCommandexperimental
Returns information about the COEP/COOP isolation status.
GetSecurityIsolationStatusReturnexperimental
Returns information about the COEP/COOP isolation status.
Headers
Request / response headers as keys / values of JSON object.
Initiator
Information about the request initiator.
InitiatorBuilder
InterceptionId
Unique intercepted request identifier.
LoadNetworkResourceCommandexperimental
Fetches the resource and returns the content.
LoadNetworkResourceOptionsexperimental
An options object that may be extended later to better support CORS, CORB and streaming.
LoadNetworkResourcePageResultexperimental
An object providing the result of a network resource load.
LoadNetworkResourcePageResultBuilderexperimental
LoadNetworkResourceReturnexperimental
Fetches the resource and returns the content.
LoaderId
Unique loader identifier.
LoadingFailedEvent
Fired when HTTP request has failed to load.
LoadingFailedEventBuilder
LoadingFinishedEvent
Fired when HTTP request has finished loading.
LoadingFinishedEventBuilder
MonotonicTime
Monotonically increasing time in seconds since an arbitrary point in the past.
PostDataEntry
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.
Request
HTTP request data.
RequestBuilder
RequestId
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.
RequestServedFromCacheEvent
Fired if request ended up loading from cache.
RequestWillBeSentEvent
Fired when page is about to send HTTP request.
RequestWillBeSentEventBuilder
RequestWillBeSentExtraInfoEventexperimental
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.
RequestWillBeSentExtraInfoEventBuilderexperimental
ResourceChangedPriorityEventexperimental
Fired when resource loading priority is changed
ResourceTiming
Timing information for the request.
ResourceTimingBuilder
Response
HTTP response data.
ResponseBuilder
ResponseReceivedEvent
Fired when HTTP response is available.
ResponseReceivedEventBuilder
ResponseReceivedExtraInfoEventexperimental
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.
ResponseReceivedExtraInfoEventBuilderexperimental
SearchInResponseBodyCommandexperimental
Searches for given string in response content.
SearchInResponseBodyCommandBuilderexperimental
SearchInResponseBodyReturnexperimental
Searches for given string in response content.
SecurityDetails
Security details about a request.
SecurityDetailsBuilder
SecurityIsolationStatusexperimental
SetAcceptedEncodingsCommandexperimental
Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
SetAcceptedEncodingsReturnexperimental
Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
SetAttachDebugStackCommandexperimental
Specifies whether to attach a page script stack id in requests
SetAttachDebugStackReturnexperimental
Specifies whether to attach a page script stack id in requests
SetBlockedUrLsCommandexperimental
Blocks URLs from loading.
SetBlockedUrLsReturnexperimental
Blocks URLs from loading.
SetBypassServiceWorkerCommandexperimental
Toggles ignoring of service worker for each request.
SetBypassServiceWorkerReturnexperimental
Toggles ignoring of service worker for each request.
SetCacheDisabledCommand
Toggles ignoring cache for each request. If true, cache will not be used.
SetCacheDisabledReturn
Toggles ignoring cache for each request. If true, cache will not be used.
SetCookieCommand
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
SetCookieCommandBuilder
SetCookieReturn
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
SetCookiesCommand
Sets given cookies.
SetCookiesReturn
Sets given cookies.
SetDataSizeLimitsForTestCommandexperimental
For testing.
SetDataSizeLimitsForTestReturnexperimental
For testing.
SetExtraHttpHeadersCommand
Specifies whether to always send extra HTTP headers with the requests from this page.
SetExtraHttpHeadersReturn
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.
SetUserAgentOverrideCommand
Allows overriding user agent with the given string.
SetUserAgentOverrideCommandBuilder
SetUserAgentOverrideReturn
Allows overriding user agent with the given string.
SignedCertificateTimestamp
Details of a signed certificate timestamp (SCT).
SignedCertificateTimestampBuilder
SignedExchangeErrorexperimental
Information about a signed exchange response.
SignedExchangeHeaderexperimental
Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation
SignedExchangeHeaderBuilderexperimental
SignedExchangeInfoexperimental
Information about a signed exchange response.
SignedExchangeInfoBuilderexperimental
SignedExchangeReceivedEventexperimental
Fired when a signed exchange was received over the network
SignedExchangeSignatureexperimental
Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1
SignedExchangeSignatureBuilderexperimental
TakeResponseBodyForInterceptionAsStreamCommandexperimental
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.
TakeResponseBodyForInterceptionAsStreamReturnexperimental
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.
TimeSinceEpoch
UTC time in seconds, counted from January 1, 1970.
TrustTokenOperationDoneEventexperimental
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.
TrustTokenOperationDoneEventBuilderexperimental
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.
WebSocketClosedEvent
Fired when WebSocket is closed.
WebSocketCreatedEvent
Fired upon WebSocket creation.
WebSocketFrame
WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.
WebSocketFrameErrorEvent
Fired when WebSocket message error occurs.
WebSocketFrameReceivedEvent
Fired when WebSocket message is received.
WebSocketFrameSentEvent
Fired when WebSocket message is sent.
WebSocketHandshakeResponseReceivedEvent
Fired when WebSocket handshake response becomes available.
WebSocketRequest
WebSocket request data.
WebSocketResponse
WebSocket response data.
WebSocketResponseBuilder
WebSocketWillSendHandshakeRequestEvent
Fired when WebSocket is about to initiate handshake.
WebSocketWillSendHandshakeRequestEventBuilder
WebTransportClosedEvent
Fired when WebTransport is disposed.
WebTransportConnectionEstablishedEvent
Fired when WebTransport handshake is finished.
WebTransportCreatedEvent
Fired upon WebTransport creation.
WebTransportCreatedEventBuilder

Enums§

AuthChallengeResponseResponse
AuthChallengeSource
BlockedReason
CertificateTransparencyCompliance
ConnectionType
ContentEncodingexperimental
CookieBlockedReasonexperimental
CookiePriorityexperimental
CookieSameSite
CookieSourceSchemeexperimental
CorsError
CrossOriginEmbedderPolicyValueexperimental
CrossOriginOpenerPolicyValueexperimental
ErrorReason
InitiatorType
InterceptionStageexperimental
IpAddressSpaceexperimental
PrivateNetworkRequestPolicyexperimental
RequestReferrerPolicy
ResourcePriority
ResourceType
ServiceWorkerResponseSource
SetCookieBlockedReasonexperimental
SignedExchangeErrorFieldexperimental
TrustTokenOperationDoneEventStatus
TrustTokenOperationTypeexperimental
TrustTokenParamsRefreshPolicy