Module chromiumoxide_cdp::cdp::browser_protocol::network[][src]

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

AuthChallenge

Authorization challenge for HTTP status code 401 or 407. AuthChallenge

AuthChallengeBuilder
AuthChallengeResponse

Response to an AuthChallenge. AuthChallengeResponse

AuthChallengeResponseBuilder
BlockedCookieWithReason

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

BlockedCookieWithReasonBuilder
BlockedSetCookieWithReason

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

BlockedSetCookieWithReasonBuilder
CachedResource

Information about the cached resource. CachedResource

CachedResourceBuilder
ClearBrowserCacheParams

Clears browser cache. clearBrowserCache

ClearBrowserCacheReturns

Clears browser cache. clearBrowserCache

ClearBrowserCookiesParams

Clears browser cookies. clearBrowserCookies

ClearBrowserCookiesReturns

Clears browser cookies. clearBrowserCookies

Cookie

Cookie object Cookie

CookieBuilder
CookieParam

Cookie parameter object CookieParam

CookieParamBuilder
CrossOriginEmbedderPolicyStatus
CrossOriginEmbedderPolicyStatusBuilder
CrossOriginOpenerPolicyStatus
CrossOriginOpenerPolicyStatusBuilder
DeleteCookiesParams

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

DeleteCookiesParamsBuilder
DeleteCookiesReturns

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

DisableParams

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

DisableReturns

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

EmulateNetworkConditionsParams

Activates emulation of network conditions. emulateNetworkConditions

EmulateNetworkConditionsParamsBuilder
EmulateNetworkConditionsReturns

Activates emulation of network conditions. emulateNetworkConditions

EnableParams

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

EnableParamsBuilder
EnableReturns

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

EventDataReceived

Fired when data chunk was received over the network. dataReceived

EventEventSourceMessageReceived

Fired when EventSource message is received. eventSourceMessageReceived

EventLoadingFailed

Fired when HTTP request has failed to load. loadingFailed

EventLoadingFinished

Fired when HTTP request has finished loading. loadingFinished

EventRequestServedFromCache

Fired if request ended up loading from cache. requestServedFromCache

EventRequestWillBeSent

Fired when page is about to send HTTP request. requestWillBeSent

EventRequestWillBeSentExtraInfo

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

EventResourceChangedPriority

Fired when resource loading priority is changed resourceChangedPriority

EventResponseReceived

Fired when HTTP response is available. responseReceived

EventResponseReceivedExtraInfo

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

EventSignedExchangeReceived

Fired when a signed exchange was received over the network signedExchangeReceived

EventWebSocketClosed

Fired when WebSocket is closed. webSocketClosed

EventWebSocketCreated

Fired upon WebSocket creation. webSocketCreated

EventWebSocketFrameError

Fired when WebSocket message error occurs. webSocketFrameError

EventWebSocketFrameReceived

Fired when WebSocket message is received. webSocketFrameReceived

EventWebSocketFrameSent

Fired when WebSocket message is sent. webSocketFrameSent

EventWebSocketHandshakeResponseReceived

Fired when WebSocket handshake response becomes available. webSocketHandshakeResponseReceived

EventWebSocketWillSendHandshakeRequest

Fired when WebSocket is about to initiate handshake. webSocketWillSendHandshakeRequest

GetAllCookiesParams

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

GetAllCookiesReturns

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

GetAllCookiesReturnsBuilder
GetCertificateParams

Returns the DER-encoded certificate. getCertificate

GetCertificateParamsBuilder
GetCertificateReturns

Returns the DER-encoded certificate. getCertificate

GetCertificateReturnsBuilder
GetCookiesParams

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

GetCookiesParamsBuilder
GetCookiesReturns

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

GetCookiesReturnsBuilder
GetRequestPostDataParams

Returns post data sent with the request. Returns an error when no data was sent with the request. getRequestPostData

GetRequestPostDataParamsBuilder
GetRequestPostDataReturns

Returns post data sent with the request. Returns an error when no data was sent with the request. getRequestPostData

GetRequestPostDataReturnsBuilder
GetResponseBodyForInterceptionParams

Returns content served for the given currently intercepted request. getResponseBodyForInterception

GetResponseBodyForInterceptionParamsBuilder
GetResponseBodyForInterceptionReturns

Returns content served for the given currently intercepted request. getResponseBodyForInterception

GetResponseBodyForInterceptionReturnsBuilder
GetResponseBodyParams

Returns content served for the given request. getResponseBody

GetResponseBodyParamsBuilder
GetResponseBodyReturns

Returns content served for the given request. getResponseBody

GetResponseBodyReturnsBuilder
GetSecurityIsolationStatusParams

Returns information about the COEP/COOP isolation status. getSecurityIsolationStatus

GetSecurityIsolationStatusParamsBuilder
GetSecurityIsolationStatusReturns

Returns information about the COEP/COOP isolation status. getSecurityIsolationStatus

GetSecurityIsolationStatusReturnsBuilder
Headers

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

Initiator

Information about the request initiator. Initiator

InitiatorBuilder
InterceptionId

Unique intercepted request identifier. InterceptionId

LoadNetworkResourceOptions

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

LoadNetworkResourceOptionsBuilder
LoadNetworkResourcePageResult

An object providing the result of a network resource load. LoadNetworkResourcePageResult

LoadNetworkResourcePageResultBuilder
LoadNetworkResourceParams

Fetches the resource and returns the content. loadNetworkResource

LoadNetworkResourceParamsBuilder
LoadNetworkResourceReturns

Fetches the resource and returns the content. loadNetworkResource

LoadNetworkResourceReturnsBuilder
LoaderId

Unique loader identifier. LoaderId

MonotonicTime

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

PostDataEntry

Post data entry for HTTP request PostDataEntry

PostDataEntryBuilder
ReplayXhrParams

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

ReplayXhrParamsBuilder
ReplayXhrReturns

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

HTTP request data. Request

RequestBuilder
RequestId

Unique request identifier. RequestId

RequestPattern

Request pattern for interception. RequestPattern

RequestPatternBuilder
ResourceTiming

Timing information for the request. ResourceTiming

ResourceTimingBuilder
Response

HTTP response data. Response

ResponseBuilder
SearchInResponseBodyParams

Searches for given string in response content. searchInResponseBody

SearchInResponseBodyParamsBuilder
SearchInResponseBodyReturns

Searches for given string in response content. searchInResponseBody

SearchInResponseBodyReturnsBuilder
SecurityDetails

Security details about a request. SecurityDetails

SecurityDetailsBuilder
SecurityIsolationStatus
SecurityIsolationStatusBuilder
SetAttachDebugHeaderParams

Specifies whether to sned a debug header to all outgoing requests. setAttachDebugHeader

SetAttachDebugHeaderParamsBuilder
SetAttachDebugHeaderReturns

Specifies whether to sned a debug header to all outgoing requests. setAttachDebugHeader

SetBlockedUrLsParams

Blocks URLs from loading. setBlockedURLs

SetBlockedUrLsParamsBuilder
SetBlockedUrLsReturns

Blocks URLs from loading. setBlockedURLs

SetBypassServiceWorkerParams

Toggles ignoring of service worker for each request. setBypassServiceWorker

SetBypassServiceWorkerParamsBuilder
SetBypassServiceWorkerReturns

Toggles ignoring of service worker for each request. setBypassServiceWorker

SetCacheDisabledParams

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

SetCacheDisabledParamsBuilder
SetCacheDisabledReturns

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

SetCookieParams

Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. setCookie

SetCookieParamsBuilder
SetCookieReturns

Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. setCookie

SetCookiesParams

Sets given cookies. setCookies

SetCookiesParamsBuilder
SetCookiesReturns

Sets given cookies. setCookies

SetDataSizeLimitsForTestParams

For testing. setDataSizeLimitsForTest

SetDataSizeLimitsForTestParamsBuilder
SetDataSizeLimitsForTestReturns

For testing. setDataSizeLimitsForTest

SetExtraHttpHeadersParams

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

SetExtraHttpHeadersParamsBuilder
SetExtraHttpHeadersReturns

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

SetUserAgentOverrideParams

Allows overriding user agent with the given string. setUserAgentOverride

SetUserAgentOverrideParamsBuilder
SetUserAgentOverrideReturns

Allows overriding user agent with the given string. setUserAgentOverride

SignedCertificateTimestamp

Details of a signed certificate timestamp (SCT). SignedCertificateTimestamp

SignedCertificateTimestampBuilder
SignedExchangeError

Information about a signed exchange response. SignedExchangeError

SignedExchangeErrorBuilder
SignedExchangeHeader

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

SignedExchangeHeaderBuilder
SignedExchangeInfo

Information about a signed exchange response. SignedExchangeInfo

SignedExchangeInfoBuilder
SignedExchangeSignature

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

SignedExchangeSignatureBuilder
TakeResponseBodyForInterceptionAsStreamParams

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

TakeResponseBodyForInterceptionAsStreamParamsBuilder
TakeResponseBodyForInterceptionAsStreamReturns

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

TakeResponseBodyForInterceptionAsStreamReturnsBuilder
TimeSinceEpoch

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

TrustTokenParams

Determines what type of Trust Token operation is executed and depending on the type, some additional parameters. TrustTokenParams

TrustTokenParamsBuilder
WebSocketFrame

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

WebSocketFrameBuilder
WebSocketRequest

WebSocket request data. WebSocketRequest

WebSocketRequestBuilder
WebSocketResponse

WebSocket response data. WebSocketResponse

WebSocketResponseBuilder

Enums

AuthChallengeResponseResponse

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.

AuthChallengeSource

Source of the authentication challenge.

BlockedReason

The reason why request was blocked.

CertificateTransparencyCompliance

Whether the request complied with Certificate Transparency policy.

ConnectionType

The underlying connection technology that the browser is supposedly using.

CookieBlockedReason

Types of reasons why a cookie may not be sent with a request.

CookiePriority

Represents the cookie’s ‘Priority’ status: https://tools.ietf.org/html/draft-west-cookie-priority-00

CookieSameSite

Represents the cookie’s ‘SameSite’ status: https://tools.ietf.org/html/draft-west-first-party-cookies

CrossOriginEmbedderPolicyValue
CrossOriginOpenerPolicyValue
ErrorReason

Network level fetch failure reason.

InitiatorType

Type of this initiator.

InterceptionStage

Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.

RequestReferrerPolicy

The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/

ResourcePriority

Loading priority of a resource request.

ResourceType

Resource type as it was perceived by the rendering engine.

ServiceWorkerResponseSource

Source of serviceworker response.

SetCookieBlockedReason

Types of reasons why a cookie may not be stored from a response.

SignedExchangeErrorField

Field type for a signed exchange related error.

TrustTokenOperationType
TrustTokenParamsRefreshPolicy

Only set for “srr-token-redemption” type and determine whether to request a fresh SRR or use a still valid cached SRR.