Skip to content

网络协议

Chrome DevTools 协议的网络域命令、事件和类型。

方法

pydoll.protocol.network.methods

GetCookiesResponse module-attribute

GetCookiesResponse = Response[GetCookiesResult]

SetCookieResponse module-attribute

SetCookieResponse = Response[SetCookieResult]

GetRequestPostDataResponse module-attribute

GetRequestPostDataResponse = Response[GetRequestPostDataResult]

GetResponseBodyResponse module-attribute

GetResponseBodyResponse = Response[GetResponseBodyResult]

GetResponseBodyForInterceptionResponse module-attribute

GetResponseBodyForInterceptionResponse = Response[GetResponseBodyForInterceptionResult]

SearchInResponseBodyResponse module-attribute

SearchInResponseBodyResponse = Response[SearchInResponseBodyResult]

StreamResourceContentResponse module-attribute

StreamResourceContentResponse = Response[StreamResourceContentResult]

TakeResponseBodyForInterceptionAsStreamResponse module-attribute

TakeResponseBodyForInterceptionAsStreamResponse = Response[TakeResponseBodyForInterceptionAsStreamResult]

GetCertificateResponse module-attribute

GetCertificateResponse = Response[GetCertificateResult]

CanClearBrowserCacheResponse module-attribute

CanClearBrowserCacheResponse = Response[CanClearBrowserCacheResult]

CanClearBrowserCookiesResponse module-attribute

CanClearBrowserCookiesResponse = Response[CanClearBrowserCookiesResult]

CanEmulateNetworkConditionsResponse module-attribute

CanEmulateNetworkConditionsResponse = Response[CanEmulateNetworkConditionsResult]

GetSecurityIsolationStatusResponse module-attribute

GetSecurityIsolationStatusResponse = Response[GetSecurityIsolationStatusResult]

LoadNetworkResourceResponse module-attribute

LoadNetworkResourceResponse = Response[LoadNetworkResourceResult]

ClearBrowserCacheCommand module-attribute

ClearBrowserCacheCommand = Command[EmptyParams, EmptyResponse]

ClearBrowserCookiesCommand module-attribute

ClearBrowserCookiesCommand = Command[EmptyParams, EmptyResponse]

ClearCookiesCommand module-attribute

ClearCookiesCommand = Command[DeleteCookiesParams, EmptyResponse]

DisableCommand module-attribute

DisableCommand = Command[EmptyParams, EmptyResponse]

EmulateNetworkConditionsCommand module-attribute

EmulateNetworkConditionsCommand = Command[EmulateNetworkConditionsParams, EmptyResponse]

EnableCommand module-attribute

GetCookiesCommand module-attribute

GetRequestPostDataCommand module-attribute

GetResponseBodyCommand module-attribute

SetCacheDisabledCommand module-attribute

SetCacheDisabledCommand = Command[SetCacheDisabledParams, EmptyResponse]

SetCookieCommand module-attribute

SetCookiesCommand module-attribute

SetCookiesCommand = Command[SetCookiesParams, EmptyResponse]

SetExtraHTTPHeadersCommand module-attribute

SetExtraHTTPHeadersCommand = Command[SetExtraHTTPHeadersParams, EmptyResponse]

SetUserAgentOverrideCommand module-attribute

SetUserAgentOverrideCommand = Command[SetUserAgentOverrideParams, EmptyResponse]

ClearAcceptedEncodingsOverrideCommand module-attribute

ClearAcceptedEncodingsOverrideCommand = Command[EmptyParams, EmptyResponse]

EnableReportingApiCommand module-attribute

EnableReportingApiCommand = Command[EnableReportingApiParams, EmptyResponse]

SearchInResponseBodyCommand module-attribute

SetBlockedURLsCommand module-attribute

SetBlockedURLsCommand = Command[SetBlockedURLsParams, EmptyResponse]

SetBypassServiceWorkerCommand module-attribute

SetBypassServiceWorkerCommand = Command[SetBypassServiceWorkerParams, EmptyResponse]

GetCertificateCommand module-attribute

GetResponseBodyForInterceptionCommand module-attribute

SetAcceptedEncodingsCommand module-attribute

SetAcceptedEncodingsCommand = Command[SetAcceptedEncodingsParams, EmptyResponse]

SetAttachDebugStackCommand module-attribute

SetAttachDebugStackCommand = Command[SetAttachDebugStackParams, EmptyResponse]

SetCookieControlsCommand module-attribute

SetCookieControlsCommand = Command[SetCookieControlsParams, EmptyResponse]

StreamResourceContentCommand module-attribute

TakeResponseBodyForInterceptionAsStreamCommand module-attribute

GetSecurityIsolationStatusCommand module-attribute

LoadNetworkResourceCommand module-attribute

ReplayXHRCommand module-attribute

ReplayXHRCommand = Command[ReplayXHRParams, EmptyResponse]

NetworkMethod

Bases: str, Enum

CLEAR_BROWSER_CACHE class-attribute instance-attribute

CLEAR_BROWSER_CACHE = 'Network.clearBrowserCache'

CLEAR_BROWSER_COOKIES class-attribute instance-attribute

CLEAR_BROWSER_COOKIES = 'Network.clearBrowserCookies'

DELETE_COOKIES class-attribute instance-attribute

DELETE_COOKIES = 'Network.deleteCookies'

DISABLE class-attribute instance-attribute

DISABLE = 'Network.disable'

EMULATE_NETWORK_CONDITIONS class-attribute instance-attribute

EMULATE_NETWORK_CONDITIONS = 'Network.emulateNetworkConditions'

ENABLE class-attribute instance-attribute

ENABLE = 'Network.enable'

GET_COOKIES class-attribute instance-attribute

GET_COOKIES = 'Network.getCookies'

GET_REQUEST_POST_DATA class-attribute instance-attribute

GET_REQUEST_POST_DATA = 'Network.getRequestPostData'

GET_RESPONSE_BODY class-attribute instance-attribute

GET_RESPONSE_BODY = 'Network.getResponseBody'

SET_BYPASS_SERVICE_WORKER class-attribute instance-attribute

SET_BYPASS_SERVICE_WORKER = 'Network.setBypassServiceWorker'

SET_CACHE_DISABLED class-attribute instance-attribute

SET_CACHE_DISABLED = 'Network.setCacheDisabled'
SET_COOKIE = 'Network.setCookie'

SET_COOKIES class-attribute instance-attribute

SET_COOKIES = 'Network.setCookies'

SET_EXTRA_HTTP_HEADERS class-attribute instance-attribute

SET_EXTRA_HTTP_HEADERS = 'Network.setExtraHTTPHeaders'

SET_USER_AGENT_OVERRIDE class-attribute instance-attribute

SET_USER_AGENT_OVERRIDE = 'Network.setUserAgentOverride'

CLEAR_ACCEPTED_ENCODINGS_OVERRIDE class-attribute instance-attribute

CLEAR_ACCEPTED_ENCODINGS_OVERRIDE = 'Network.clearAcceptedEncodingsOverride'

ENABLE_REPORTING_API class-attribute instance-attribute

ENABLE_REPORTING_API = 'Network.enableReportingApi'

GET_CERTIFICATE class-attribute instance-attribute

GET_CERTIFICATE = 'Network.getCertificate'

GET_RESPONSE_BODY_FOR_INTERCEPTION class-attribute instance-attribute

GET_RESPONSE_BODY_FOR_INTERCEPTION = 'Network.getResponseBodyForInterception'

GET_SECURITY_ISOLATION_STATUS class-attribute instance-attribute

GET_SECURITY_ISOLATION_STATUS = 'Network.getSecurityIsolationStatus'

LOAD_NETWORK_RESOURCE class-attribute instance-attribute

LOAD_NETWORK_RESOURCE = 'Network.loadNetworkResource'

REPLAY_XHR class-attribute instance-attribute

REPLAY_XHR = 'Network.replayXHR'

SEARCH_IN_RESPONSE_BODY class-attribute instance-attribute

SEARCH_IN_RESPONSE_BODY = 'Network.searchInResponseBody'

SET_ACCEPTED_ENCODINGS class-attribute instance-attribute

SET_ACCEPTED_ENCODINGS = 'Network.setAcceptedEncodings'

SET_ATTACH_DEBUG_STACK class-attribute instance-attribute

SET_ATTACH_DEBUG_STACK = 'Network.setAttachDebugStack'

SET_BLOCKED_URLS class-attribute instance-attribute

SET_BLOCKED_URLS = 'Network.setBlockedURLs'
SET_COOKIE_CONTROLS = 'Network.setCookieControls'

STREAM_RESOURCE_CONTENT class-attribute instance-attribute

STREAM_RESOURCE_CONTENT = 'Network.streamResourceContent'

TAKE_RESPONSE_BODY_FOR_INTERCEPTION_AS_STREAM class-attribute instance-attribute

TAKE_RESPONSE_BODY_FOR_INTERCEPTION_AS_STREAM = 'Network.takeResponseBodyForInterceptionAsStream'

DeleteCookiesParams

Bases: TypedDict

Parameters for deleting browser cookies.

name instance-attribute

name

url instance-attribute

url

domain instance-attribute

domain

path instance-attribute

path

partitionKey instance-attribute

partitionKey

EmulateNetworkConditionsParams

Bases: TypedDict

Parameters for emulating network conditions.

offline instance-attribute

offline

latency instance-attribute

latency

downloadThroughput instance-attribute

downloadThroughput

uploadThroughput instance-attribute

uploadThroughput

connectionType instance-attribute

connectionType

packetLoss instance-attribute

packetLoss

packetQueueLength instance-attribute

packetQueueLength

packetReordering instance-attribute

packetReordering

NetworkEnableParams

Bases: TypedDict

Parameters for enabling network tracking.

maxTotalBufferSize instance-attribute

maxTotalBufferSize

maxResourceBufferSize instance-attribute

maxResourceBufferSize

maxPostDataSize instance-attribute

maxPostDataSize

GetCookiesParams

Bases: TypedDict

Parameters for retrieving browser cookies.

urls instance-attribute

urls

GetRequestPostDataParams

Bases: TypedDict

Parameters for retrieving request POST data.

requestId instance-attribute

requestId

GetResponseBodyParams

Bases: TypedDict

Parameters for retrieving response body.

requestId instance-attribute

requestId

GetCertificateParams

Bases: TypedDict

Parameters for retrieving DER-encoded certificate.

origin instance-attribute

origin

GetResponseBodyForInterceptionParams

Bases: TypedDict

Parameters for retrieving response body for intercepted request.

interceptionId instance-attribute

interceptionId

SearchInResponseBodyParams

Bases: TypedDict

Parameters for searching in response content.

requestId instance-attribute

requestId

query instance-attribute

query

caseSensitive instance-attribute

caseSensitive

isRegex instance-attribute

isRegex

SetBypassServiceWorkerParams

Bases: TypedDict

Parameters for toggling service worker bypass.

bypass instance-attribute

bypass

SetCacheDisabledParams

Bases: TypedDict

Parameters for toggling cache for requests.

cacheDisabled instance-attribute

cacheDisabled

SetCookieParams

Bases: TypedDict

Parameters for setting a cookie.

name instance-attribute

name

value instance-attribute

value

url instance-attribute

url

domain instance-attribute

domain

path instance-attribute

path

secure instance-attribute

secure

httpOnly instance-attribute

httpOnly

sameSite instance-attribute

sameSite

expires instance-attribute

expires

priority instance-attribute

priority

sameParty instance-attribute

sameParty

sourceScheme instance-attribute

sourceScheme

sourcePort instance-attribute

sourcePort

partitionKey instance-attribute

partitionKey

SetCookiesParams

Bases: TypedDict

Parameters for setting multiple cookies.

cookies instance-attribute

cookies

SetExtraHTTPHeadersParams

Bases: TypedDict

Parameters for setting extra HTTP headers.

headers instance-attribute

headers

SetUserAgentOverrideParams

Bases: TypedDict

Parameters for overriding user agent string.

userAgent instance-attribute

userAgent

acceptLanguage instance-attribute

acceptLanguage

platform instance-attribute

platform

userAgentMetadata instance-attribute

userAgentMetadata

SetBlockedURLsParams

Bases: TypedDict

Parameters for blocking URLs from loading.

urls instance-attribute

urls

SetAcceptedEncodingsParams

Bases: TypedDict

Parameters for setting accepted content encodings.

encodings instance-attribute

encodings

SetAttachDebugStackParams

Bases: TypedDict

Parameters for attaching a page script stack in requests.

enabled instance-attribute

enabled

SetCookieControlsParams

Bases: TypedDict

Parameters for setting controls for third-party cookie access.

enableThirdPartyCookieRestriction instance-attribute

enableThirdPartyCookieRestriction

disableThirdPartyCookieMetadata instance-attribute

disableThirdPartyCookieMetadata

disableThirdPartyCookieHeuristics instance-attribute

disableThirdPartyCookieHeuristics

StreamResourceContentParams

Bases: TypedDict

Parameters for enabling streaming of the response.

requestId instance-attribute

requestId

TakeResponseBodyForInterceptionAsStreamParams

Bases: TypedDict

Parameters for taking response body for interception as a stream.

interceptionId instance-attribute

interceptionId

SetRequestInterceptionParams

Bases: TypedDict

Parameters for setting request interception patterns.

patterns instance-attribute

patterns

AuthChallengeResponseParams

Bases: TypedDict

Parameters for responding to an auth challenge.

response instance-attribute

response

username instance-attribute

username

password instance-attribute

password

EnableReportingApiParams

Bases: TypedDict

Parameters for enabling Reporting API.

enabled instance-attribute

enabled

GetSecurityIsolationStatusParams

Bases: TypedDict

frameId instance-attribute

frameId

LoadNetworkResourceParams

Bases: TypedDict

Parameters for loading a network resource.

url instance-attribute

url

options instance-attribute

options

frameId instance-attribute

frameId

ReplayXHRParams

Bases: TypedDict

Parameters for replaying an XMLHttpRequest.

requestId instance-attribute

requestId

GetCookiesResult

Bases: TypedDict

Response result for getCookies command.

cookies instance-attribute

cookies

GetRequestPostDataResult

Bases: TypedDict

Response result for getRequestPostData command.

postData instance-attribute

postData

GetResponseBodyResult

Bases: TypedDict

Response result for getResponseBody command.

body instance-attribute

body

base64Encoded instance-attribute

base64Encoded

GetResponseBodyForInterceptionResult

Bases: TypedDict

Response result for getResponseBodyForInterception command.

body instance-attribute

body

base64Encoded instance-attribute

base64Encoded

GetCertificateResult

Bases: TypedDict

Response result for getCertificate command.

tableNames instance-attribute

tableNames

SearchInResponseBodyResult

Bases: TypedDict

Response result for searchInResponseBody command.

result instance-attribute

result

SetCookieResult

Bases: TypedDict

Response result for setCookie command.

success instance-attribute

success

StreamResourceContentResult

Bases: TypedDict

Response result for streamResourceContent command.

bufferedData instance-attribute

bufferedData

TakeResponseBodyForInterceptionAsStreamResult

Bases: TypedDict

Response result for takeResponseBodyForInterceptionAsStream command.

stream instance-attribute

stream

CanClearBrowserCacheResult

Bases: TypedDict

Response result for canClearBrowserCache command.

result instance-attribute

result

CanClearBrowserCookiesResult

Bases: TypedDict

Response result for canClearBrowserCookies command.

result instance-attribute

result

CanEmulateNetworkConditionsResult

Bases: TypedDict

Response result for canEmulateNetworkConditions command.

result instance-attribute

result

GetSecurityIsolationStatusResult

Bases: TypedDict

Response result for getSecurityIsolationStatus command.

status instance-attribute

status

LoadNetworkResourceResult

Bases: TypedDict

Response result for loadNetworkResource command.

success instance-attribute

success

netError instance-attribute

netError

netErrorName instance-attribute

netErrorName

httpStatusCode instance-attribute

httpStatusCode

stream instance-attribute

stream

headers instance-attribute

headers

事件

pydoll.protocol.network.events

DataReceivedEvent module-attribute

DataReceivedEvent = CDPEvent[DataReceivedEventParams]

EventSourceMessageReceivedEvent module-attribute

EventSourceMessageReceivedEvent = CDPEvent[EventSourceMessageReceivedEventParams]

LoadingFailedEvent module-attribute

LoadingFailedEvent = CDPEvent[LoadingFailedEventParams]

LoadingFinishedEvent module-attribute

LoadingFinishedEvent = CDPEvent[LoadingFinishedEventParams]

RequestInterceptedEvent module-attribute

RequestInterceptedEvent = CDPEvent[RequestInterceptedEventParams]

RequestServedFromCacheEvent module-attribute

RequestServedFromCacheEvent = CDPEvent[RequestServedFromCacheEventParams]

RequestWillBeSentEvent module-attribute

RequestWillBeSentEvent = CDPEvent[RequestWillBeSentEventParams]

ResourceChangedPriorityEvent module-attribute

ResourceChangedPriorityEvent = CDPEvent[ResourceChangedPriorityEventParams]

SignedExchangeReceivedEvent module-attribute

SignedExchangeReceivedEvent = CDPEvent[SignedExchangeReceivedEventParams]

ResponseReceivedEvent module-attribute

ResponseReceivedEvent = CDPEvent[ResponseReceivedEventParams]

WebSocketClosedEvent module-attribute

WebSocketClosedEvent = CDPEvent[WebSocketClosedEventParams]

WebSocketCreatedEvent module-attribute

WebSocketCreatedEvent = CDPEvent[WebSocketCreatedEventParams]

WebSocketFrameErrorEvent module-attribute

WebSocketFrameErrorEvent = CDPEvent[WebSocketFrameErrorEventParams]

WebSocketFrameReceivedEvent module-attribute

WebSocketFrameReceivedEvent = CDPEvent[WebSocketFrameReceivedEventParams]

WebSocketFrameSentEvent module-attribute

WebSocketFrameSentEvent = CDPEvent[WebSocketFrameSentEventParams]

WebSocketHandshakeResponseReceivedEvent module-attribute

WebSocketHandshakeResponseReceivedEvent = CDPEvent[WebSocketHandshakeResponseReceivedEventParams]

WebSocketWillSendHandshakeRequestEvent module-attribute

WebSocketWillSendHandshakeRequestEvent = CDPEvent[WebSocketWillSendHandshakeRequestEventParams]

WebTransportCreatedEvent module-attribute

WebTransportCreatedEvent = CDPEvent[WebTransportCreatedEventParams]

WebTransportConnectionEstablishedEvent module-attribute

WebTransportConnectionEstablishedEvent = CDPEvent[WebTransportConnectionEstablishedEventParams]

WebTransportClosedEvent module-attribute

WebTransportClosedEvent = CDPEvent[WebTransportClosedEventParams]

DirectTCPSocketCreatedEvent module-attribute

DirectTCPSocketCreatedEvent = CDPEvent[DirectTCPSocketCreatedEventParams]

DirectTCPSocketOpenedEvent module-attribute

DirectTCPSocketOpenedEvent = CDPEvent[DirectTCPSocketOpenedEventParams]

DirectTCPSocketAbortedEvent module-attribute

DirectTCPSocketAbortedEvent = CDPEvent[DirectTCPSocketAbortedEventParams]

DirectTCPSocketClosedEvent module-attribute

DirectTCPSocketClosedEvent = CDPEvent[DirectTCPSocketClosedEventParams]

DirectTCPSocketChunkSentEvent module-attribute

DirectTCPSocketChunkSentEvent = CDPEvent[DirectTCPSocketChunkSentEventParams]

DirectTCPSocketChunkReceivedEvent module-attribute

DirectTCPSocketChunkReceivedEvent = CDPEvent[DirectTCPSocketChunkReceivedEventParams]

DirectUDPSocketCreatedEvent module-attribute

DirectUDPSocketCreatedEvent = CDPEvent[DirectUDPSocketCreatedEventParams]

DirectUDPSocketOpenedEvent module-attribute

DirectUDPSocketOpenedEvent = CDPEvent[DirectUDPSocketOpenedEventParams]

DirectUDPSocketAbortedEvent module-attribute

DirectUDPSocketAbortedEvent = CDPEvent[DirectUDPSocketAbortedEventParams]

DirectUDPSocketClosedEvent module-attribute

DirectUDPSocketClosedEvent = CDPEvent[DirectUDPSocketClosedEventParams]

DirectUDPSocketChunkSentEvent module-attribute

DirectUDPSocketChunkSentEvent = CDPEvent[DirectUDPSocketChunkSentEventParams]

DirectUDPSocketChunkReceivedEvent module-attribute

DirectUDPSocketChunkReceivedEvent = CDPEvent[DirectUDPSocketChunkReceivedEventParams]

RequestWillBeSentExtraInfoEvent module-attribute

RequestWillBeSentExtraInfoEvent = CDPEvent[RequestWillBeSentExtraInfoEventParams]

ResponseReceivedExtraInfoEvent module-attribute

ResponseReceivedExtraInfoEvent = CDPEvent[ResponseReceivedExtraInfoEventParams]

ResponseReceivedEarlyHintsEvent module-attribute

ResponseReceivedEarlyHintsEvent = CDPEvent[ResponseReceivedEarlyHintsEventParams]

TrustTokenOperationDoneEvent module-attribute

TrustTokenOperationDoneEvent = CDPEvent[TrustTokenOperationDoneEventParams]

PolicyUpdatedEvent module-attribute

PolicyUpdatedEvent = CDPEvent[PolicyUpdatedEventParams]

SubresourceWebBundleMetadataReceivedEvent module-attribute

SubresourceWebBundleMetadataReceivedEvent = CDPEvent[SubresourceWebBundleMetadataReceivedEventParams]

SubresourceWebBundleMetadataErrorEvent module-attribute

SubresourceWebBundleMetadataErrorEvent = CDPEvent[SubresourceWebBundleMetadataErrorEventParams]

SubresourceWebBundleInnerResponseParsedEvent module-attribute

SubresourceWebBundleInnerResponseParsedEvent = CDPEvent[SubresourceWebBundleInnerResponseParsedEventParams]

SubresourceWebBundleInnerResponseErrorEvent module-attribute

SubresourceWebBundleInnerResponseErrorEvent = CDPEvent[SubresourceWebBundleInnerResponseErrorEventParams]

ReportingApiReportAddedEvent module-attribute

ReportingApiReportAddedEvent = CDPEvent[ReportingApiReportAddedEventParams]

ReportingApiReportUpdatedEvent module-attribute

ReportingApiReportUpdatedEvent = CDPEvent[ReportingApiReportUpdatedEventParams]

ReportingApiEndpointsChangedForOriginEvent module-attribute

ReportingApiEndpointsChangedForOriginEvent = CDPEvent[ReportingApiEndpointsChangedForOriginEventParams]

NetworkEvent

Bases: str, Enum

Events from the Network domain of the Chrome DevTools Protocol.

This enumeration contains the names of Network-related events that can be received from the Chrome DevTools Protocol. These events provide information about network activities, such as requests, responses, and WebSocket communications.

DATA_RECEIVED class-attribute instance-attribute

DATA_RECEIVED = 'Network.dataReceived'

Fired when data chunk was received over the network.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

dataLength

Data chunk length.

TYPE: int

encodedDataLength

Actual bytes received (might be less than dataLength for compressed encodings).

TYPE: int

data

Data that was received. (Encoded as a base64 string when passed over JSON)

TYPE: str

EVENT_SOURCE_MESSAGE_RECEIVED class-attribute instance-attribute

EVENT_SOURCE_MESSAGE_RECEIVED = 'Network.eventSourceMessageReceived'

Fired when EventSource message is received.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

eventName

Message type.

TYPE: str

eventId

Message identifier.

TYPE: str

data

Message content.

TYPE: str

LOADING_FAILED class-attribute instance-attribute

LOADING_FAILED = 'Network.loadingFailed'

Fired when HTTP request has failed to load.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

type

Resource type.

TYPE: ResourceType

errorText

Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h

TYPE: str

canceled

True if loading was canceled.

TYPE: bool

blockedReason

The reason why loading was blocked, if any.

TYPE: BlockedReason

corsErrorStatus

The reason why loading was blocked by CORS, if any.

TYPE: CorsErrorStatus

LOADING_FINISHED class-attribute instance-attribute

LOADING_FINISHED = 'Network.loadingFinished'

Fired when HTTP request has finished loading.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

encodedDataLength

Total number of bytes received for this request.

TYPE: number

REQUEST_SERVED_FROM_CACHE class-attribute instance-attribute

REQUEST_SERVED_FROM_CACHE = 'Network.requestServedFromCache'

Fired if request ended up loading from cache.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

REQUEST_WILL_BE_SENT class-attribute instance-attribute

REQUEST_WILL_BE_SENT = 'Network.requestWillBeSent'

Fired when page is about to send HTTP request.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

loaderId

Loader identifier. Empty string if the request is fetched from worker.

TYPE: LoaderId

documentURL

URL of the document this request is loaded for.

TYPE: str

request

Request data.

TYPE: Request

timestamp

Timestamp.

TYPE: MonotonicTime

wallTime

Timestamp.

TYPE: TimeSinceEpoch

initiator

Request initiator.

TYPE: Initiator

redirectHasExtraInfo

In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.

TYPE: bool

redirectResponse

Redirect response data.

TYPE: Response

type

Type of this resource.

TYPE: ResourceType

frameId

Frame identifier.

TYPE: FrameId

hasUserGesture

Whether the request is initiated by a user gesture. Defaults to false.

TYPE: bool

RESPONSE_RECEIVED class-attribute instance-attribute

RESPONSE_RECEIVED = 'Network.responseReceived'

Fired when HTTP response is available.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

loaderId

Loader identifier. Empty string if the request is fetched from worker.

TYPE: LoaderId

timestamp

Timestamp.

TYPE: MonotonicTime

type

Resource type.

TYPE: ResourceType

response

Response data.

TYPE: Response

hasExtraInfo

Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for this request.

TYPE: bool

frameId

Frame identifier.

TYPE: FrameId

WEBSOCKET_CLOSED class-attribute instance-attribute

WEBSOCKET_CLOSED = 'Network.webSocketClosed'

Fired when WebSocket is closed.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

WEBSOCKET_CREATED class-attribute instance-attribute

WEBSOCKET_CREATED = 'Network.webSocketCreated'

Fired upon WebSocket creation.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

url

WebSocket request URL.

TYPE: str

initiator

Request initiator.

TYPE: Initiator

WEBSOCKET_FRAME_ERROR class-attribute instance-attribute

WEBSOCKET_FRAME_ERROR = 'Network.webSocketFrameError'

Fired when WebSocket message error occurs.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

errorMessage

WebSocket error message.

TYPE: str

WEBSOCKET_FRAME_RECEIVED class-attribute instance-attribute

WEBSOCKET_FRAME_RECEIVED = 'Network.webSocketFrameReceived'

Fired when WebSocket message is received.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

response

WebSocket response data.

TYPE: WebSocketFrame

WEBSOCKET_FRAME_SENT class-attribute instance-attribute

WEBSOCKET_FRAME_SENT = 'Network.webSocketFrameSent'

Fired when WebSocket message is sent.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

response

WebSocket response data.

TYPE: WebSocketFrame

WEBSOCKET_HANDSHAKE_RESPONSE_RECEIVED class-attribute instance-attribute

WEBSOCKET_HANDSHAKE_RESPONSE_RECEIVED = 'Network.webSocketHandshakeResponseReceived'

Fired when WebSocket handshake response becomes available.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

response

WebSocket response data.

TYPE: WebSocketResponse

WEBSOCKET_WILL_SEND_HANDSHAKE_REQUEST class-attribute instance-attribute

WEBSOCKET_WILL_SEND_HANDSHAKE_REQUEST = 'Network.webSocketWillSendHandshakeRequest'

Fired when WebSocket is about to initiate handshake.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

wallTime

UTC Timestamp.

TYPE: TimeSinceEpoch

request

WebSocket request data.

TYPE: WebSocketRequest

WEBTRANSPORT_CLOSED class-attribute instance-attribute

WEBTRANSPORT_CLOSED = 'Network.webTransportClosed'

Fired when WebTransport is disposed.

PARAMETER DESCRIPTION
transportId

WebTransport identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

WEBTRANSPORT_CONNECTION_ESTABLISHED class-attribute instance-attribute

WEBTRANSPORT_CONNECTION_ESTABLISHED = 'Network.webTransportConnectionEstablished'

Fired when WebTransport handshake is finished.

PARAMETER DESCRIPTION
transportId

WebTransport identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

WEBTRANSPORT_CREATED class-attribute instance-attribute

WEBTRANSPORT_CREATED = 'Network.webTransportCreated'

Fired upon WebTransport creation.

PARAMETER DESCRIPTION
transportId

WebTransport identifier.

TYPE: RequestId

url

WebTransport request URL.

TYPE: str

timestamp

Timestamp.

TYPE: MonotonicTime

initiator

Request initiator.

TYPE: Initiator

DIRECT_TCP_SOCKET_ABORTED class-attribute instance-attribute

DIRECT_TCP_SOCKET_ABORTED = 'Network.directTCPSocketAborted'

Fired when direct_socket.TCPSocket is aborted.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

errorMessage

Error message.

TYPE: str

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_TCP_SOCKET_CHUNK_RECEIVED class-attribute instance-attribute

DIRECT_TCP_SOCKET_CHUNK_RECEIVED = 'Network.directTCPSocketChunkReceived'

Fired when data is received from tcp direct socket stream.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

data

Data received.

TYPE: str

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_TCP_SOCKET_CHUNK_SENT class-attribute instance-attribute

DIRECT_TCP_SOCKET_CHUNK_SENT = 'Network.directTCPSocketChunkSent'

Fired when data is sent to tcp direct socket stream.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

data

Data sent.

TYPE: str

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_TCP_SOCKET_CLOSED class-attribute instance-attribute

DIRECT_TCP_SOCKET_CLOSED = 'Network.directTCPSocketClosed'

Fired when direct_socket.TCPSocket is closed.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_TCP_SOCKET_CREATED class-attribute instance-attribute

DIRECT_TCP_SOCKET_CREATED = 'Network.directTCPSocketCreated'

Fired upon direct_socket.TCPSocket creation.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

remoteAddr

Remote address.

TYPE: str

remotePort

Remote port. Unsigned int 16.

TYPE: int

options

Socket options.

TYPE: DirectTCPSocketOptions

timestamp

Timestamp.

TYPE: MonotonicTime

initiator

Request initiator.

TYPE: Initiator

DIRECT_TCP_SOCKET_OPENED class-attribute instance-attribute

DIRECT_TCP_SOCKET_OPENED = 'Network.directTCPSocketOpened'

Fired when direct_socket.TCPSocket connection is opened.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

remoteAddr

Remote address.

TYPE: str

remotePort

Remote port. Expected to be unsigned integer.

TYPE: int

timestamp

Timestamp.

TYPE: MonotonicTime

localAddr

Local address.

TYPE: str

localPort

Local port. Expected to be unsigned integer.

TYPE: int

DIRECT_UDP_SOCKET_ABORTED class-attribute instance-attribute

DIRECT_UDP_SOCKET_ABORTED = 'Network.directUDPSocketAborted'

Fired when direct_socket.UDPSocket is aborted.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

errorMessage

Error message.

TYPE: str

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_UDP_SOCKET_CHUNK_RECEIVED class-attribute instance-attribute

DIRECT_UDP_SOCKET_CHUNK_RECEIVED = 'Network.directUDPSocketChunkReceived'

Fired when message is received from udp direct socket stream.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

message

Message data.

TYPE: DirectUDPMessage

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_UDP_SOCKET_CHUNK_SENT class-attribute instance-attribute

DIRECT_UDP_SOCKET_CHUNK_SENT = 'Network.directUDPSocketChunkSent'

Fired when message is sent to udp direct socket stream.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

message

Message data.

TYPE: DirectUDPMessage

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_UDP_SOCKET_CLOSED class-attribute instance-attribute

DIRECT_UDP_SOCKET_CLOSED = 'Network.directUDPSocketClosed'

Fired when direct_socket.UDPSocket is closed.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

timestamp

Timestamp.

TYPE: MonotonicTime

DIRECT_UDP_SOCKET_CREATED class-attribute instance-attribute

DIRECT_UDP_SOCKET_CREATED = 'Network.directUDPSocketCreated'

Fired upon direct_socket.UDPSocket creation.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

options

Socket options.

TYPE: DirectUDPSocketOptions

timestamp

Timestamp.

TYPE: MonotonicTime

initiator

Request initiator.

TYPE: Initiator

DIRECT_UDP_SOCKET_OPENED class-attribute instance-attribute

DIRECT_UDP_SOCKET_OPENED = 'Network.directUDPSocketOpened'

Fired when direct_socket.UDPSocket connection is opened.

PARAMETER DESCRIPTION
identifier

Request identifier.

TYPE: RequestId

localAddr

Local address.

TYPE: str

localPort

Local port. Expected to be unsigned integer.

TYPE: int

timestamp

Timestamp.

TYPE: MonotonicTime

remoteAddr

Remote address.

TYPE: str

remotePort

Remote port. Expected to be unsigned integer.

TYPE: int

POLICY_UPDATED class-attribute instance-attribute

POLICY_UPDATED = 'Network.policyUpdated'

Fired once security policy has been updated.

REPORTING_API_ENDPOINTS_CHANGED_FOR_ORIGIN class-attribute instance-attribute

REPORTING_API_ENDPOINTS_CHANGED_FOR_ORIGIN = 'Network.reportingApiEndpointsChangedForOrigin'

Fired when Reporting API endpoints change for an origin.

PARAMETER DESCRIPTION
origin

Origin of the document(s) which configured the endpoints.

TYPE: str

endpoints

The endpoints configured for the origin.

TYPE: array[ReportingApiEndpoint]

REPORTING_API_REPORT_ADDED class-attribute instance-attribute

REPORTING_API_REPORT_ADDED = 'Network.reportingApiReportAdded'

Is sent whenever a new report is added. And after 'enableReportingApi' for all existing reports.

PARAMETER DESCRIPTION
report

The report that was added.

TYPE: ReportingApiReport

REPORTING_API_REPORT_UPDATED class-attribute instance-attribute

REPORTING_API_REPORT_UPDATED = 'Network.reportingApiReportUpdated'

Fired when a report is updated.

PARAMETER DESCRIPTION
report

The report that was updated.

TYPE: ReportingApiReport

REQUEST_WILL_BE_SENT_EXTRA_INFO class-attribute instance-attribute

REQUEST_WILL_BE_SENT_EXTRA_INFO = 'Network.requestWillBeSentExtraInfo'

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.

PARAMETER DESCRIPTION
requestId

Request identifier. Used to match this information to an existing requestWillBeSent event.

TYPE: RequestId

associatedCookies

A list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReasons field set.

TYPE: array[AssociatedCookie]

headers

Raw request headers as they will be sent over the wire.

TYPE: Headers

connectTiming

Connection timing information for the request.

TYPE: ConnectTiming

clientSecurityState

The client security state set for the request.

TYPE: ClientSecurityState

siteHasCookieInOtherPartition

Whether the site has partitioned cookies stored in a partition different than the current one.

TYPE: bool

RESOURCE_CHANGED_PRIORITY class-attribute instance-attribute

RESOURCE_CHANGED_PRIORITY = 'Network.resourceChangedPriority'

Fired when resource loading priority is changed.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

newPriority

New priority.

TYPE: ResourcePriority

timestamp

Timestamp.

TYPE: MonotonicTime

RESPONSE_RECEIVED_EARLY_HINTS class-attribute instance-attribute

RESPONSE_RECEIVED_EARLY_HINTS = 'Network.responseReceivedEarlyHints'

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.

PARAMETER DESCRIPTION
requestId

Request identifier. Used to match this information to another responseReceived event.

TYPE: RequestId

headers

Raw response headers as they were received over the wire. Duplicate headers in the response are represented as a single key with their values concatentated using \n as the separator. See also headersText that contains verbatim text for HTTP/1.*.

TYPE: Headers

RESPONSE_RECEIVED_EXTRA_INFO class-attribute instance-attribute

RESPONSE_RECEIVED_EXTRA_INFO = 'Network.responseReceivedExtraInfo'

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.

PARAMETER DESCRIPTION
requestId

Request identifier. Used to match this information to another responseReceived event.

TYPE: RequestId

blockedCookies

A list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.

TYPE: array[BlockedSetCookieWithReason]

headers

Raw response headers as they were received over the wire. Duplicate headers in the response are represented as a single key with their values concatentated using \n as the separator. See also headersText that contains verbatim text for HTTP/1.*.

TYPE: Headers

resourceIPAddressSpace

The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in requestWillBeSentExtraInfo.

TYPE: IPAddressSpace

statusCode

The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304.

TYPE: int

headersText

Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.

TYPE: str

cookiePartitionKey

The cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled.

TYPE: CookiePartitionKey

cookiePartitionKeyOpaque

True if partitioned cookies are enabled, but the partition key is not serializable to string.

TYPE: bool

exemptedCookies

A list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason.

TYPE: array[ExemptedSetCookieWithReason]

SIGNED_EXCHANGE_RECEIVED class-attribute instance-attribute

SIGNED_EXCHANGE_RECEIVED = 'Network.signedExchangeReceived'

Fired when a signed exchange was received over the network.

PARAMETER DESCRIPTION
requestId

Request identifier.

TYPE: RequestId

info

Information about the signed exchange response.

TYPE: SignedExchangeInfo

SUBRESOURCE_WEB_BUNDLE_INNER_RESPONSE_ERROR class-attribute instance-attribute

SUBRESOURCE_WEB_BUNDLE_INNER_RESPONSE_ERROR = 'Network.subresourceWebBundleInnerResponseError'

Fired when request for resources within a .wbn file failed.

PARAMETER DESCRIPTION
innerRequestId

Request identifier of the subresource request.

TYPE: RequestId

innerRequestURL

URL of the subresource resource.

TYPE: str

errorMessage

Error message.

TYPE: str

bundleRequestId

Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.

TYPE: RequestId

SUBRESOURCE_WEB_BUNDLE_INNER_RESPONSE_PARSED class-attribute instance-attribute

SUBRESOURCE_WEB_BUNDLE_INNER_RESPONSE_PARSED = 'Network.subresourceWebBundleInnerResponseParsed'

Fired when handling requests for resources within a .wbn file. Note: this will only be fired for resources that are requested by the webpage.

PARAMETER DESCRIPTION
innerRequestId

Request identifier of the subresource request.

TYPE: RequestId

innerRequestURL

URL of the subresource resource.

TYPE: str

bundleRequestId

Bundle request identifier. Used to match this information to another event. This made be absent in case when the instrumentation was enabled only after webbundle was parsed.

TYPE: RequestId

SUBRESOURCE_WEB_BUNDLE_METADATA_ERROR class-attribute instance-attribute

SUBRESOURCE_WEB_BUNDLE_METADATA_ERROR = 'Network.subresourceWebBundleMetadataError'

Fired once when parsing the .wbn file has failed.

PARAMETER DESCRIPTION
requestId

Request identifier. Used to match this information to another event.

TYPE: RequestId

errorMessage

Error message.

TYPE: str

SUBRESOURCE_WEB_BUNDLE_METADATA_RECEIVED class-attribute instance-attribute

SUBRESOURCE_WEB_BUNDLE_METADATA_RECEIVED = 'Network.subresourceWebBundleMetadataReceived'

Fired once when parsing the .wbn file has succeeded. The event contains the information about the web bundle contents.

PARAMETER DESCRIPTION
requestId

Request identifier. Used to match this information to another event.

TYPE: RequestId

urls

A list of URLs of resources in the subresource Web Bundle.

TYPE: array[str]

TRUST_TOKEN_OPERATION_DONE class-attribute instance-attribute

TRUST_TOKEN_OPERATION_DONE = 'Network.trustTokenOperationDone'

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.

PARAMETER DESCRIPTION
status

Detailed success or error status of the operation. Allowed Values: Ok, InvalidArgument, MissingIssuerKeys, FailedPrecondition, ResourceExhausted, AlreadyExists, ResourceLimited, Unauthorized, BadResponse, InternalError, UnknownError, FulfilledLocally, SiteIssuerLimit

TYPE: str

type

Type of Trust Token operation.

TYPE: TrustTokenOperationType

requestId

Request identifier.

TYPE: RequestId

topLevelOrigin

Top level origin. The context in which the operation was attempted.

TYPE: str

issuerOrigin

Origin of the issuer in case of a "Issuance" or "Redemption" operation.

TYPE: str

issuedTokenCount

The number of obtained Trust Tokens on a successful "Issuance" operation.

TYPE: int

DataReceivedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

dataLength instance-attribute

dataLength

encodedDataLength instance-attribute

encodedDataLength

data instance-attribute

data

EventSourceMessageReceivedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

eventName instance-attribute

eventName

eventId instance-attribute

eventId

data instance-attribute

data

LoadingFailedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

type instance-attribute

type

errorText instance-attribute

errorText

canceled instance-attribute

canceled

blockedReason instance-attribute

blockedReason

corsErrorStatus instance-attribute

corsErrorStatus

LoadingFinishedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

encodedDataLength instance-attribute

encodedDataLength

RequestInterceptedEventParams

Bases: TypedDict

interceptionId instance-attribute

interceptionId

request instance-attribute

request

frameId instance-attribute

frameId

resourceType instance-attribute

resourceType

isNavigationRequest instance-attribute

isNavigationRequest

isDownload instance-attribute

isDownload

redirectUrl instance-attribute

redirectUrl

authChallenge instance-attribute

authChallenge

responseErrorReason instance-attribute

responseErrorReason

responseStatusCode instance-attribute

responseStatusCode

responseHeaders instance-attribute

responseHeaders

requestId instance-attribute

requestId

RequestServedFromCacheEventParams

Bases: TypedDict

requestId instance-attribute

requestId

RequestWillBeSentEventParams

Bases: TypedDict

requestId instance-attribute

requestId

loaderId instance-attribute

loaderId

documentURL instance-attribute

documentURL

request instance-attribute

request

timestamp instance-attribute

timestamp

wallTime instance-attribute

wallTime

initiator instance-attribute

initiator

redirectHasExtraInfo instance-attribute

redirectHasExtraInfo

redirectResponse instance-attribute

redirectResponse

type instance-attribute

type

frameId instance-attribute

frameId

hasUserGesture instance-attribute

hasUserGesture

ResourceChangedPriorityEventParams

Bases: TypedDict

requestId instance-attribute

requestId

newPriority instance-attribute

newPriority

timestamp instance-attribute

timestamp

SignedExchangeReceivedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

info instance-attribute

info

ResponseReceivedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

loaderId instance-attribute

loaderId

timestamp instance-attribute

timestamp

type instance-attribute

type

response instance-attribute

response

hasExtraInfo instance-attribute

hasExtraInfo

frameId instance-attribute

frameId

WebSocketClosedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

WebSocketCreatedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

url instance-attribute

url

initiator instance-attribute

initiator

WebSocketFrameErrorEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

errorMessage instance-attribute

errorMessage

WebSocketFrameReceivedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

response instance-attribute

response

WebSocketFrameSentEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

response instance-attribute

response

WebSocketHandshakeResponseReceivedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

response instance-attribute

response

WebSocketWillSendHandshakeRequestEventParams

Bases: TypedDict

requestId instance-attribute

requestId

timestamp instance-attribute

timestamp

wallTime instance-attribute

wallTime

request instance-attribute

request

WebTransportCreatedEventParams

Bases: TypedDict

transportId instance-attribute

transportId

url instance-attribute

url

timestamp instance-attribute

timestamp

initiator instance-attribute

initiator

WebTransportConnectionEstablishedEventParams

Bases: TypedDict

transportId instance-attribute

transportId

timestamp instance-attribute

timestamp

WebTransportClosedEventParams

Bases: TypedDict

transportId instance-attribute

transportId

timestamp instance-attribute

timestamp

DirectTCPSocketCreatedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

remoteAddr instance-attribute

remoteAddr

remotePort instance-attribute

remotePort

options instance-attribute

options

timestamp instance-attribute

timestamp

initiator instance-attribute

initiator

DirectTCPSocketOpenedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

remoteAddr instance-attribute

remoteAddr

remotePort instance-attribute

remotePort

timestamp instance-attribute

timestamp

localAddr instance-attribute

localAddr

localPort instance-attribute

localPort

DirectTCPSocketAbortedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

errorMessage instance-attribute

errorMessage

timestamp instance-attribute

timestamp

DirectTCPSocketClosedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

timestamp instance-attribute

timestamp

DirectTCPSocketChunkSentEventParams

Bases: TypedDict

identifier instance-attribute

identifier

data instance-attribute

data

timestamp instance-attribute

timestamp

DirectTCPSocketChunkReceivedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

data instance-attribute

data

timestamp instance-attribute

timestamp

DirectUDPSocketCreatedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

options instance-attribute

options

timestamp instance-attribute

timestamp

initiator instance-attribute

initiator

DirectUDPSocketOpenedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

localAddr instance-attribute

localAddr

localPort instance-attribute

localPort

timestamp instance-attribute

timestamp

remoteAddr instance-attribute

remoteAddr

remotePort instance-attribute

remotePort

DirectUDPSocketAbortedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

errorMessage instance-attribute

errorMessage

timestamp instance-attribute

timestamp

DirectUDPSocketClosedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

timestamp instance-attribute

timestamp

DirectUDPSocketChunkSentEventParams

Bases: TypedDict

identifier instance-attribute

identifier

message instance-attribute

message

timestamp instance-attribute

timestamp

DirectUDPSocketChunkReceivedEventParams

Bases: TypedDict

identifier instance-attribute

identifier

message instance-attribute

message

timestamp instance-attribute

timestamp

RequestWillBeSentExtraInfoEventParams

Bases: TypedDict

requestId instance-attribute

requestId

associatedCookies instance-attribute

associatedCookies

headers instance-attribute

headers

connectTiming instance-attribute

connectTiming

clientSecurityState instance-attribute

clientSecurityState

siteHasCookieInOtherPartition instance-attribute

siteHasCookieInOtherPartition

ResponseReceivedExtraInfoEventParams

Bases: TypedDict

requestId instance-attribute

requestId

blockedCookies instance-attribute

blockedCookies

headers instance-attribute

headers

resourceIPAddressSpace instance-attribute

resourceIPAddressSpace

statusCode instance-attribute

statusCode

headersText instance-attribute

headersText

cookiePartitionKey instance-attribute

cookiePartitionKey

cookiePartitionKeyOpaque instance-attribute

cookiePartitionKeyOpaque

exemptedCookies instance-attribute

exemptedCookies

ResponseReceivedEarlyHintsEventParams

Bases: TypedDict

requestId instance-attribute

requestId

headers instance-attribute

headers

TrustTokenOperationDoneEventParams

Bases: TypedDict

status instance-attribute

status

type instance-attribute

type

requestId instance-attribute

requestId

topLevelOrigin instance-attribute

topLevelOrigin

issuerOrigin instance-attribute

issuerOrigin

issuedTokenCount instance-attribute

issuedTokenCount

PolicyUpdatedEventParams

Bases: TypedDict

SubresourceWebBundleMetadataReceivedEventParams

Bases: TypedDict

requestId instance-attribute

requestId

urls instance-attribute

urls

SubresourceWebBundleMetadataErrorEventParams

Bases: TypedDict

requestId instance-attribute

requestId

errorMessage instance-attribute

errorMessage

SubresourceWebBundleInnerResponseParsedEventParams

Bases: TypedDict

innerRequestId instance-attribute

innerRequestId

innerRequestURL instance-attribute

innerRequestURL

bundleRequestId instance-attribute

bundleRequestId

SubresourceWebBundleInnerResponseErrorEventParams

Bases: TypedDict

innerRequestId instance-attribute

innerRequestId

innerRequestURL instance-attribute

innerRequestURL

errorMessage instance-attribute

errorMessage

bundleRequestId instance-attribute

bundleRequestId

ReportingApiReportAddedEventParams

Bases: TypedDict

report instance-attribute

report

ReportingApiReportUpdatedEventParams

Bases: TypedDict

report instance-attribute

report

ReportingApiEndpointsChangedForOriginEventParams

Bases: TypedDict

origin instance-attribute

origin

endpoints instance-attribute

endpoints

类型

pydoll.protocol.network.types

LoaderId module-attribute

LoaderId = str

RequestId module-attribute

RequestId = str

InterceptionId module-attribute

InterceptionId = str

TimeSinceEpoch module-attribute

TimeSinceEpoch = float

MonotonicTime module-attribute

MonotonicTime = float

Headers module-attribute

Headers = dict[str, str]

ResourceType

Bases: str, Enum

Resource type as it was perceived by the rendering engine.

DOCUMENT class-attribute instance-attribute

DOCUMENT = 'Document'

STYLESHEET class-attribute instance-attribute

STYLESHEET = 'Stylesheet'

IMAGE class-attribute instance-attribute

IMAGE = 'Image'

MEDIA class-attribute instance-attribute

MEDIA = 'Media'

FONT class-attribute instance-attribute

FONT = 'Font'

SCRIPT class-attribute instance-attribute

SCRIPT = 'Script'

TEXT_TRACK class-attribute instance-attribute

TEXT_TRACK = 'TextTrack'

XHR class-attribute instance-attribute

XHR = 'XHR'

FETCH class-attribute instance-attribute

FETCH = 'Fetch'

PREFETCH class-attribute instance-attribute

PREFETCH = 'Prefetch'

EVENT_SOURCE class-attribute instance-attribute

EVENT_SOURCE = 'EventSource'

WEB_SOCKET class-attribute instance-attribute

WEB_SOCKET = 'WebSocket'

MANIFEST class-attribute instance-attribute

MANIFEST = 'Manifest'

SIGNED_EXCHANGE class-attribute instance-attribute

SIGNED_EXCHANGE = 'SignedExchange'

PING class-attribute instance-attribute

PING = 'Ping'

CSP_VIOLATION_REPORT class-attribute instance-attribute

CSP_VIOLATION_REPORT = 'CSPViolationReport'

PREFLIGHT class-attribute instance-attribute

PREFLIGHT = 'Preflight'

FED_CM class-attribute instance-attribute

FED_CM = 'FedCM'

OTHER class-attribute instance-attribute

OTHER = 'Other'

ErrorReason

Bases: str, Enum

Network level fetch failure reason.

FAILED class-attribute instance-attribute

FAILED = 'Failed'

ABORTED class-attribute instance-attribute

ABORTED = 'Aborted'

TIMED_OUT class-attribute instance-attribute

TIMED_OUT = 'TimedOut'

ACCESS_DENIED class-attribute instance-attribute

ACCESS_DENIED = 'AccessDenied'

CONNECTION_CLOSED class-attribute instance-attribute

CONNECTION_CLOSED = 'ConnectionClosed'

CONNECTION_RESET class-attribute instance-attribute

CONNECTION_RESET = 'ConnectionReset'

CONNECTION_REFUSED class-attribute instance-attribute

CONNECTION_REFUSED = 'ConnectionRefused'

CONNECTION_ABORTED class-attribute instance-attribute

CONNECTION_ABORTED = 'ConnectionAborted'

CONNECTION_FAILED class-attribute instance-attribute

CONNECTION_FAILED = 'ConnectionFailed'

NAME_NOT_RESOLVED class-attribute instance-attribute

NAME_NOT_RESOLVED = 'NameNotResolved'

INTERNET_DISCONNECTED class-attribute instance-attribute

INTERNET_DISCONNECTED = 'InternetDisconnected'

ADDRESS_UNREACHABLE class-attribute instance-attribute

ADDRESS_UNREACHABLE = 'AddressUnreachable'

BLOCKED_BY_CLIENT class-attribute instance-attribute

BLOCKED_BY_CLIENT = 'BlockedByClient'

BLOCKED_BY_RESPONSE class-attribute instance-attribute

BLOCKED_BY_RESPONSE = 'BlockedByResponse'

RequestMethod

Bases: str, Enum

HTTP request method.

GET class-attribute instance-attribute

GET = 'GET'

POST class-attribute instance-attribute

POST = 'POST'

PUT class-attribute instance-attribute

PUT = 'PUT'

DELETE class-attribute instance-attribute

DELETE = 'DELETE'

PATCH class-attribute instance-attribute

PATCH = 'PATCH'

ConnectionType

Bases: str, Enum

The underlying connection technology that the browser is supposedly using.

NONE class-attribute instance-attribute

NONE = 'none'

CELLULAR2G class-attribute instance-attribute

CELLULAR2G = 'cellular2g'

CELLULAR3G class-attribute instance-attribute

CELLULAR3G = 'cellular3g'

CELLULAR4G class-attribute instance-attribute

CELLULAR4G = 'cellular4g'

BLUETOOTH class-attribute instance-attribute

BLUETOOTH = 'bluetooth'

ETHERNET class-attribute instance-attribute

ETHERNET = 'ethernet'

WIFI class-attribute instance-attribute

WIFI = 'wifi'

WIMAX class-attribute instance-attribute

WIMAX = 'wimax'

OTHER class-attribute instance-attribute

OTHER = 'other'

CookieSameSite

Bases: str, Enum

Represents the cookie's 'SameSite' status

STRICT class-attribute instance-attribute

STRICT = 'Strict'

LAX class-attribute instance-attribute

LAX = 'Lax'

NONE class-attribute instance-attribute

NONE = 'None'

CookiePriority

Bases: str, Enum

Represents the cookie's 'Priority' status

LOW class-attribute instance-attribute

LOW = 'Low'

MEDIUM class-attribute instance-attribute

MEDIUM = 'Medium'

HIGH class-attribute instance-attribute

HIGH = 'High'

CookieSourceScheme

Bases: str, Enum

Represents the source scheme of the origin that originally set the cookie. A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme. This is a temporary ability and it will be removed in the future.

UNSET class-attribute instance-attribute

UNSET = 'Unset'

NON_SECURE class-attribute instance-attribute

NON_SECURE = 'NonSecure'

SECURE class-attribute instance-attribute

SECURE = 'Secure'

ResourceTiming

Bases: TypedDict

Timing information for the request.

requestTime instance-attribute

requestTime

proxyStart instance-attribute

proxyStart

proxyEnd instance-attribute

proxyEnd

dnsStart instance-attribute

dnsStart

dnsEnd instance-attribute

dnsEnd

connectStart instance-attribute

connectStart

connectEnd instance-attribute

connectEnd

sslStart instance-attribute

sslStart

sslEnd instance-attribute

sslEnd

workerStart instance-attribute

workerStart

workerReady instance-attribute

workerReady

workerFetchStart instance-attribute

workerFetchStart

workerRespondWithSettled instance-attribute

workerRespondWithSettled

workerRouterEvaluationStart instance-attribute

workerRouterEvaluationStart

workerCacheLookupStart instance-attribute

workerCacheLookupStart

sendStart instance-attribute

sendStart

sendEnd instance-attribute

sendEnd

pushStart instance-attribute

pushStart

pushEnd instance-attribute

pushEnd

receiveHeadersStart instance-attribute

receiveHeadersStart

receiveHeadersEnd instance-attribute

receiveHeadersEnd

ResourcePriority

Bases: str, Enum

Loading priority of a resource request.

VERY_LOW class-attribute instance-attribute

VERY_LOW = 'VeryLow'

LOW class-attribute instance-attribute

LOW = 'Low'

MEDIUM class-attribute instance-attribute

MEDIUM = 'Medium'

HIGH class-attribute instance-attribute

HIGH = 'High'

VERY_HIGH class-attribute instance-attribute

VERY_HIGH = 'VeryHigh'

PostDataEntry

Bases: TypedDict

Post data entry for HTTP request

bytes instance-attribute

bytes

Request

Bases: TypedDict

HTTP request data.

url instance-attribute

url

urlFragment instance-attribute

urlFragment

method instance-attribute

method

headers instance-attribute

headers

postData instance-attribute

postData

hasPostData instance-attribute

hasPostData

postDataEntries instance-attribute

postDataEntries

mixedContentType instance-attribute

mixedContentType

initialPriority instance-attribute

initialPriority

referrerPolicy instance-attribute

referrerPolicy

isLinkPreload instance-attribute

isLinkPreload

trustTokenParams instance-attribute

trustTokenParams

isSameSite instance-attribute

isSameSite

SignedCertificateTimestamp

Bases: TypedDict

Details of a signed certificate timestamp (SCT).

status instance-attribute

status

origin instance-attribute

origin

logDescription instance-attribute

logDescription

logId instance-attribute

logId

timestamp instance-attribute

timestamp

hashAlgorithm instance-attribute

hashAlgorithm

signatureAlgorithm instance-attribute

signatureAlgorithm

signatureData instance-attribute

signatureData

SecurityDetails

Bases: TypedDict

Security details about a request.

protocol instance-attribute

protocol

keyExchange instance-attribute

keyExchange

keyExchangeGroup instance-attribute

keyExchangeGroup

cipher instance-attribute

cipher

mac instance-attribute

mac

certificateId instance-attribute

certificateId

subjectName instance-attribute

subjectName

sanList instance-attribute

sanList

issuer instance-attribute

issuer

validFrom instance-attribute

validFrom

validTo instance-attribute

validTo

signedCertificateTimestampList instance-attribute

signedCertificateTimestampList

certificateTransparencyCompliance instance-attribute

certificateTransparencyCompliance

serverSignatureAlgorithm instance-attribute

serverSignatureAlgorithm

encryptedClientHello instance-attribute

encryptedClientHello

CertificateTransparencyCompliance

Bases: str, Enum

Whether the request complied with Certificate Transparency policy.

UNKNOWN class-attribute instance-attribute

UNKNOWN = 'unknown'

NOT_COMPLIANT class-attribute instance-attribute

NOT_COMPLIANT = 'not-compliant'

COMPLIANT class-attribute instance-attribute

COMPLIANT = 'compliant'

BlockedReason

Bases: str, Enum

The reason why request was blocked.

OTHER class-attribute instance-attribute

OTHER = 'other'

CSP class-attribute instance-attribute

CSP = 'csp'

MIXED_CONTENT class-attribute instance-attribute

MIXED_CONTENT = 'mixed-content'

ORIGIN class-attribute instance-attribute

ORIGIN = 'origin'

INSPECTOR class-attribute instance-attribute

INSPECTOR = 'inspector'

INTEGRITY class-attribute instance-attribute

INTEGRITY = 'integrity'

SUBRESOURCE_FILTER class-attribute instance-attribute

SUBRESOURCE_FILTER = 'subresource-filter'

CONTENT_TYPE class-attribute instance-attribute

CONTENT_TYPE = 'content-type'

COEP_FRAME_RESOURCE_NEEDS_COEP_HEADER class-attribute instance-attribute

COEP_FRAME_RESOURCE_NEEDS_COEP_HEADER = 'coep-frame-resource-needs-coep-header'

COOP_SANDBOXED_IFRAME_CANNOT_NAVIGATE_TO_COOP_PAGE class-attribute instance-attribute

COOP_SANDBOXED_IFRAME_CANNOT_NAVIGATE_TO_COOP_PAGE = 'coop-sandboxed-iframe-cannot-navigate-to-coop-page'

CORP_NOT_SAME_ORIGIN class-attribute instance-attribute

CORP_NOT_SAME_ORIGIN = 'corp-not-same-origin'

CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP class-attribute instance-attribute

CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep'

CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_DIP class-attribute instance-attribute

CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_DIP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip'

CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP_AND_DIP class-attribute instance-attribute

CORP_NOT_SAME_ORIGIN_AFTER_DEFAULTED_TO_SAME_ORIGIN_BY_COEP_AND_DIP = 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip'

CORP_NOT_SAME_SITE class-attribute instance-attribute

CORP_NOT_SAME_SITE = 'corp-not-same-site'

SRI_MESSAGE_SIGNATURE_MISMATCH class-attribute instance-attribute

SRI_MESSAGE_SIGNATURE_MISMATCH = 'sri-message-signature-mismatch'

CorsError

Bases: str, Enum

The reason why request was blocked.

DISALLOWED_BY_MODE class-attribute instance-attribute

DISALLOWED_BY_MODE = 'DisallowedByMode'

INVALID_RESPONSE class-attribute instance-attribute

INVALID_RESPONSE = 'InvalidResponse'

WILDCARD_ORIGIN_NOT_ALLOWED class-attribute instance-attribute

WILDCARD_ORIGIN_NOT_ALLOWED = 'WildcardOriginNotAllowed'

MISSING_ALLOW_ORIGIN_HEADER class-attribute instance-attribute

MISSING_ALLOW_ORIGIN_HEADER = 'MissingAllowOriginHeader'

MULTIPLE_ALLOW_ORIGIN_VALUES class-attribute instance-attribute

MULTIPLE_ALLOW_ORIGIN_VALUES = 'MultipleAllowOriginValues'

INVALID_ALLOW_ORIGIN_VALUE class-attribute instance-attribute

INVALID_ALLOW_ORIGIN_VALUE = 'InvalidAllowOriginValue'

ALLOW_ORIGIN_MISMATCH class-attribute instance-attribute

ALLOW_ORIGIN_MISMATCH = 'AllowOriginMismatch'

INVALID_ALLOW_CREDENTIALS class-attribute instance-attribute

INVALID_ALLOW_CREDENTIALS = 'InvalidAllowCredentials'

CORS_DISABLED_SCHEME class-attribute instance-attribute

CORS_DISABLED_SCHEME = 'CorsDisabledScheme'

PREFLIGHT_INVALID_STATUS class-attribute instance-attribute

PREFLIGHT_INVALID_STATUS = 'PreflightInvalidStatus'

PREFLIGHT_DISALLOWED_REDIRECT class-attribute instance-attribute

PREFLIGHT_DISALLOWED_REDIRECT = 'PreflightDisallowedRedirect'

PREFLIGHT_WILDCARD_ORIGIN_NOT_ALLOWED class-attribute instance-attribute

PREFLIGHT_WILDCARD_ORIGIN_NOT_ALLOWED = 'PreflightWildcardOriginNotAllowed'

PREFLIGHT_MISSING_ALLOW_ORIGIN_HEADER class-attribute instance-attribute

PREFLIGHT_MISSING_ALLOW_ORIGIN_HEADER = 'PreflightMissingAllowOriginHeader'

PREFLIGHT_MULTIPLE_ALLOW_ORIGIN_VALUES class-attribute instance-attribute

PREFLIGHT_MULTIPLE_ALLOW_ORIGIN_VALUES = 'PreflightMultipleAllowOriginValues'

PREFLIGHT_INVALID_ALLOW_ORIGIN_VALUE class-attribute instance-attribute

PREFLIGHT_INVALID_ALLOW_ORIGIN_VALUE = 'PreflightInvalidAllowOriginValue'

PREFLIGHT_ALLOW_ORIGIN_MISMATCH class-attribute instance-attribute

PREFLIGHT_ALLOW_ORIGIN_MISMATCH = 'PreflightAllowOriginMismatch'

PREFLIGHT_INVALID_ALLOW_CREDENTIALS class-attribute instance-attribute

PREFLIGHT_INVALID_ALLOW_CREDENTIALS = 'PreflightInvalidAllowCredentials'

PREFLIGHT_MISSING_ALLOW_EXTERNAL class-attribute instance-attribute

PREFLIGHT_MISSING_ALLOW_EXTERNAL = 'PreflightMissingAllowExternal'

PREFLIGHT_INVALID_ALLOW_EXTERNAL class-attribute instance-attribute

PREFLIGHT_INVALID_ALLOW_EXTERNAL = 'PreflightInvalidAllowExternal'

PREFLIGHT_MISSING_ALLOW_PRIVATE_NETWORK class-attribute instance-attribute

PREFLIGHT_MISSING_ALLOW_PRIVATE_NETWORK = 'PreflightMissingAllowPrivateNetwork'

PREFLIGHT_INVALID_ALLOW_PRIVATE_NETWORK class-attribute instance-attribute

PREFLIGHT_INVALID_ALLOW_PRIVATE_NETWORK = 'PreflightInvalidAllowPrivateNetwork'

INVALID_ALLOW_METHODS_PREFLIGHT_RESPONSE class-attribute instance-attribute

INVALID_ALLOW_METHODS_PREFLIGHT_RESPONSE = 'InvalidAllowMethodsPreflightResponse'

INVALID_ALLOW_HEADERS_PREFLIGHT_RESPONSE class-attribute instance-attribute

INVALID_ALLOW_HEADERS_PREFLIGHT_RESPONSE = 'InvalidAllowHeadersPreflightResponse'

METHOD_DISALLOWED_BY_PREFLIGHT_RESPONSE class-attribute instance-attribute

METHOD_DISALLOWED_BY_PREFLIGHT_RESPONSE = 'MethodDisallowedByPreflightResponse'

HEADER_DISALLOWED_BY_PREFLIGHT_RESPONSE class-attribute instance-attribute

HEADER_DISALLOWED_BY_PREFLIGHT_RESPONSE = 'HeaderDisallowedByPreflightResponse'

REDIRECT_CONTAINS_CREDENTIALS class-attribute instance-attribute

REDIRECT_CONTAINS_CREDENTIALS = 'RedirectContainsCredentials'

INSECURE_PRIVATE_NETWORK class-attribute instance-attribute

INSECURE_PRIVATE_NETWORK = 'InsecurePrivateNetwork'

INVALID_PRIVATE_NETWORK_ACCESS class-attribute instance-attribute

INVALID_PRIVATE_NETWORK_ACCESS = 'InvalidPrivateNetworkAccess'

UNEXPECTED_PRIVATE_NETWORK_ACCESS class-attribute instance-attribute

UNEXPECTED_PRIVATE_NETWORK_ACCESS = 'UnexpectedPrivateNetworkAccess'

NO_CORS_REDIRECT_MODE_NOT_FOLLOW class-attribute instance-attribute

NO_CORS_REDIRECT_MODE_NOT_FOLLOW = 'NoCorsRedirectModeNotFollow'

PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_ID class-attribute instance-attribute

PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_ID = 'PreflightMissingPrivateNetworkAccessId'

PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_NAME class-attribute instance-attribute

PREFLIGHT_MISSING_PRIVATE_NETWORK_ACCESS_NAME = 'PreflightMissingPrivateNetworkAccessName'

PRIVATE_NETWORK_ACCESS_PERMISSION_UNAVAILABLE class-attribute instance-attribute

PRIVATE_NETWORK_ACCESS_PERMISSION_UNAVAILABLE = 'PrivateNetworkAccessPermissionUnavailable'

PRIVATE_NETWORK_ACCESS_PERMISSION_DENIED class-attribute instance-attribute

PRIVATE_NETWORK_ACCESS_PERMISSION_DENIED = 'PrivateNetworkAccessPermissionDenied'

LOCAL_NETWORK_ACCESS_PERMISSION_DENIED class-attribute instance-attribute

LOCAL_NETWORK_ACCESS_PERMISSION_DENIED = 'LocalNetworkAccessPermissionDenied'

CorsErrorStatus

Bases: TypedDict

corsError instance-attribute

corsError

failedParameter instance-attribute

failedParameter

ServiceWorkerResponseSource

Bases: str, Enum

Source of serviceworker response.

CACHE_STORAGE class-attribute instance-attribute

CACHE_STORAGE = 'cache-storage'

HTTP_CACHE class-attribute instance-attribute

HTTP_CACHE = 'http-cache'

FALLBACK_CODE class-attribute instance-attribute

FALLBACK_CODE = 'fallback-code'

NETWORK class-attribute instance-attribute

NETWORK = 'network'

TrustTokenParams

Bases: TypedDict

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.

operation instance-attribute

operation

refreshPolicy instance-attribute

refreshPolicy

issuers instance-attribute

issuers

TrustTokenOperationType

Bases: str, Enum

ISSUANCE class-attribute instance-attribute

ISSUANCE = 'Issuance'

REDEMPTION class-attribute instance-attribute

REDEMPTION = 'Redemption'

SIGNING class-attribute instance-attribute

SIGNING = 'Signing'

AlternateProtocolUsage

Bases: str, Enum

The reason why Chrome uses a specific transport protocol for HTTP semantics.

ALTERNATIVE_JOB_WON_WITHOUT_RACE class-attribute instance-attribute

ALTERNATIVE_JOB_WON_WITHOUT_RACE = 'alternativeJobWonWithoutRace'

ALTERNATIVE_JOB_WON_RACE class-attribute instance-attribute

ALTERNATIVE_JOB_WON_RACE = 'alternativeJobWonRace'

MAIN_JOB_WON_RACE class-attribute instance-attribute

MAIN_JOB_WON_RACE = 'mainJobWonRace'

MAPPING_MISSING class-attribute instance-attribute

MAPPING_MISSING = 'mappingMissing'

BROKEN class-attribute instance-attribute

BROKEN = 'broken'

DNS_ALPN_H3_JOB_WON_WITHOUT_RACE class-attribute instance-attribute

DNS_ALPN_H3_JOB_WON_WITHOUT_RACE = 'dnsAlpnH3JobWonWithoutRace'

DNS_ALPN_H3_JOB_WON_RACE class-attribute instance-attribute

DNS_ALPN_H3_JOB_WON_RACE = 'dnsAlpnH3JobWonRace'

UNSPECIFIED_REASON class-attribute instance-attribute

UNSPECIFIED_REASON = 'unspecifiedReason'

ServiceWorkerRouterSource

Bases: str, Enum

Source of service worker router.

NETWORK class-attribute instance-attribute

NETWORK = 'network'

CACHE class-attribute instance-attribute

CACHE = 'cache'

FETCH_EVENT class-attribute instance-attribute

FETCH_EVENT = 'fetch-event'

RACE_NETWORK_AND_FETCH_HANDLER class-attribute instance-attribute

RACE_NETWORK_AND_FETCH_HANDLER = 'race-network-and-fetch-handler'

ServiceWorkerRouterInfo

Bases: TypedDict

ruleIdMatched instance-attribute

ruleIdMatched

matchedSourceType instance-attribute

matchedSourceType

actualSourceType instance-attribute

actualSourceType

Response

Bases: TypedDict

HTTP response data.

url instance-attribute

url

status instance-attribute

status

statusText instance-attribute

statusText

headers instance-attribute

headers

headersText instance-attribute

headersText

mimeType instance-attribute

mimeType

charset instance-attribute

charset

requestHeaders instance-attribute

requestHeaders

requestHeadersText instance-attribute

requestHeadersText

connectionReused instance-attribute

connectionReused

connectionId instance-attribute

connectionId

remoteIPAddress instance-attribute

remoteIPAddress

remotePort instance-attribute

remotePort

fromDiskCache instance-attribute

fromDiskCache

fromServiceWorker instance-attribute

fromServiceWorker

fromPrefetchCache instance-attribute

fromPrefetchCache

fromEarlyHints instance-attribute

fromEarlyHints

serviceWorkerRouterInfo instance-attribute

serviceWorkerRouterInfo

encodedDataLength instance-attribute

encodedDataLength

timing instance-attribute

timing

serviceWorkerResponseSource instance-attribute

serviceWorkerResponseSource

responseTime instance-attribute

responseTime

cacheStorageCacheName instance-attribute

cacheStorageCacheName

protocol instance-attribute

protocol

alternateProtocolUsage instance-attribute

alternateProtocolUsage

securityState instance-attribute

securityState

securityDetails instance-attribute

securityDetails

isIpProtectionUsed instance-attribute

isIpProtectionUsed

WebSocketRequest

Bases: TypedDict

WebSocket request data.

headers instance-attribute

headers

WebSocketResponse

Bases: TypedDict

WebSocket response data.

status instance-attribute

status

statusText instance-attribute

statusText

headers instance-attribute

headers

headersText instance-attribute

headersText

requestHeaders instance-attribute

requestHeaders

requestHeadersText instance-attribute

requestHeadersText

WebSocketFrame

Bases: TypedDict

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

opcode instance-attribute

opcode

mask instance-attribute

mask

payloadData instance-attribute

payloadData

CachedResource

Bases: TypedDict

Information about the cached resource.

url instance-attribute

url

type instance-attribute

type

response instance-attribute

response

bodySize instance-attribute

bodySize

Initiator

Bases: TypedDict

Information about the request initiator.

type instance-attribute

type

stack instance-attribute

stack

url instance-attribute

url

lineNumber instance-attribute

lineNumber

columnNumber instance-attribute

columnNumber

requestId instance-attribute

requestId

CookiePartitionKey

Bases: TypedDict

cookiePartitionKey object. The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h.

topLevelSite instance-attribute

topLevelSite

hasCrossSiteAncestor instance-attribute

hasCrossSiteAncestor

Cookie

Bases: TypedDict

Cookie object

name instance-attribute

name

value instance-attribute

value

domain instance-attribute

domain

path instance-attribute

path

expires instance-attribute

expires

size instance-attribute

size

httpOnly instance-attribute

httpOnly

secure instance-attribute

secure

session instance-attribute

session

sameSite instance-attribute

sameSite

priority instance-attribute

priority

sameParty instance-attribute

sameParty

sourceScheme instance-attribute

sourceScheme

sourcePort instance-attribute

sourcePort

partitionKey instance-attribute

partitionKey

SetCookieBlockedReason

Bases: str, Enum

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

SECURE_ONLY class-attribute instance-attribute

SECURE_ONLY = 'SecureOnly'

SAME_SITE_STRICT class-attribute instance-attribute

SAME_SITE_STRICT = 'SameSiteStrict'

SAME_SITE_LAX class-attribute instance-attribute

SAME_SITE_LAX = 'SameSiteLax'

SAME_SITE_UNSPECIFIED_TREATED_AS_LAX class-attribute instance-attribute

SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SameSiteUnspecifiedTreatedAsLax'

SAME_SITE_NONE_INSECURE class-attribute instance-attribute

SAME_SITE_NONE_INSECURE = 'SameSiteNoneInsecure'

USER_PREFERENCES class-attribute instance-attribute

USER_PREFERENCES = 'UserPreferences'

THIRD_PARTY_PHASEOUT class-attribute instance-attribute

THIRD_PARTY_PHASEOUT = 'ThirdPartyPhaseout'

THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET class-attribute instance-attribute

THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET = 'ThirdPartyBlockedInFirstPartySet'

SYNTAX_ERROR class-attribute instance-attribute

SYNTAX_ERROR = 'SyntaxError'

SCHEME_NOT_SUPPORTED class-attribute instance-attribute

SCHEME_NOT_SUPPORTED = 'SchemeNotSupported'

OVERWRITE_SECURE class-attribute instance-attribute

OVERWRITE_SECURE = 'OverwriteSecure'

INVALID_DOMAIN class-attribute instance-attribute

INVALID_DOMAIN = 'InvalidDomain'

INVALID_PREFIX class-attribute instance-attribute

INVALID_PREFIX = 'InvalidPrefix'

UNKNOWN_ERROR class-attribute instance-attribute

UNKNOWN_ERROR = 'UnknownError'

SCHEMEFUL_SAME_SITE_STRICT class-attribute instance-attribute

SCHEMEFUL_SAME_SITE_STRICT = 'SchemefulSameSiteStrict'

SCHEMEFUL_SAME_SITE_LAX class-attribute instance-attribute

SCHEMEFUL_SAME_SITE_LAX = 'SchemefulSameSiteLax'

SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX class-attribute instance-attribute

SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SchemefulSameSiteUnspecifiedTreatedAsLax'

SAME_PARTY_FROM_CROSS_PARTY_CONTEXT class-attribute instance-attribute

SAME_PARTY_FROM_CROSS_PARTY_CONTEXT = 'SamePartyFromCrossPartyContext'

SAME_PARTY_CONFLICTS_WITH_OTHER_ATTRIBUTES class-attribute instance-attribute

SAME_PARTY_CONFLICTS_WITH_OTHER_ATTRIBUTES = 'SamePartyConflictsWithOtherAttributes'

NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE class-attribute instance-attribute

NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE = 'NameValuePairExceedsMaxSize'

DISALLOWED_CHARACTER class-attribute instance-attribute

DISALLOWED_CHARACTER = 'DisallowedCharacter'
NO_COOKIE_CONTENT = 'NoCookieContent'

CookieBlockedReason

Bases: str, Enum

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

SECURE_ONLY class-attribute instance-attribute

SECURE_ONLY = 'SecureOnly'

NOT_ON_PATH class-attribute instance-attribute

NOT_ON_PATH = 'NotOnPath'

DOMAIN_MISMATCH class-attribute instance-attribute

DOMAIN_MISMATCH = 'DomainMismatch'

SAME_SITE_STRICT class-attribute instance-attribute

SAME_SITE_STRICT = 'SameSiteStrict'

SAME_SITE_LAX class-attribute instance-attribute

SAME_SITE_LAX = 'SameSiteLax'

SAME_SITE_UNSPECIFIED_TREATED_AS_LAX class-attribute instance-attribute

SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SameSiteUnspecifiedTreatedAsLax'

SAME_SITE_NONE_INSECURE class-attribute instance-attribute

SAME_SITE_NONE_INSECURE = 'SameSiteNoneInsecure'

USER_PREFERENCES class-attribute instance-attribute

USER_PREFERENCES = 'UserPreferences'

THIRD_PARTY_PHASEOUT class-attribute instance-attribute

THIRD_PARTY_PHASEOUT = 'ThirdPartyPhaseout'

THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET class-attribute instance-attribute

THIRD_PARTY_BLOCKED_IN_FIRST_PARTY_SET = 'ThirdPartyBlockedInFirstPartySet'

UNKNOWN_ERROR class-attribute instance-attribute

UNKNOWN_ERROR = 'UnknownError'

SCHEMEFUL_SAME_SITE_STRICT class-attribute instance-attribute

SCHEMEFUL_SAME_SITE_STRICT = 'SchemefulSameSiteStrict'

SCHEMEFUL_SAME_SITE_LAX class-attribute instance-attribute

SCHEMEFUL_SAME_SITE_LAX = 'SchemefulSameSiteLax'

SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX class-attribute instance-attribute

SCHEMEFUL_SAME_SITE_UNSPECIFIED_TREATED_AS_LAX = 'SchemefulSameSiteUnspecifiedTreatedAsLax'

SAME_PARTY_FROM_CROSS_PARTY_CONTEXT class-attribute instance-attribute

SAME_PARTY_FROM_CROSS_PARTY_CONTEXT = 'SamePartyFromCrossPartyContext'

NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE class-attribute instance-attribute

NAME_VALUE_PAIR_EXCEEDS_MAX_SIZE = 'NameValuePairExceedsMaxSize'

PORT_MISMATCH class-attribute instance-attribute

PORT_MISMATCH = 'PortMismatch'

SCHEME_MISMATCH class-attribute instance-attribute

SCHEME_MISMATCH = 'SchemeMismatch'

ANONYMOUS_CONTEXT class-attribute instance-attribute

ANONYMOUS_CONTEXT = 'AnonymousContext'

CookieExemptionReason

Bases: str, Enum

Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request.

NONE class-attribute instance-attribute

NONE = 'None'

USER_SETTING class-attribute instance-attribute

USER_SETTING = 'UserSetting'

TPCD_METADATA class-attribute instance-attribute

TPCD_METADATA = 'TPCDMetadata'

TPCD_DEPRECATION_TRIAL class-attribute instance-attribute

TPCD_DEPRECATION_TRIAL = 'TPCDDeprecationTrial'

TOP_LEVEL_TPCD_DEPRECATION_TRIAL class-attribute instance-attribute

TOP_LEVEL_TPCD_DEPRECATION_TRIAL = 'TopLevelTPCDDeprecationTrial'

TPCD_HEURISTICS class-attribute instance-attribute

TPCD_HEURISTICS = 'TPCDHeuristics'

ENTERPRISE_POLICY class-attribute instance-attribute

ENTERPRISE_POLICY = 'EnterprisePolicy'

STORAGE_ACCESS class-attribute instance-attribute

STORAGE_ACCESS = 'StorageAccess'

TOP_LEVEL_STORAGE_ACCESS class-attribute instance-attribute

TOP_LEVEL_STORAGE_ACCESS = 'TopLevelStorageAccess'

SCHEME class-attribute instance-attribute

SCHEME = 'Scheme'

SAME_SITE_NONE_COOKIES_IN_SANDBOX class-attribute instance-attribute

SAME_SITE_NONE_COOKIES_IN_SANDBOX = 'SameSiteNoneCookiesInSandbox'

BlockedSetCookieWithReason

Bases: TypedDict

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

blockedReasons instance-attribute

blockedReasons

cookieLine instance-attribute

cookieLine

cookie instance-attribute

cookie

ExemptedSetCookieWithReason

Bases: TypedDict

A cookie should have been blocked by 3PCD but is exempted and stored from a response with the corresponding reason. A cookie could only have at most one exemption reason.

exemptionReason instance-attribute

exemptionReason

cookieLine instance-attribute

cookieLine

cookie instance-attribute

cookie

AssociatedCookie

Bases: TypedDict

A cookie associated with the request which may or may not be sent with it. Includes the cookies itself and reasons for blocking or exemption.

cookie instance-attribute

cookie

blockedReasons instance-attribute

blockedReasons

exemptionReason instance-attribute

exemptionReason

CookieParam

Bases: TypedDict

Cookie parameter object

name instance-attribute

name

value instance-attribute

value

url instance-attribute

url

domain instance-attribute

domain

path instance-attribute

path

secure instance-attribute

secure

httpOnly instance-attribute

httpOnly

sameSite instance-attribute

sameSite

expires instance-attribute

expires

priority instance-attribute

priority

sameParty instance-attribute

sameParty

sourceScheme instance-attribute

sourceScheme

sourcePort instance-attribute

sourcePort

partitionKey instance-attribute

partitionKey

AuthChallenge

Bases: TypedDict

Authorization challenge for HTTP status code 401 or 407.

source instance-attribute

source

origin instance-attribute

origin

scheme instance-attribute

scheme

realm instance-attribute

realm

AuthChallengeResponse

Bases: TypedDict

Response to an AuthChallenge.

response instance-attribute

response

username instance-attribute

username

password instance-attribute

password

InterceptionStage

Bases: str, Enum

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

REQUEST class-attribute instance-attribute

REQUEST = 'Request'

HEADERS_RECEIVED class-attribute instance-attribute

HEADERS_RECEIVED = 'HeadersReceived'

RequestPattern

Bases: TypedDict

Request pattern for interception.

urlPattern instance-attribute

urlPattern

resourceType instance-attribute

resourceType

interceptionStage instance-attribute

interceptionStage

SignedExchangeSignature

Bases: TypedDict

Information about a signed exchange signature.

label instance-attribute

label

signature instance-attribute

signature

integrity instance-attribute

integrity

certUrl instance-attribute

certUrl

certSha256 instance-attribute

certSha256

validityUrl instance-attribute

validityUrl

date instance-attribute

date

expires instance-attribute

expires

certificates instance-attribute

certificates

SignedExchangeHeader

Bases: TypedDict

Information about a signed exchange header.

requestUrl instance-attribute

requestUrl

responseCode instance-attribute

responseCode

responseHeaders instance-attribute

responseHeaders

signatures instance-attribute

signatures

headerIntegrity instance-attribute

headerIntegrity

SignedExchangeErrorField

Bases: str, Enum

Field type for a signed exchange related error.

SIGNATURE_SIG class-attribute instance-attribute

SIGNATURE_SIG = 'signatureSig'

SIGNATURE_INTEGRITY class-attribute instance-attribute

SIGNATURE_INTEGRITY = 'signatureIntegrity'

SIGNATURE_CERT_URL class-attribute instance-attribute

SIGNATURE_CERT_URL = 'signatureCertUrl'

SIGNATURE_CERT_SHA256 class-attribute instance-attribute

SIGNATURE_CERT_SHA256 = 'signatureCertSha256'

SIGNATURE_VALIDITY_URL class-attribute instance-attribute

SIGNATURE_VALIDITY_URL = 'signatureValidityUrl'

SIGNATURE_TIMESTAMPS class-attribute instance-attribute

SIGNATURE_TIMESTAMPS = 'signatureTimestamps'

SignedExchangeError

Bases: TypedDict

Information about a signed exchange response.

message instance-attribute

message

signatureIndex instance-attribute

signatureIndex

errorField instance-attribute

errorField

SignedExchangeInfo

Bases: TypedDict

Information about a signed exchange response.

outerResponse instance-attribute

outerResponse

hasExtraInfo instance-attribute

hasExtraInfo

header instance-attribute

header

securityDetails instance-attribute

securityDetails

errors instance-attribute

errors

ContentEncoding

Bases: str, Enum

List of content encodings supported by the backend.

DEFLATE class-attribute instance-attribute

DEFLATE = 'deflate'

GZIP class-attribute instance-attribute

GZIP = 'gzip'

BR class-attribute instance-attribute

BR = 'br'

ZSTD class-attribute instance-attribute

ZSTD = 'zstd'

DirectSocketDnsQueryType

Bases: str, Enum

IPV4 class-attribute instance-attribute

IPV4 = 'ipv4'

IPV6 class-attribute instance-attribute

IPV6 = 'ipv6'

DirectTCPSocketOptions

Bases: TypedDict

noDelay instance-attribute

noDelay

keepAliveDelay instance-attribute

keepAliveDelay

sendBufferSize instance-attribute

sendBufferSize

receiveBufferSize instance-attribute

receiveBufferSize

dnsQueryType instance-attribute

dnsQueryType

DirectUDPSocketOptions

Bases: TypedDict

remoteAddr instance-attribute

remoteAddr

remotePort instance-attribute

remotePort

localAddr instance-attribute

localAddr

localPort instance-attribute

localPort

dnsQueryType instance-attribute

dnsQueryType

sendBufferSize instance-attribute

sendBufferSize

receiveBufferSize instance-attribute

receiveBufferSize

DirectUDPMessage

Bases: TypedDict

data instance-attribute

data

remoteAddr instance-attribute

remoteAddr

remotePort instance-attribute

remotePort

PrivateNetworkRequestPolicy

Bases: str, Enum

ALLOW class-attribute instance-attribute

ALLOW = 'Allow'

BLOCK_FROM_INSECURE_TO_MORE_PRIVATE class-attribute instance-attribute

BLOCK_FROM_INSECURE_TO_MORE_PRIVATE = 'BlockFromInsecureToMorePrivate'

WARN_FROM_INSECURE_TO_MORE_PRIVATE class-attribute instance-attribute

WARN_FROM_INSECURE_TO_MORE_PRIVATE = 'WarnFromInsecureToMorePrivate'

PREFLIGHT_BLOCK class-attribute instance-attribute

PREFLIGHT_BLOCK = 'PreflightBlock'

PREFLIGHT_WARN class-attribute instance-attribute

PREFLIGHT_WARN = 'PreflightWarn'

IPAddressSpace

Bases: str, Enum

LOOPBACK class-attribute instance-attribute

LOOPBACK = 'Loopback'

LOCAL class-attribute instance-attribute

LOCAL = 'Local'

PUBLIC class-attribute instance-attribute

PUBLIC = 'Public'

UNKNOWN class-attribute instance-attribute

UNKNOWN = 'Unknown'

ConnectTiming

Bases: TypedDict

requestTime instance-attribute

requestTime

ClientSecurityState

Bases: TypedDict

initiatorIsSecureContext instance-attribute

initiatorIsSecureContext

initiatorIPAddressSpace instance-attribute

initiatorIPAddressSpace

privateNetworkRequestPolicy instance-attribute

privateNetworkRequestPolicy

CrossOriginOpenerPolicyValue

Bases: str, Enum

SAME_ORIGIN class-attribute instance-attribute

SAME_ORIGIN = 'SameOrigin'

SAME_ORIGIN_ALLOW_POPUPS class-attribute instance-attribute

SAME_ORIGIN_ALLOW_POPUPS = 'SameOriginAllowPopups'

RESTRICT_PROPERTIES class-attribute instance-attribute

RESTRICT_PROPERTIES = 'RestrictProperties'

UNSAFE_NONE class-attribute instance-attribute

UNSAFE_NONE = 'UnsafeNone'

SAME_ORIGIN_PLUS_COEP class-attribute instance-attribute

SAME_ORIGIN_PLUS_COEP = 'SameOriginPlusCoep'

RESTRICT_PROPERTIES_PLUS_COEP class-attribute instance-attribute

RESTRICT_PROPERTIES_PLUS_COEP = 'RestrictPropertiesPlusCoep'

NO_OPENER_ALLOW_POPUPS class-attribute instance-attribute

NO_OPENER_ALLOW_POPUPS = 'NoopenerAllowPopups'

CrossOriginOpenerPolicyStatus

Bases: TypedDict

value instance-attribute

value

reportOnlyValue instance-attribute

reportOnlyValue

reportingEndpoint instance-attribute

reportingEndpoint

reportOnlyReportingEndpoint instance-attribute

reportOnlyReportingEndpoint

CrossOriginEmbedderPolicyValue

Bases: str, Enum

NONE class-attribute instance-attribute

NONE = 'None'

CREDENTIALLESS class-attribute instance-attribute

CREDENTIALLESS = 'Credentialless'

REQUIRE_CORP class-attribute instance-attribute

REQUIRE_CORP = 'RequireCorp'

CrossOriginEmbedderPolicyStatus

Bases: TypedDict

value instance-attribute

value

reportOnlyValue instance-attribute

reportOnlyValue

reportingEndpoint instance-attribute

reportingEndpoint

reportOnlyReportingEndpoint instance-attribute

reportOnlyReportingEndpoint

ContentSecurityPolicySource

Bases: str, Enum

HTTP class-attribute instance-attribute

HTTP = 'HTTP'

META class-attribute instance-attribute

META = 'Meta'

ContentSecurityPolicyStatus

Bases: TypedDict

effectiveDirectives instance-attribute

effectiveDirectives

isEnforced instance-attribute

isEnforced

source instance-attribute

source

SecurityIsolationStatus

Bases: TypedDict

coop instance-attribute

coop

coep instance-attribute

coep

csp instance-attribute

csp

ReportStatus

Bases: str, Enum

The status of a Reporting API report.

QUEUED class-attribute instance-attribute

QUEUED = 'Queued'

PENDING class-attribute instance-attribute

PENDING = 'Pending'

MARKED_FOR_REMOVAL class-attribute instance-attribute

MARKED_FOR_REMOVAL = 'MarkedForRemoval'

SUCCESS class-attribute instance-attribute

SUCCESS = 'Success'

ReportId

Bases: str

ReportingApiReport

Bases: TypedDict

An object representing a report generated by the Reporting API.

id instance-attribute

id

initiatorUrl instance-attribute

initiatorUrl

destination instance-attribute

destination

type instance-attribute

type

timestamp instance-attribute

timestamp

depth instance-attribute

depth

completedAttempts instance-attribute

completedAttempts

body instance-attribute

body

status instance-attribute

status

ReportingApiEndpoint

Bases: TypedDict

url instance-attribute

url

groupName instance-attribute

groupName

LoadNetworkResourcePageResult

Bases: TypedDict

An object providing the result of a network resource load.

success instance-attribute

success

netError instance-attribute

netError

netErrorName instance-attribute

netErrorName

httpStatusCode instance-attribute

httpStatusCode

stream instance-attribute

stream

headers instance-attribute

headers

LoadNetworkResourceOptions

Bases: TypedDict

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

disableCache instance-attribute

disableCache

includeCredentials instance-attribute

includeCredentials