Module chromiumoxide::cdp::browser_protocol::network
source · [−]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
Authorization challenge for HTTP status code 401 or 407. AuthChallenge
Response to an AuthChallenge. AuthChallengeResponse
A cookie with was not sent with a request with the corresponding reason. BlockedCookieWithReason
A cookie which was not stored from a response with the corresponding reason. BlockedSetCookieWithReason
Information about the cached resource. CachedResource
Clears browser cache. clearBrowserCache
Clears browser cache. clearBrowserCache
Clears browser cookies. clearBrowserCookies
Clears browser cookies. clearBrowserCookies
Cookie parameter object CookieParam
Deletes browser cookies with matching name and url or domain/path pair. deleteCookies
Deletes browser cookies with matching name and url or domain/path pair. deleteCookies
Disables network tracking, prevents network events from being sent to the client. disable
Disables network tracking, prevents network events from being sent to the client. disable
Activates emulation of network conditions. emulateNetworkConditions
Activates emulation of network conditions. emulateNetworkConditions
Enables network tracking, network events will now be delivered to the client. enable
Enables network tracking, network events will now be delivered to the client. enable
Fired when data chunk was received over the network. dataReceived
Fired when EventSource message is received. eventSourceMessageReceived
Fired when HTTP request has failed to load. loadingFailed
Fired when HTTP request has finished loading. loadingFinished
Fired if request ended up loading from cache. requestServedFromCache
Fired when page is about to send HTTP request. requestWillBeSent
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. requestWillBeSentExtraInfo
Fired when resource loading priority is changed resourceChangedPriority
Fired when HTTP response is available. responseReceived
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. responseReceivedExtraInfo
Fired when a signed exchange was received over the network signedExchangeReceived
Fired when WebSocket is closed. webSocketClosed
Fired upon WebSocket creation. webSocketCreated
Fired when WebSocket message error occurs. webSocketFrameError
Fired when WebSocket message is received. webSocketFrameReceived
Fired when WebSocket message is sent. webSocketFrameSent
Fired when WebSocket handshake response becomes available. webSocketHandshakeResponseReceived
Fired when WebSocket is about to initiate handshake. webSocketWillSendHandshakeRequest
Returns all browser cookies. Depending on the backend support, will return detailed cookie
information in the cookies
field.
getAllCookies
Returns all browser cookies. Depending on the backend support, will return detailed cookie
information in the cookies
field.
getAllCookies
Returns the DER-encoded certificate. getCertificate
Returns the DER-encoded certificate. getCertificate
Returns all browser cookies for the current URL. Depending on the backend support, will return
detailed cookie information in the cookies
field.
getCookies
Returns all browser cookies for the current URL. Depending on the backend support, will return
detailed cookie information in the cookies
field.
getCookies
Returns post data sent with the request. Returns an error when no data was sent with the request. getRequestPostData
Returns post data sent with the request. Returns an error when no data was sent with the request. getRequestPostData
Returns content served for the given currently intercepted request. getResponseBodyForInterception
Returns content served for the given currently intercepted request. getResponseBodyForInterception
Returns content served for the given request. getResponseBody
Returns content served for the given request. getResponseBody
Returns information about the COEP/COOP isolation status. getSecurityIsolationStatus
Returns information about the COEP/COOP isolation status. getSecurityIsolationStatus
Unique intercepted request identifier. InterceptionId
An options object that may be extended later to better support CORS, CORB and streaming. LoadNetworkResourceOptions
An object providing the result of a network resource load. LoadNetworkResourcePageResult
Fetches the resource and returns the content. loadNetworkResource
Fetches the resource and returns the content. loadNetworkResource
Monotonically increasing time in seconds since an arbitrary point in the past. MonotonicTime
Post data entry for HTTP request PostDataEntry
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. replayXHR
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. replayXHR
Request pattern for interception. RequestPattern
Timing information for the request. ResourceTiming
Searches for given string in response content. searchInResponseBody
Searches for given string in response content. searchInResponseBody
Security details about a request. SecurityDetails
Specifies whether to sned a debug header to all outgoing requests. setAttachDebugHeader
Specifies whether to sned a debug header to all outgoing requests. setAttachDebugHeader
Blocks URLs from loading. setBlockedURLs
Blocks URLs from loading. setBlockedURLs
Toggles ignoring of service worker for each request. setBypassServiceWorker
Toggles ignoring of service worker for each request. setBypassServiceWorker
Toggles ignoring cache for each request. If true
, cache will not be used.
setCacheDisabled
Toggles ignoring cache for each request. If true
, cache will not be used.
setCacheDisabled
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. setCookie
Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. setCookie
Sets given cookies. setCookies
Sets given cookies. setCookies
Specifies whether to always send extra HTTP headers with the requests from this page. setExtraHTTPHeaders
Specifies whether to always send extra HTTP headers with the requests from this page. setExtraHTTPHeaders
Allows overriding user agent with the given string. setUserAgentOverride
Allows overriding user agent with the given string. setUserAgentOverride
Details of a signed certificate timestamp (SCT). SignedCertificateTimestamp
Information about a signed exchange response. SignedExchangeError
Information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation SignedExchangeHeader
Information about a signed exchange response. SignedExchangeInfo
Information about a signed exchange signature. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 SignedExchangeSignature
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. takeResponseBodyForInterceptionAsStream
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. takeResponseBodyForInterceptionAsStream
UTC time in seconds, counted from January 1, 1970. TimeSinceEpoch
Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. TrustTokenParams
WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. WebSocketFrame
WebSocket request data. WebSocketRequest
WebSocket response data. WebSocketResponse
Enums
The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
Source of the authentication challenge.
The reason why request was blocked.
Whether the request complied with Certificate Transparency policy.
The underlying connection technology that the browser is supposedly using.
Types of reasons why a cookie may not be sent with a request.
Represents the cookie’s ‘Priority’ status: https://tools.ietf.org/html/draft-west-cookie-priority-00
Represents the cookie’s ‘SameSite’ status: https://tools.ietf.org/html/draft-west-first-party-cookies
Network level fetch failure reason.
Type of this initiator.
Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
Loading priority of a resource request.
Resource type as it was perceived by the rendering engine.
Source of serviceworker response.
Types of reasons why a cookie may not be stored from a response.
Field type for a signed exchange related error.
Only set for “srr-token-redemption” type and determine whether to request a fresh SRR or use a still valid cached SRR.