network

package
v0.158.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 8 Imported by: 699

Documentation

Overview

Package network provides the Chrome DevTools Protocol commands, types, and events for the Network domain.

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.

Generated by the pdlgen command.

Index

Constants

View Source
const (
	CommandClearBrowserCache              = "Network.clearBrowserCache"
	CommandClearBrowserCookies            = "Network.clearBrowserCookies"
	CommandDeleteCookies                  = "Network.deleteCookies"
	CommandDisable                        = "Network.disable"
	CommandEmulateNetworkConditionsByRule = "Network.emulateNetworkConditionsByRule"
	CommandOverrideNetworkState           = "Network.overrideNetworkState"
	CommandEnable                         = "Network.enable"
	CommandConfigureDurableMessages       = "Network.configureDurableMessages"
	CommandGetCertificate                 = "Network.getCertificate"
	CommandGetCookies                     = "Network.getCookies"
	CommandGetResponseBody                = "Network.getResponseBody"
	CommandGetRequestPostData             = "Network.getRequestPostData"
	CommandReplayXHR                      = "Network.replayXHR"
	CommandSearchInResponseBody           = "Network.searchInResponseBody"
	CommandSetBlockedURLs                 = "Network.setBlockedURLs"
	CommandSetBypassServiceWorker         = "Network.setBypassServiceWorker"
	CommandSetCacheDisabled               = "Network.setCacheDisabled"
	CommandSetCookie                      = "Network.setCookie"
	CommandSetCookies                     = "Network.setCookies"
	CommandSetExtraHTTPHeaders            = "Network.setExtraHTTPHeaders"
	CommandSetAttachDebugStack            = "Network.setAttachDebugStack"
	CommandStreamResourceContent          = "Network.streamResourceContent"
	CommandGetSecurityIsolationStatus     = "Network.getSecurityIsolationStatus"
	CommandEnableReportingAPI             = "Network.enableReportingApi"
	CommandEnableDeviceBoundSessions      = "Network.enableDeviceBoundSessions"
	CommandDeleteDeviceBoundSession       = "Network.deleteDeviceBoundSession"
	CommandFetchSchemefulSite             = "Network.fetchSchemefulSite"
	CommandLoadNetworkResource            = "Network.loadNetworkResource"
	CommandSetCookieControls              = "Network.setCookieControls"
)

Command names.

Variables

View Source
var ClearBrowserCache = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandClearBrowserCache}

ClearBrowserCache clears browser cache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-clearBrowserCache

View Source
var ClearBrowserCookies = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandClearBrowserCookies}

ClearBrowserCookies clears browser cookies.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-clearBrowserCookies

ConfigureDurableMessages configures storing response bodies outside of renderer, so that these survive a cross-process navigation. If maxTotalBufferSize is not set, durable messages are disabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-configureDurableMessages

View Source
var DataReceived = cdp.Event[EventDataReceived]{Method: "Network.dataReceived"}

DataReceived fired when data chunk was received over the network.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-dataReceived

DeleteCookies deletes browser cookies with matching name and url or domain/path/partitionKey pair.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-deleteCookies

DeleteDeviceBoundSession deletes a device bound session.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-deleteDeviceBoundSession

View Source
var DeviceBoundSessionEventOccurred = cdp.Event[EventDeviceBoundSessionEventOccurred]{Method: "Network.deviceBoundSessionEventOccurred"}

DeviceBoundSessionEventOccurred triggered when a device bound session event occurs.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-deviceBoundSessionEventOccurred

View Source
var DeviceBoundSessionsAdded = cdp.Event[EventDeviceBoundSessionsAdded]{Method: "Network.deviceBoundSessionsAdded"}

DeviceBoundSessionsAdded triggered when the initial set of device bound sessions is added.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-deviceBoundSessionsAdded

View Source
var DirectTCPSocketAborted = cdp.Event[EventDirectTCPSocketAborted]{Method: "Network.directTCPSocketAborted"}

DirectTCPSocketAborted fired when direct_socket.TCPSocket is aborted.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketAborted

View Source
var DirectTCPSocketChunkReceived = cdp.Event[EventDirectTCPSocketChunkReceived]{Method: "Network.directTCPSocketChunkReceived"}

DirectTCPSocketChunkReceived fired when data is received from tcp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketChunkReceived

View Source
var DirectTCPSocketChunkSent = cdp.Event[EventDirectTCPSocketChunkSent]{Method: "Network.directTCPSocketChunkSent"}

DirectTCPSocketChunkSent fired when data is sent to tcp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketChunkSent

View Source
var DirectTCPSocketClosed = cdp.Event[EventDirectTCPSocketClosed]{Method: "Network.directTCPSocketClosed"}

DirectTCPSocketClosed fired when direct_socket.TCPSocket is closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketClosed

View Source
var DirectTCPSocketCreated = cdp.Event[EventDirectTCPSocketCreated]{Method: "Network.directTCPSocketCreated"}

DirectTCPSocketCreated fired upon direct_socket.TCPSocket creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketCreated

View Source
var DirectTCPSocketOpened = cdp.Event[EventDirectTCPSocketOpened]{Method: "Network.directTCPSocketOpened"}

DirectTCPSocketOpened fired when direct_socket.TCPSocket connection is opened.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketOpened

View Source
var DirectUDPSocketAborted = cdp.Event[EventDirectUDPSocketAborted]{Method: "Network.directUDPSocketAborted"}

DirectUDPSocketAborted fired when direct_socket.UDPSocket is aborted.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketAborted

View Source
var DirectUDPSocketChunkReceived = cdp.Event[EventDirectUDPSocketChunkReceived]{Method: "Network.directUDPSocketChunkReceived"}

DirectUDPSocketChunkReceived fired when message is received from udp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketChunkReceived

View Source
var DirectUDPSocketChunkSent = cdp.Event[EventDirectUDPSocketChunkSent]{Method: "Network.directUDPSocketChunkSent"}

DirectUDPSocketChunkSent fired when message is sent to udp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketChunkSent

View Source
var DirectUDPSocketClosed = cdp.Event[EventDirectUDPSocketClosed]{Method: "Network.directUDPSocketClosed"}

DirectUDPSocketClosed fired when direct_socket.UDPSocket is closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketClosed

View Source
var DirectUDPSocketCreated = cdp.Event[EventDirectUDPSocketCreated]{Method: "Network.directUDPSocketCreated"}

DirectUDPSocketCreated fired upon direct_socket.UDPSocket creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketCreated

View Source
var DirectUDPSocketJoinedMulticastGroup = cdp.Event[EventDirectUDPSocketJoinedMulticastGroup]{Method: "Network.directUDPSocketJoinedMulticastGroup"}

DirectUDPSocketJoinedMulticastGroup [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketJoinedMulticastGroup

View Source
var DirectUDPSocketLeftMulticastGroup = cdp.Event[EventDirectUDPSocketLeftMulticastGroup]{Method: "Network.directUDPSocketLeftMulticastGroup"}

DirectUDPSocketLeftMulticastGroup [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketLeftMulticastGroup

View Source
var DirectUDPSocketOpened = cdp.Event[EventDirectUDPSocketOpened]{Method: "Network.directUDPSocketOpened"}

DirectUDPSocketOpened fired when direct_socket.UDPSocket connection is opened.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketOpened

View Source
var Disable = cdp.Command[cdp.Empty, cdp.Empty]{Method: CommandDisable}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-disable

EmulateNetworkConditionsByRule activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated Network.emulateNetworkConditions this method does not affect navigator state. Use Network.overrideNetworkState to explicitly modify navigator behavior.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-emulateNetworkConditionsByRule

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-enable

EnableDeviceBoundSessions sets up tracking device bound sessions and fetching of initial set of sessions.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-enableDeviceBoundSessions

EnableReportingAPI enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. Enabling triggers 'reportingApiReportAdded' for all existing reports.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-enableReportingApi

View Source
var EventSourceMessageReceived = cdp.Event[EventEventSourceMessageReceived]{Method: "Network.eventSourceMessageReceived"}

EventSourceMessageReceived fired when EventSource message is received.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-eventSourceMessageReceived

FetchSchemefulSite fetches the schemeful site for a specific origin.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-fetchSchemefulSite

GetCertificate returns the DER-encoded certificate.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-getCertificate

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-getCookies

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-getRequestPostData

GetResponseBody returns content served for the given request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-getResponseBody

GetSecurityIsolationStatus returns information about the COEP/COOP isolation status.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-getSecurityIsolationStatus

LoadNetworkResource fetches the resource and returns the content.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-loadNetworkResource

View Source
var LoadingFailed = cdp.Event[EventLoadingFailed]{Method: "Network.loadingFailed"}

LoadingFailed fired when HTTP request has failed to load.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-loadingFailed

View Source
var LoadingFinished = cdp.Event[EventLoadingFinished]{Method: "Network.loadingFinished"}

LoadingFinished fired when HTTP request has finished loading.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-loadingFinished

OverrideNetworkState override the state of navigator.onLine and navigator.connection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-overrideNetworkState

View Source
var PolicyUpdated = cdp.Event[EventPolicyUpdated]{Method: "Network.policyUpdated"}

PolicyUpdated fired once security policy has been updated.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-policyUpdated

ReplayXHR this method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-replayXHR

View Source
var ReportingAPIEndpointsChangedForOrigin = cdp.Event[EventReportingAPIEndpointsChangedForOrigin]{Method: "Network.reportingApiEndpointsChangedForOrigin"}

ReportingAPIEndpointsChangedForOrigin [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-reportingApiEndpointsChangedForOrigin

View Source
var ReportingAPIReportAdded = cdp.Event[EventReportingAPIReportAdded]{Method: "Network.reportingApiReportAdded"}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-reportingApiReportAdded

View Source
var ReportingAPIReportUpdated = cdp.Event[EventReportingAPIReportUpdated]{Method: "Network.reportingApiReportUpdated"}

ReportingAPIReportUpdated [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-reportingApiReportUpdated

View Source
var RequestServedFromCache = cdp.Event[EventRequestServedFromCache]{Method: "Network.requestServedFromCache"}

RequestServedFromCache fired if request ended up loading from cache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-requestServedFromCache

View Source
var RequestWillBeSent = cdp.Event[EventRequestWillBeSent]{Method: "Network.requestWillBeSent"}

RequestWillBeSent fired when page is about to send HTTP request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-requestWillBeSent

View Source
var RequestWillBeSentExtraInfo = cdp.Event[EventRequestWillBeSentExtraInfo]{Method: "Network.requestWillBeSentExtraInfo"}

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-requestWillBeSentExtraInfo

View Source
var ResourceChangedPriority = cdp.Event[EventResourceChangedPriority]{Method: "Network.resourceChangedPriority"}

ResourceChangedPriority fired when resource loading priority is changed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-resourceChangedPriority

View Source
var ResponseReceived = cdp.Event[EventResponseReceived]{Method: "Network.responseReceived"}

ResponseReceived fired when HTTP response is available.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-responseReceived

View Source
var ResponseReceivedEarlyHints = cdp.Event[EventResponseReceivedEarlyHints]{Method: "Network.responseReceivedEarlyHints"}

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-responseReceivedEarlyHints

View Source
var ResponseReceivedExtraInfo = cdp.Event[EventResponseReceivedExtraInfo]{Method: "Network.responseReceivedExtraInfo"}

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-responseReceivedExtraInfo

SearchInResponseBody searches for given string in response content.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-searchInResponseBody

SetAttachDebugStack specifies whether to attach a page script stack id in requests.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setAttachDebugStack

SetBlockedURLs blocks URLs from loading.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setBlockedURLs

SetBypassServiceWorker toggles ignoring of service worker for each request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setBypassServiceWorker

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setCacheDisabled

SetCookie sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setCookie

SetCookieControls sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setCookieControls

SetCookies sets given cookies.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setCookies

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-setExtraHTTPHeaders

View Source
var SignedExchangeReceived = cdp.Event[EventSignedExchangeReceived]{Method: "Network.signedExchangeReceived"}

SignedExchangeReceived fired when a signed exchange was received over the network.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-signedExchangeReceived

StreamResourceContent enables streaming of the response for the given requestId. If enabled, the dataReceived event contains the data that was received during streaming.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#method-streamResourceContent

View Source
var TrustTokenOperationDone = cdp.Event[EventTrustTokenOperationDone]{Method: "Network.trustTokenOperationDone"}

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-trustTokenOperationDone

View Source
var WebSocketClosed = cdp.Event[EventWebSocketClosed]{Method: "Network.webSocketClosed"}

WebSocketClosed fired when WebSocket is closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketClosed

View Source
var WebSocketCreated = cdp.Event[EventWebSocketCreated]{Method: "Network.webSocketCreated"}

WebSocketCreated fired upon WebSocket creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketCreated

View Source
var WebSocketFrameError = cdp.Event[EventWebSocketFrameError]{Method: "Network.webSocketFrameError"}

WebSocketFrameError fired when WebSocket message error occurs.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketFrameError

View Source
var WebSocketFrameReceived = cdp.Event[EventWebSocketFrameReceived]{Method: "Network.webSocketFrameReceived"}

WebSocketFrameReceived fired when WebSocket message is received.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketFrameReceived

View Source
var WebSocketFrameSent = cdp.Event[EventWebSocketFrameSent]{Method: "Network.webSocketFrameSent"}

WebSocketFrameSent fired when WebSocket message is sent.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketFrameSent

View Source
var WebSocketHandshakeResponseReceived = cdp.Event[EventWebSocketHandshakeResponseReceived]{Method: "Network.webSocketHandshakeResponseReceived"}

WebSocketHandshakeResponseReceived fired when WebSocket handshake response becomes available.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketHandshakeResponseReceived

View Source
var WebSocketWillSendHandshakeRequest = cdp.Event[EventWebSocketWillSendHandshakeRequest]{Method: "Network.webSocketWillSendHandshakeRequest"}

WebSocketWillSendHandshakeRequest fired when WebSocket is about to initiate handshake.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketWillSendHandshakeRequest

View Source
var WebTransportClosed = cdp.Event[EventWebTransportClosed]{Method: "Network.webTransportClosed"}

WebTransportClosed fired when WebTransport is disposed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webTransportClosed

View Source
var WebTransportConnectionEstablished = cdp.Event[EventWebTransportConnectionEstablished]{Method: "Network.webTransportConnectionEstablished"}

WebTransportConnectionEstablished fired when WebTransport handshake is finished.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webTransportConnectionEstablished

View Source
var WebTransportCreated = cdp.Event[EventWebTransportCreated]{Method: "Network.webTransportCreated"}

WebTransportCreated fired upon WebTransport creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webTransportCreated

Functions

This section is empty.

Types

type AlternateProtocolUsage

type AlternateProtocolUsage string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AlternateProtocolUsage

const (
	AlternateProtocolUsageAlternativeJobWonWithoutRace AlternateProtocolUsage = "alternativeJobWonWithoutRace"
	AlternateProtocolUsageAlternativeJobWonRace        AlternateProtocolUsage = "alternativeJobWonRace"
	AlternateProtocolUsageMainJobWonRace               AlternateProtocolUsage = "mainJobWonRace"
	AlternateProtocolUsageMappingMissing               AlternateProtocolUsage = "mappingMissing"
	AlternateProtocolUsageBroken                       AlternateProtocolUsage = "broken"
	AlternateProtocolUsageDNSAlpnH3jobWonWithoutRace   AlternateProtocolUsage = "dnsAlpnH3JobWonWithoutRace"
	AlternateProtocolUsageDNSAlpnH3jobWonRace          AlternateProtocolUsage = "dnsAlpnH3JobWonRace"
	AlternateProtocolUsageUnspecifiedReason            AlternateProtocolUsage = "unspecifiedReason"
)

AlternateProtocolUsage values.

func (AlternateProtocolUsage) String

func (t AlternateProtocolUsage) String() string

String returns the AlternateProtocolUsage as string value.

type AssociatedCookie

type AssociatedCookie struct {
	Cookie          *Cookie               `json:"cookie"`                             // The cookie object representing the cookie which was not sent.
	BlockedReasons  []CookieBlockedReason `json:"blockedReasons"`                     // The reason(s) the cookie was blocked. If empty means the cookie is included.
	ExemptionReason CookieExemptionReason `json:"exemptionReason,omitempty,omitzero"` // The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could only have at most one exemption reason.
}

AssociatedCookie 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AssociatedCookie

type AuthChallenge

type AuthChallenge struct {
	Source AuthChallengeSource `json:"source,omitempty,omitzero"` // Source of the authentication challenge.
	Origin string              `json:"origin"`                    // Origin of the challenger.
	Scheme string              `json:"scheme"`                    // The authentication scheme used, such as basic or digest
	Realm  string              `json:"realm"`                     // The realm of the challenge. May be empty.
}

AuthChallenge authorization challenge for HTTP status code 401 or 407.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallenge

type AuthChallengeResponse

type AuthChallengeResponse struct {
	Response AuthChallengeResponseResponse `json:"response"`                    // 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.
	Username string                        `json:"username,omitempty,omitzero"` // The username to provide, possibly empty. Should only be set if response is ProvideCredentials.
	Password string                        `json:"password,omitempty,omitzero"` // The password to provide, possibly empty. Should only be set if response is ProvideCredentials.
}

AuthChallengeResponse response to an AuthChallenge.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallengeResponse

type AuthChallengeResponseResponse added in v0.157.1

type AuthChallengeResponseResponse string

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallengeResponse

const (
	AuthChallengeResponseResponseDefault            AuthChallengeResponseResponse = "Default"
	AuthChallengeResponseResponseCancelAuth         AuthChallengeResponseResponse = "CancelAuth"
	AuthChallengeResponseResponseProvideCredentials AuthChallengeResponseResponse = "ProvideCredentials"
)

AuthChallengeResponseResponse values.

func (AuthChallengeResponseResponse) String added in v0.157.1

String returns the AuthChallengeResponseResponse as string value.

type AuthChallengeSource added in v0.157.1

type AuthChallengeSource string

AuthChallengeSource source of the authentication challenge.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-AuthChallenge

const (
	AuthChallengeSourceServer AuthChallengeSource = "Server"
	AuthChallengeSourceProxy  AuthChallengeSource = "Proxy"
)

AuthChallengeSource values.

func (AuthChallengeSource) String added in v0.157.1

func (t AuthChallengeSource) String() string

String returns the AuthChallengeSource as string value.

type BlockPattern

type BlockPattern struct {
	URLPattern string `json:"urlPattern"` // URL pattern to match. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: *://*:*/*.css.
	Block      bool   `json:"block"`      // Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later BlockPattern.
}

BlockPattern [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-BlockPattern

type BlockedReason

type BlockedReason string

BlockedReason the reason why request was blocked.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-BlockedReason

const (
	BlockedReasonOther                                                   BlockedReason = "other"
	BlockedReasonCsp                                                     BlockedReason = "csp"
	BlockedReasonMixedContent                                            BlockedReason = "mixed-content"
	BlockedReasonOrigin                                                  BlockedReason = "origin"
	BlockedReasonInspector                                               BlockedReason = "inspector"
	BlockedReasonIntegrity                                               BlockedReason = "integrity"
	BlockedReasonSubresourceFilter                                       BlockedReason = "subresource-filter"
	BlockedReasonContentType                                             BlockedReason = "content-type"
	BlockedReasonCoepFrameResourceNeedsCoepHeader                        BlockedReason = "coep-frame-resource-needs-coep-header"
	BlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage             BlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page"
	BlockedReasonCorpNotSameOrigin                                       BlockedReason = "corp-not-same-origin"
	BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep       BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep"
	BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByDip        BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-dip"
	BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip"
	BlockedReasonCorpNotSameSite                                         BlockedReason = "corp-not-same-site"
	BlockedReasonSriMessageSignatureMismatch                             BlockedReason = "sri-message-signature-mismatch"
)

BlockedReason values.

func (BlockedReason) String

func (t BlockedReason) String() string

String returns the BlockedReason as string value.

type BlockedSetCookieWithReason

type BlockedSetCookieWithReason struct {
	BlockedReasons []SetCookieBlockedReason `json:"blockedReasons"`            // The reason(s) this cookie was blocked.
	CookieLine     string                   `json:"cookieLine"`                // The string representing this individual cookie as it would appear in the header. This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
	Cookie         *Cookie                  `json:"cookie,omitempty,omitzero"` // The cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-BlockedSetCookieWithReason

type CachedResource

type CachedResource struct {
	URL      string       `json:"url"`                         // Resource URL. This is the url of the original network request.
	Type     ResourceType `json:"type"`                        // Type of this resource.
	Response *Response    `json:"response,omitempty,omitzero"` // Cached response data.
	BodySize float64      `json:"bodySize"`                    // Cached response body size.
}

CachedResource information about the cached resource.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CachedResource

type CertificateTransparencyCompliance

type CertificateTransparencyCompliance string

CertificateTransparencyCompliance whether the request complied with Certificate Transparency policy.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CertificateTransparencyCompliance

const (
	CertificateTransparencyComplianceUnknown      CertificateTransparencyCompliance = "unknown"
	CertificateTransparencyComplianceNotCompliant CertificateTransparencyCompliance = "not-compliant"
	CertificateTransparencyComplianceCompliant    CertificateTransparencyCompliance = "compliant"
)

CertificateTransparencyCompliance values.

func (CertificateTransparencyCompliance) String

String returns the CertificateTransparencyCompliance as string value.

type ChallengeEventDetails

type ChallengeEventDetails struct {
	ChallengeResult ChallengeEventDetailsChallengeResult `json:"challengeResult"` // The result of a challenge.
	Challenge       string                               `json:"challenge"`       // The challenge set.
}

ChallengeEventDetails session event details specific to challenges.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ChallengeEventDetails

type ChallengeEventDetailsChallengeResult added in v0.157.1

type ChallengeEventDetailsChallengeResult string

ChallengeEventDetailsChallengeResult the result of a challenge.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ChallengeEventDetails

const (
	ChallengeEventDetailsChallengeResultSuccess            ChallengeEventDetailsChallengeResult = "Success"
	ChallengeEventDetailsChallengeResultNoSessionID        ChallengeEventDetailsChallengeResult = "NoSessionId"
	ChallengeEventDetailsChallengeResultNoSessionMatch     ChallengeEventDetailsChallengeResult = "NoSessionMatch"
	ChallengeEventDetailsChallengeResultCantSetBoundCookie ChallengeEventDetailsChallengeResult = "CantSetBoundCookie"
)

ChallengeEventDetailsChallengeResult values.

func (ChallengeEventDetailsChallengeResult) String added in v0.157.1

String returns the ChallengeEventDetailsChallengeResult as string value.

type ClientSecurityState

type ClientSecurityState struct {
	InitiatorIsSecureContext        bool                            `json:"initiatorIsSecureContext"`
	InitiatorIPAddressSpace         IPAddressSpace                  `json:"initiatorIPAddressSpace"`
	LocalNetworkAccessRequestPolicy LocalNetworkAccessRequestPolicy `json:"localNetworkAccessRequestPolicy"`
}

ClientSecurityState [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ClientSecurityState

type Conditions

type Conditions struct {
	URLPattern         string         `json:"urlPattern"`                           // Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. If the pattern is empty, all requests are matched (including p2p connections).
	Latency            float64        `json:"latency"`                              // Minimum latency from request sent to response headers received (ms).
	DownloadThroughput float64        `json:"downloadThroughput"`                   // Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
	UploadThroughput   float64        `json:"uploadThroughput"`                     // Maximal aggregated upload throughput (bytes/sec).  -1 disables upload throttling.
	ConnectionType     ConnectionType `json:"connectionType,omitempty,omitzero"`    // Connection type if known.
	PacketLoss         float64        `json:"packetLoss,omitempty,omitzero"`        // WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.
	PacketQueueLength  int64          `json:"packetQueueLength,omitempty,omitzero"` // WebRTC packet queue length (packet). 0 removes any queue length limitations.
	PacketReordering   bool           `json:"packetReordering"`                     // WebRTC packetReordering feature.
	Offline            bool           `json:"offline"`                              // True to emulate internet disconnection.
}

Conditions [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-NetworkConditions

type ConfigureDurableMessagesParams

type ConfigureDurableMessagesParams struct {
	MaxTotalBufferSize    *int64 `json:"maxTotalBufferSize,omitempty,omitzero"`    // Buffer size in bytes to use when preserving network payloads (XHRs, etc).
	MaxResourceBufferSize *int64 `json:"maxResourceBufferSize,omitempty,omitzero"` // Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
}

ConfigureDurableMessagesParams are the parameters of the command Network.configureDurableMessages.

type ConnectTiming

type ConnectTiming struct {
	RequestTime float64 `json:"requestTime"` // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for the same request (but not for redirected requests).
}

ConnectTiming [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ConnectTiming

type ConnectionType

type ConnectionType string

ConnectionType the underlying connection technology that the browser is supposedly using.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ConnectionType

const (
	ConnectionTypeNone       ConnectionType = "none"
	ConnectionTypeCellular2g ConnectionType = "cellular2g"
	ConnectionTypeCellular3g ConnectionType = "cellular3g"
	ConnectionTypeCellular4g ConnectionType = "cellular4g"
	ConnectionTypeBluetooth  ConnectionType = "bluetooth"
	ConnectionTypeEthernet   ConnectionType = "ethernet"
	ConnectionTypeWifi       ConnectionType = "wifi"
	ConnectionTypeWimax      ConnectionType = "wimax"
	ConnectionTypeOther      ConnectionType = "other"
)

ConnectionType values.

func (ConnectionType) String

func (t ConnectionType) String() string

String returns the ConnectionType as string value.

type ContentSecurityPolicySource

type ContentSecurityPolicySource string

ContentSecurityPolicySource [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ContentSecurityPolicySource

const (
	ContentSecurityPolicySourceHTTP ContentSecurityPolicySource = "HTTP"
	ContentSecurityPolicySourceMeta ContentSecurityPolicySource = "Meta"
)

ContentSecurityPolicySource values.

func (ContentSecurityPolicySource) String

String returns the ContentSecurityPolicySource as string value.

type ContentSecurityPolicyStatus

type ContentSecurityPolicyStatus struct {
	EffectiveDirectives string                      `json:"effectiveDirectives"`
	IsEnforced          bool                        `json:"isEnforced"`
	Source              ContentSecurityPolicySource `json:"source"`
}

ContentSecurityPolicyStatus [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ContentSecurityPolicyStatus

type Cookie struct {
	Name               string              `json:"name"`                            // Cookie name.
	Value              string              `json:"value"`                           // Cookie value.
	Domain             string              `json:"domain"`                          // Cookie domain.
	Path               string              `json:"path"`                            // Cookie path.
	Expires            float64             `json:"expires"`                         // Cookie expiration date as the number of seconds since the UNIX epoch. The value is set to -1 if the expiry date is not set. The value can be null for values that cannot be represented in JSON (±Inf).
	Size               int64               `json:"size"`                            // Cookie size.
	HTTPOnly           bool                `json:"httpOnly"`                        // True if cookie is http-only.
	Secure             bool                `json:"secure"`                          // True if cookie is secure.
	Session            bool                `json:"session"`                         // True in case of session cookie.
	SameSite           CookieSameSite      `json:"sameSite,omitempty,omitzero"`     // Cookie SameSite type.
	Priority           CookiePriority      `json:"priority"`                        // Cookie Priority
	SourceScheme       CookieSourceScheme  `json:"sourceScheme"`                    // Cookie source scheme type.
	SourcePort         int64               `json:"sourcePort"`                      // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
	PartitionKey       *CookiePartitionKey `json:"partitionKey,omitempty,omitzero"` // Cookie partition key.
	PartitionKeyOpaque bool                `json:"partitionKeyOpaque"`              // True if cookie partition key is opaque.
}

Cookie cookie object.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Cookie

type CookieBlockedReason

type CookieBlockedReason string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieBlockedReason

const (
	CookieBlockedReasonSecureOnly                               CookieBlockedReason = "SecureOnly"
	CookieBlockedReasonNotOnPath                                CookieBlockedReason = "NotOnPath"
	CookieBlockedReasonDomainMismatch                           CookieBlockedReason = "DomainMismatch"
	CookieBlockedReasonSameSiteStrict                           CookieBlockedReason = "SameSiteStrict"
	CookieBlockedReasonSameSiteLax                              CookieBlockedReason = "SameSiteLax"
	CookieBlockedReasonSameSiteUnspecifiedTreatedAsLax          CookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"
	CookieBlockedReasonSameSiteNoneInsecure                     CookieBlockedReason = "SameSiteNoneInsecure"
	CookieBlockedReasonUserPreferences                          CookieBlockedReason = "UserPreferences"
	CookieBlockedReasonThirdPartyPhaseout                       CookieBlockedReason = "ThirdPartyPhaseout"
	CookieBlockedReasonUnknownError                             CookieBlockedReason = "UnknownError"
	CookieBlockedReasonSchemefulSameSiteStrict                  CookieBlockedReason = "SchemefulSameSiteStrict"
	CookieBlockedReasonSchemefulSameSiteLax                     CookieBlockedReason = "SchemefulSameSiteLax"
	CookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax CookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"
	CookieBlockedReasonNameValuePairExceedsMaxSize              CookieBlockedReason = "NameValuePairExceedsMaxSize"
	CookieBlockedReasonPortMismatch                             CookieBlockedReason = "PortMismatch"
	CookieBlockedReasonSchemeMismatch                           CookieBlockedReason = "SchemeMismatch"
	CookieBlockedReasonAnonymousContext                         CookieBlockedReason = "AnonymousContext"
)

CookieBlockedReason values.

func (CookieBlockedReason) String

func (t CookieBlockedReason) String() string

String returns the CookieBlockedReason as string value.

type CookieExemptionReason

type CookieExemptionReason string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieExemptionReason

const (
	CookieExemptionReasonNone                         CookieExemptionReason = "None"
	CookieExemptionReasonUserSetting                  CookieExemptionReason = "UserSetting"
	CookieExemptionReasonEnterprisePolicy             CookieExemptionReason = "EnterprisePolicy"
	CookieExemptionReasonStorageAccess                CookieExemptionReason = "StorageAccess"
	CookieExemptionReasonTopLevelStorageAccess        CookieExemptionReason = "TopLevelStorageAccess"
	CookieExemptionReasonScheme                       CookieExemptionReason = "Scheme"
	CookieExemptionReasonSameSiteNoneCookiesInSandbox CookieExemptionReason = "SameSiteNoneCookiesInSandbox"
)

CookieExemptionReason values.

func (CookieExemptionReason) String

func (t CookieExemptionReason) String() string

String returns the CookieExemptionReason as string value.

type CookieParam

type CookieParam struct {
	Name         string              `json:"name"`                            // Cookie name.
	Value        string              `json:"value"`                           // Cookie value.
	URL          string              `json:"url,omitempty,omitzero"`          // The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
	Domain       string              `json:"domain,omitempty,omitzero"`       // Cookie domain.
	Path         string              `json:"path,omitempty,omitzero"`         // Cookie path.
	Secure       bool                `json:"secure"`                          // True if cookie is secure.
	HTTPOnly     bool                `json:"httpOnly"`                        // True if cookie is http-only.
	SameSite     CookieSameSite      `json:"sameSite,omitempty,omitzero"`     // Cookie SameSite type.
	Expires      cdp.TimeSinceEpoch  `json:"expires,omitempty,omitzero"`      // Cookie expiration date, session cookie if not set
	Priority     CookiePriority      `json:"priority,omitempty,omitzero"`     // Cookie Priority.
	SourceScheme CookieSourceScheme  `json:"sourceScheme,omitempty,omitzero"` // Cookie source scheme type.
	SourcePort   int64               `json:"sourcePort,omitempty,omitzero"`   // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
	PartitionKey *CookiePartitionKey `json:"partitionKey,omitempty,omitzero"` // Cookie partition key. If not set, the cookie will be set as not partitioned.
}

CookieParam cookie parameter object.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieParam

type CookiePartitionKey

type CookiePartitionKey struct {
	TopLevelSite         string `json:"topLevelSite"`         // The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie.
	HasCrossSiteAncestor bool   `json:"hasCrossSiteAncestor"` // Indicates if the cookie has any ancestors that are cross-site to the topLevelSite.
}

CookiePartitionKey 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookiePartitionKey

func (*CookiePartitionKey) UnmarshalJSON added in v0.157.4

func (t *CookiePartitionKey) UnmarshalJSON(buf []byte) error

UnmarshalJSON decodes the partition key from an object, or from the plain string that older versions of the browser send. The string is the top level site. The type always encodes as an object.

type CookiePriority

type CookiePriority string

CookiePriority represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookiePriority

const (
	CookiePriorityLow    CookiePriority = "Low"
	CookiePriorityMedium CookiePriority = "Medium"
	CookiePriorityHigh   CookiePriority = "High"
)

CookiePriority values.

func (CookiePriority) String

func (t CookiePriority) String() string

String returns the CookiePriority as string value.

type CookieSameSite

type CookieSameSite string

CookieSameSite represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieSameSite

const (
	CookieSameSiteStrict CookieSameSite = "Strict"
	CookieSameSiteLax    CookieSameSite = "Lax"
	CookieSameSiteNone   CookieSameSite = "None"
)

CookieSameSite values.

func (CookieSameSite) String

func (t CookieSameSite) String() string

String returns the CookieSameSite as string value.

type CookieSourceScheme

type CookieSourceScheme string

CookieSourceScheme 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CookieSourceScheme

const (
	CookieSourceSchemeUnset     CookieSourceScheme = "Unset"
	CookieSourceSchemeNonSecure CookieSourceScheme = "NonSecure"
	CookieSourceSchemeSecure    CookieSourceScheme = "Secure"
)

CookieSourceScheme values.

func (CookieSourceScheme) String

func (t CookieSourceScheme) String() string

String returns the CookieSourceScheme as string value.

type CorsError

type CorsError string

CorsError the reason why request was blocked.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CorsError

const (
	CorsErrorDisallowedByMode                     CorsError = "DisallowedByMode"
	CorsErrorInvalidResponse                      CorsError = "InvalidResponse"
	CorsErrorWildcardOriginNotAllowed             CorsError = "WildcardOriginNotAllowed"
	CorsErrorMissingAllowOriginHeader             CorsError = "MissingAllowOriginHeader"
	CorsErrorMultipleAllowOriginValues            CorsError = "MultipleAllowOriginValues"
	CorsErrorInvalidAllowOriginValue              CorsError = "InvalidAllowOriginValue"
	CorsErrorAllowOriginMismatch                  CorsError = "AllowOriginMismatch"
	CorsErrorInvalidAllowCredentials              CorsError = "InvalidAllowCredentials"
	CorsErrorCorsDisabledScheme                   CorsError = "CorsDisabledScheme"
	CorsErrorPreflightInvalidStatus               CorsError = "PreflightInvalidStatus"
	CorsErrorPreflightDisallowedRedirect          CorsError = "PreflightDisallowedRedirect"
	CorsErrorPreflightWildcardOriginNotAllowed    CorsError = "PreflightWildcardOriginNotAllowed"
	CorsErrorPreflightMissingAllowOriginHeader    CorsError = "PreflightMissingAllowOriginHeader"
	CorsErrorPreflightMultipleAllowOriginValues   CorsError = "PreflightMultipleAllowOriginValues"
	CorsErrorPreflightInvalidAllowOriginValue     CorsError = "PreflightInvalidAllowOriginValue"
	CorsErrorPreflightAllowOriginMismatch         CorsError = "PreflightAllowOriginMismatch"
	CorsErrorPreflightInvalidAllowCredentials     CorsError = "PreflightInvalidAllowCredentials"
	CorsErrorPreflightMissingAllowExternal        CorsError = "PreflightMissingAllowExternal"
	CorsErrorPreflightInvalidAllowExternal        CorsError = "PreflightInvalidAllowExternal"
	CorsErrorInvalidAllowMethodsPreflightResponse CorsError = "InvalidAllowMethodsPreflightResponse"
	CorsErrorInvalidAllowHeadersPreflightResponse CorsError = "InvalidAllowHeadersPreflightResponse"
	CorsErrorMethodDisallowedByPreflightResponse  CorsError = "MethodDisallowedByPreflightResponse"
	CorsErrorHeaderDisallowedByPreflightResponse  CorsError = "HeaderDisallowedByPreflightResponse"
	CorsErrorRedirectContainsCredentials          CorsError = "RedirectContainsCredentials"
	CorsErrorInsecureLocalNetwork                 CorsError = "InsecureLocalNetwork"
	CorsErrorInvalidLocalNetworkAccess            CorsError = "InvalidLocalNetworkAccess"
	CorsErrorNoCorsRedirectModeNotFollow          CorsError = "NoCorsRedirectModeNotFollow"
	CorsErrorLocalNetworkAccessPermissionDenied   CorsError = "LocalNetworkAccessPermissionDenied"
)

CorsError values.

func (CorsError) String

func (t CorsError) String() string

String returns the CorsError as string value.

type CorsErrorStatus

type CorsErrorStatus struct {
	CorsError       CorsError `json:"corsError"`
	FailedParameter string    `json:"failedParameter"`
}

CorsErrorStatus [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CorsErrorStatus

type CreationEventDetails

type CreationEventDetails struct {
	FetchResult   DeviceBoundSessionFetchResult    `json:"fetchResult"`                      // The result of the fetch attempt.
	NewSession    *DeviceBoundSession              `json:"newSession,omitempty,omitzero"`    // The session if there was a newly created session. This is populated for all successful creation events.
	FailedRequest *DeviceBoundSessionFailedRequest `json:"failedRequest,omitempty,omitzero"` // Details about a failed device bound session network request if there was one.
}

CreationEventDetails session event details specific to creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CreationEventDetails

type CrossOriginEmbedderPolicyStatus

type CrossOriginEmbedderPolicyStatus struct {
	Value                       CrossOriginEmbedderPolicyValue `json:"value"`
	ReportOnlyValue             CrossOriginEmbedderPolicyValue `json:"reportOnlyValue"`
	ReportingEndpoint           string                         `json:"reportingEndpoint,omitempty,omitzero"`
	ReportOnlyReportingEndpoint string                         `json:"reportOnlyReportingEndpoint,omitempty,omitzero"`
}

CrossOriginEmbedderPolicyStatus [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginEmbedderPolicyStatus

type CrossOriginEmbedderPolicyValue

type CrossOriginEmbedderPolicyValue string

CrossOriginEmbedderPolicyValue [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginEmbedderPolicyValue

const (
	CrossOriginEmbedderPolicyValueNone           CrossOriginEmbedderPolicyValue = "None"
	CrossOriginEmbedderPolicyValueCredentialless CrossOriginEmbedderPolicyValue = "Credentialless"
	CrossOriginEmbedderPolicyValueRequireCorp    CrossOriginEmbedderPolicyValue = "RequireCorp"
)

CrossOriginEmbedderPolicyValue values.

func (CrossOriginEmbedderPolicyValue) String

String returns the CrossOriginEmbedderPolicyValue as string value.

type CrossOriginOpenerPolicyStatus

type CrossOriginOpenerPolicyStatus struct {
	Value                       CrossOriginOpenerPolicyValue `json:"value"`
	ReportOnlyValue             CrossOriginOpenerPolicyValue `json:"reportOnlyValue"`
	ReportingEndpoint           string                       `json:"reportingEndpoint,omitempty,omitzero"`
	ReportOnlyReportingEndpoint string                       `json:"reportOnlyReportingEndpoint,omitempty,omitzero"`
}

CrossOriginOpenerPolicyStatus [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginOpenerPolicyStatus

type CrossOriginOpenerPolicyValue

type CrossOriginOpenerPolicyValue string

CrossOriginOpenerPolicyValue [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-CrossOriginOpenerPolicyValue

const (
	CrossOriginOpenerPolicyValueSameOrigin                 CrossOriginOpenerPolicyValue = "SameOrigin"
	CrossOriginOpenerPolicyValueSameOriginAllowPopups      CrossOriginOpenerPolicyValue = "SameOriginAllowPopups"
	CrossOriginOpenerPolicyValueRestrictProperties         CrossOriginOpenerPolicyValue = "RestrictProperties"
	CrossOriginOpenerPolicyValueUnsafeNone                 CrossOriginOpenerPolicyValue = "UnsafeNone"
	CrossOriginOpenerPolicyValueSameOriginPlusCoep         CrossOriginOpenerPolicyValue = "SameOriginPlusCoep"
	CrossOriginOpenerPolicyValueRestrictPropertiesPlusCoep CrossOriginOpenerPolicyValue = "RestrictPropertiesPlusCoep"
	CrossOriginOpenerPolicyValueNoopenerAllowPopups        CrossOriginOpenerPolicyValue = "NoopenerAllowPopups"
)

CrossOriginOpenerPolicyValue values.

func (CrossOriginOpenerPolicyValue) String

String returns the CrossOriginOpenerPolicyValue as string value.

type DeleteCookiesParams

type DeleteCookiesParams struct {
	Name         string              `json:"name"`                            // Name of the cookies to remove.
	URL          string              `json:"url,omitempty,omitzero"`          // If specified, deletes all the cookies with the given name where domain and path match provided URL.
	Domain       string              `json:"domain,omitempty,omitzero"`       // If specified, deletes only cookies with the exact domain.
	Path         string              `json:"path,omitempty,omitzero"`         // If specified, deletes only cookies with the exact path.
	PartitionKey *CookiePartitionKey `json:"partitionKey,omitempty,omitzero"` // If specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute.
}

DeleteCookiesParams are the parameters of the command Network.deleteCookies.

type DeleteDeviceBoundSessionParams

type DeleteDeviceBoundSessionParams struct {
	Key *DeviceBoundSessionKey `json:"key"`
}

DeleteDeviceBoundSessionParams are the parameters of the command Network.deleteDeviceBoundSession.

type DeviceBoundSession

type DeviceBoundSession struct {
	Key                      *DeviceBoundSessionKey             `json:"key"`                                // The site and session ID of the session.
	RefreshURL               string                             `json:"refreshUrl"`                         // See comments on net::device_bound_sessions::Session::refresh_url_.
	InclusionRules           *DeviceBoundSessionInclusionRules  `json:"inclusionRules"`                     // See comments on net::device_bound_sessions::Session::inclusion_rules_.
	CookieCravings           []*DeviceBoundSessionCookieCraving `json:"cookieCravings"`                     // See comments on net::device_bound_sessions::Session::cookie_cravings_.
	ExpiryDate               cdp.TimeSinceEpoch                 `json:"expiryDate"`                         // See comments on net::device_bound_sessions::Session::expiry_date_.
	CachedChallenge          string                             `json:"cachedChallenge,omitempty,omitzero"` // See comments on net::device_bound_sessions::Session::cached_challenge__.
	AllowedRefreshInitiators []string                           `json:"allowedRefreshInitiators"`           // See comments on net::device_bound_sessions::Session::allowed_refresh_initiators_.
}

DeviceBoundSession a device bound session.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSession

type DeviceBoundSessionCookieCraving

type DeviceBoundSessionCookieCraving struct {
	Name     string         `json:"name"`                        // The name of the craving.
	Domain   string         `json:"domain"`                      // The domain of the craving.
	Path     string         `json:"path"`                        // The path of the craving.
	Secure   bool           `json:"secure"`                      // The Secure attribute of the craving attributes.
	HTTPOnly bool           `json:"httpOnly"`                    // The HttpOnly attribute of the craving attributes.
	SameSite CookieSameSite `json:"sameSite,omitempty,omitzero"` // The SameSite attribute of the craving attributes.
}

DeviceBoundSessionCookieCraving a device bound session's cookie craving.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionCookieCraving

type DeviceBoundSessionEventID

type DeviceBoundSessionEventID string

DeviceBoundSessionEventID a unique identifier for a device bound session event.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionEventId

func (DeviceBoundSessionEventID) String

func (t DeviceBoundSessionEventID) String() string

String returns the DeviceBoundSessionEventID as string value.

type DeviceBoundSessionFailedRequest

type DeviceBoundSessionFailedRequest struct {
	RequestURL        string `json:"requestUrl"`                           // The failed request URL.
	NetError          string `json:"netError,omitempty,omitzero"`          // The net error of the response if it was not OK.
	ResponseError     int64  `json:"responseError,omitempty,omitzero"`     // The response code if the net error was OK and the response code was not 200.
	ResponseErrorBody string `json:"responseErrorBody,omitempty,omitzero"` // The body of the response if the net error was OK, the response code was not 200, and the response body was not empty.
}

DeviceBoundSessionFailedRequest details about a failed device bound session network request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionFailedRequest

type DeviceBoundSessionFetchResult

type DeviceBoundSessionFetchResult string

DeviceBoundSessionFetchResult a fetch result for a device bound session creation or refresh. LINT.IfChange(DeviceBoundSessionFetchResult).

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionFetchResult

const (
	DeviceBoundSessionFetchResultSuccess                                           DeviceBoundSessionFetchResult = "Success"
	DeviceBoundSessionFetchResultSigningKeyGenerationError                         DeviceBoundSessionFetchResult = "SigningKeyGenerationError"
	DeviceBoundSessionFetchResultAttestationKeyGenerationError                     DeviceBoundSessionFetchResult = "AttestationKeyGenerationError"
	DeviceBoundSessionFetchResultSigningError                                      DeviceBoundSessionFetchResult = "SigningError"
	DeviceBoundSessionFetchResultTransientSigningError                             DeviceBoundSessionFetchResult = "TransientSigningError"
	DeviceBoundSessionFetchResultServerRequestedTermination                        DeviceBoundSessionFetchResult = "ServerRequestedTermination"
	DeviceBoundSessionFetchResultInvalidSessionID                                  DeviceBoundSessionFetchResult = "InvalidSessionId"
	DeviceBoundSessionFetchResultInvalidChallenge                                  DeviceBoundSessionFetchResult = "InvalidChallenge"
	DeviceBoundSessionFetchResultTooManyChallenges                                 DeviceBoundSessionFetchResult = "TooManyChallenges"
	DeviceBoundSessionFetchResultInvalidFetcherURL                                 DeviceBoundSessionFetchResult = "InvalidFetcherUrl"
	DeviceBoundSessionFetchResultInvalidRefreshURL                                 DeviceBoundSessionFetchResult = "InvalidRefreshUrl"
	DeviceBoundSessionFetchResultTransientHTTPError                                DeviceBoundSessionFetchResult = "TransientHttpError"
	DeviceBoundSessionFetchResultScopeOriginSameSiteMismatch                       DeviceBoundSessionFetchResult = "ScopeOriginSameSiteMismatch"
	DeviceBoundSessionFetchResultRefreshURLSameSiteMismatch                        DeviceBoundSessionFetchResult = "RefreshUrlSameSiteMismatch"
	DeviceBoundSessionFetchResultMismatchedSessionID                               DeviceBoundSessionFetchResult = "MismatchedSessionId"
	DeviceBoundSessionFetchResultMissingScope                                      DeviceBoundSessionFetchResult = "MissingScope"
	DeviceBoundSessionFetchResultNoCredentials                                     DeviceBoundSessionFetchResult = "NoCredentials"
	DeviceBoundSessionFetchResultSubdomainRegistrationWellKnownUnavailable         DeviceBoundSessionFetchResult = "SubdomainRegistrationWellKnownUnavailable"
	DeviceBoundSessionFetchResultSubdomainRegistrationUnauthorized                 DeviceBoundSessionFetchResult = "SubdomainRegistrationUnauthorized"
	DeviceBoundSessionFetchResultSubdomainRegistrationWellKnownMalformed           DeviceBoundSessionFetchResult = "SubdomainRegistrationWellKnownMalformed"
	DeviceBoundSessionFetchResultSessionProviderWellKnownUnavailable               DeviceBoundSessionFetchResult = "SessionProviderWellKnownUnavailable"
	DeviceBoundSessionFetchResultRelyingPartyWellKnownUnavailable                  DeviceBoundSessionFetchResult = "RelyingPartyWellKnownUnavailable"
	DeviceBoundSessionFetchResultFederatedKeyThumbprintMismatch                    DeviceBoundSessionFetchResult = "FederatedKeyThumbprintMismatch"
	DeviceBoundSessionFetchResultInvalidFederatedSessionURL                        DeviceBoundSessionFetchResult = "InvalidFederatedSessionUrl"
	DeviceBoundSessionFetchResultInvalidFederatedKey                               DeviceBoundSessionFetchResult = "InvalidFederatedKey"
	DeviceBoundSessionFetchResultTooManyRelyingOriginLabels                        DeviceBoundSessionFetchResult = "TooManyRelyingOriginLabels"
	DeviceBoundSessionFetchResultBoundCookieSetForbidden                           DeviceBoundSessionFetchResult = "BoundCookieSetForbidden"
	DeviceBoundSessionFetchResultNetError                                          DeviceBoundSessionFetchResult = "NetError"
	DeviceBoundSessionFetchResultProxyError                                        DeviceBoundSessionFetchResult = "ProxyError"
	DeviceBoundSessionFetchResultEmptySessionConfig                                DeviceBoundSessionFetchResult = "EmptySessionConfig"
	DeviceBoundSessionFetchResultInvalidCredentialsConfig                          DeviceBoundSessionFetchResult = "InvalidCredentialsConfig"
	DeviceBoundSessionFetchResultInvalidCredentialsType                            DeviceBoundSessionFetchResult = "InvalidCredentialsType"
	DeviceBoundSessionFetchResultInvalidCredentialsEmptyName                       DeviceBoundSessionFetchResult = "InvalidCredentialsEmptyName"
	DeviceBoundSessionFetchResultInvalidCredentialsCookie                          DeviceBoundSessionFetchResult = "InvalidCredentialsCookie"
	DeviceBoundSessionFetchResultPersistentHTTPError                               DeviceBoundSessionFetchResult = "PersistentHttpError"
	DeviceBoundSessionFetchResultRegistrationAttemptedChallenge                    DeviceBoundSessionFetchResult = "RegistrationAttemptedChallenge"
	DeviceBoundSessionFetchResultInvalidScopeOrigin                                DeviceBoundSessionFetchResult = "InvalidScopeOrigin"
	DeviceBoundSessionFetchResultScopeOriginContainsPath                           DeviceBoundSessionFetchResult = "ScopeOriginContainsPath"
	DeviceBoundSessionFetchResultRefreshInitiatorNotString                         DeviceBoundSessionFetchResult = "RefreshInitiatorNotString"
	DeviceBoundSessionFetchResultRefreshInitiatorInvalidHostPattern                DeviceBoundSessionFetchResult = "RefreshInitiatorInvalidHostPattern"
	DeviceBoundSessionFetchResultInvalidScopeSpecification                         DeviceBoundSessionFetchResult = "InvalidScopeSpecification"
	DeviceBoundSessionFetchResultMissingScopeSpecificationType                     DeviceBoundSessionFetchResult = "MissingScopeSpecificationType"
	DeviceBoundSessionFetchResultEmptyScopeSpecificationDomain                     DeviceBoundSessionFetchResult = "EmptyScopeSpecificationDomain"
	DeviceBoundSessionFetchResultEmptyScopeSpecificationPath                       DeviceBoundSessionFetchResult = "EmptyScopeSpecificationPath"
	DeviceBoundSessionFetchResultInvalidScopeSpecificationType                     DeviceBoundSessionFetchResult = "InvalidScopeSpecificationType"
	DeviceBoundSessionFetchResultInvalidScopeIncludeSite                           DeviceBoundSessionFetchResult = "InvalidScopeIncludeSite"
	DeviceBoundSessionFetchResultMissingScopeIncludeSite                           DeviceBoundSessionFetchResult = "MissingScopeIncludeSite"
	DeviceBoundSessionFetchResultFederatedNotAuthorizedByProvider                  DeviceBoundSessionFetchResult = "FederatedNotAuthorizedByProvider"
	DeviceBoundSessionFetchResultFederatedNotAuthorizedByRelyingParty              DeviceBoundSessionFetchResult = "FederatedNotAuthorizedByRelyingParty"
	DeviceBoundSessionFetchResultSessionProviderWellKnownMalformed                 DeviceBoundSessionFetchResult = "SessionProviderWellKnownMalformed"
	DeviceBoundSessionFetchResultSessionProviderWellKnownHasProviderOrigin         DeviceBoundSessionFetchResult = "SessionProviderWellKnownHasProviderOrigin"
	DeviceBoundSessionFetchResultRelyingPartyWellKnownMalformed                    DeviceBoundSessionFetchResult = "RelyingPartyWellKnownMalformed"
	DeviceBoundSessionFetchResultRelyingPartyWellKnownHasRelyingOrigins            DeviceBoundSessionFetchResult = "RelyingPartyWellKnownHasRelyingOrigins"
	DeviceBoundSessionFetchResultInvalidFederatedSessionProviderSessionMissing     DeviceBoundSessionFetchResult = "InvalidFederatedSessionProviderSessionMissing"
	DeviceBoundSessionFetchResultInvalidFederatedSessionWrongProviderOrigin        DeviceBoundSessionFetchResult = "InvalidFederatedSessionWrongProviderOrigin"
	DeviceBoundSessionFetchResultInvalidCredentialsCookieCreationTime              DeviceBoundSessionFetchResult = "InvalidCredentialsCookieCreationTime"
	DeviceBoundSessionFetchResultInvalidCredentialsCookieName                      DeviceBoundSessionFetchResult = "InvalidCredentialsCookieName"
	DeviceBoundSessionFetchResultInvalidCredentialsCookieParsing                   DeviceBoundSessionFetchResult = "InvalidCredentialsCookieParsing"
	DeviceBoundSessionFetchResultInvalidCredentialsCookieUnpermittedAttribute      DeviceBoundSessionFetchResult = "InvalidCredentialsCookieUnpermittedAttribute"
	DeviceBoundSessionFetchResultInvalidCredentialsCookieInvalidDomain             DeviceBoundSessionFetchResult = "InvalidCredentialsCookieInvalidDomain"
	DeviceBoundSessionFetchResultInvalidCredentialsCookiePrefix                    DeviceBoundSessionFetchResult = "InvalidCredentialsCookiePrefix"
	DeviceBoundSessionFetchResultInvalidScopeRulePath                              DeviceBoundSessionFetchResult = "InvalidScopeRulePath"
	DeviceBoundSessionFetchResultInvalidScopeRuleHostPattern                       DeviceBoundSessionFetchResult = "InvalidScopeRuleHostPattern"
	DeviceBoundSessionFetchResultScopeRuleOriginScopedHostPatternMismatch          DeviceBoundSessionFetchResult = "ScopeRuleOriginScopedHostPatternMismatch"
	DeviceBoundSessionFetchResultScopeRuleSiteScopedHostPatternMismatch            DeviceBoundSessionFetchResult = "ScopeRuleSiteScopedHostPatternMismatch"
	DeviceBoundSessionFetchResultSigningQuotaExceeded                              DeviceBoundSessionFetchResult = "SigningQuotaExceeded"
	DeviceBoundSessionFetchResultInvalidConfigJSON                                 DeviceBoundSessionFetchResult = "InvalidConfigJson"
	DeviceBoundSessionFetchResultInvalidFederatedSessionProviderFailedToRestoreKey DeviceBoundSessionFetchResult = "InvalidFederatedSessionProviderFailedToRestoreKey"
	DeviceBoundSessionFetchResultFailedToUnwrapKey                                 DeviceBoundSessionFetchResult = "FailedToUnwrapKey"
	DeviceBoundSessionFetchResultSessionDeletedDuringRefresh                       DeviceBoundSessionFetchResult = "SessionDeletedDuringRefresh"
	DeviceBoundSessionFetchResultCrossOriginRegistrationSiteNotIncluded            DeviceBoundSessionFetchResult = "CrossOriginRegistrationSiteNotIncluded"
	DeviceBoundSessionFetchResultInvalidPreProvisionedKeyInitiatorMissing          DeviceBoundSessionFetchResult = "InvalidPreProvisionedKeyInitiatorMissing"
	DeviceBoundSessionFetchResultPreProvisionedKeyAccessNotGranted                 DeviceBoundSessionFetchResult = "PreProvisionedKeyAccessNotGranted"
	DeviceBoundSessionFetchResultPreProvisionedKeyNotFound                         DeviceBoundSessionFetchResult = "PreProvisionedKeyNotFound"
	DeviceBoundSessionFetchResultAttestationCertificationError                     DeviceBoundSessionFetchResult = "AttestationCertificationError"
	DeviceBoundSessionFetchResultAttestationSigningError                           DeviceBoundSessionFetchResult = "AttestationSigningError"
)

DeviceBoundSessionFetchResult values.

func (DeviceBoundSessionFetchResult) String

String returns the DeviceBoundSessionFetchResult as string value.

type DeviceBoundSessionInclusionRules

type DeviceBoundSessionInclusionRules struct {
	Origin      string                       `json:"origin"`      // See comments on net::device_bound_sessions::SessionInclusionRules::origin_.
	IncludeSite bool                         `json:"includeSite"` // Whether the whole site is included. See comments on net::device_bound_sessions::SessionInclusionRules::include_site_ for more details; this boolean is true if that value is populated.
	URLRules    []*DeviceBoundSessionURLRule `json:"urlRules"`    // See comments on net::device_bound_sessions::SessionInclusionRules::url_rules_.
}

DeviceBoundSessionInclusionRules a device bound session's inclusion rules.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionInclusionRules

type DeviceBoundSessionKey

type DeviceBoundSessionKey struct {
	Site string `json:"site"` // The site the session is set up for.
	ID   string `json:"id"`   // The id of the session.
}

DeviceBoundSessionKey unique identifier for a device bound session.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionKey

type DeviceBoundSessionURLRule

type DeviceBoundSessionURLRule struct {
	RuleType    DeviceBoundSessionURLRuleRuleType `json:"ruleType"`    // See comments on net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type.
	HostPattern string                            `json:"hostPattern"` // See comments on net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern.
	PathPrefix  string                            `json:"pathPrefix"`  // See comments on net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix.
}

DeviceBoundSessionURLRule a device bound session's inclusion URL rule.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionUrlRule

type DeviceBoundSessionURLRuleRuleType added in v0.157.1

type DeviceBoundSessionURLRuleRuleType string

DeviceBoundSessionURLRuleRuleType see comments on net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionUrlRule

const (
	DeviceBoundSessionURLRuleRuleTypeExclude DeviceBoundSessionURLRuleRuleType = "Exclude"
	DeviceBoundSessionURLRuleRuleTypeInclude DeviceBoundSessionURLRuleRuleType = "Include"
)

DeviceBoundSessionURLRuleRuleType values.

func (DeviceBoundSessionURLRuleRuleType) String added in v0.157.1

String returns the DeviceBoundSessionURLRuleRuleType as string value.

type DeviceBoundSessionWithUsage

type DeviceBoundSessionWithUsage struct {
	SessionKey *DeviceBoundSessionKey           `json:"sessionKey"` // The key for the session.
	Usage      DeviceBoundSessionWithUsageUsage `json:"usage"`      // How the session was used (or not used).
}

DeviceBoundSessionWithUsage how a device bound session was used during a request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionWithUsage

type DeviceBoundSessionWithUsageUsage added in v0.157.1

type DeviceBoundSessionWithUsageUsage string

DeviceBoundSessionWithUsageUsage how the session was used (or not used).

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DeviceBoundSessionWithUsage

const (
	DeviceBoundSessionWithUsageUsageNotInScope                  DeviceBoundSessionWithUsageUsage = "NotInScope"
	DeviceBoundSessionWithUsageUsageInScopeRefreshNotYetNeeded  DeviceBoundSessionWithUsageUsage = "InScopeRefreshNotYetNeeded"
	DeviceBoundSessionWithUsageUsageInScopeRefreshNotAllowed    DeviceBoundSessionWithUsageUsage = "InScopeRefreshNotAllowed"
	DeviceBoundSessionWithUsageUsageProactiveRefreshNotPossible DeviceBoundSessionWithUsageUsage = "ProactiveRefreshNotPossible"
	DeviceBoundSessionWithUsageUsageProactiveRefreshAttempted   DeviceBoundSessionWithUsageUsage = "ProactiveRefreshAttempted"
	DeviceBoundSessionWithUsageUsageDeferred                    DeviceBoundSessionWithUsageUsage = "Deferred"
)

DeviceBoundSessionWithUsageUsage values.

func (DeviceBoundSessionWithUsageUsage) String added in v0.157.1

String returns the DeviceBoundSessionWithUsageUsage as string value.

type DirectSocketDNSQueryType

type DirectSocketDNSQueryType string

DirectSocketDNSQueryType [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DirectSocketDnsQueryType

const (
	DirectSocketDNSQueryTypeIpv4 DirectSocketDNSQueryType = "ipv4"
	DirectSocketDNSQueryTypeIpv6 DirectSocketDNSQueryType = "ipv6"
)

DirectSocketDNSQueryType values.

func (DirectSocketDNSQueryType) String

func (t DirectSocketDNSQueryType) String() string

String returns the DirectSocketDNSQueryType as string value.

type DirectTCPSocketOptions

type DirectTCPSocketOptions struct {
	NoDelay           bool                     `json:"noDelay"`                              // TCP_NODELAY option
	KeepAliveDelay    float64                  `json:"keepAliveDelay,omitempty,omitzero"`    // Expected to be unsigned integer.
	SendBufferSize    float64                  `json:"sendBufferSize,omitempty,omitzero"`    // Expected to be unsigned integer.
	ReceiveBufferSize float64                  `json:"receiveBufferSize,omitempty,omitzero"` // Expected to be unsigned integer.
	DNSQueryType      DirectSocketDNSQueryType `json:"dnsQueryType,omitempty,omitzero"`
}

DirectTCPSocketOptions [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DirectTCPSocketOptions

type DirectUDPMessage

type DirectUDPMessage struct {
	Data       []byte `json:"data"`
	RemoteAddr string `json:"remoteAddr,omitempty,omitzero"` // Null for connected mode.
	RemotePort int64  `json:"remotePort,omitempty,omitzero"` // Null for connected mode. Expected to be unsigned integer.
}

DirectUDPMessage [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DirectUDPMessage

type DirectUDPSocketOptions

type DirectUDPSocketOptions struct {
	RemoteAddr                   string                   `json:"remoteAddr,omitempty,omitzero"`
	RemotePort                   int64                    `json:"remotePort,omitempty,omitzero"` // Unsigned int 16.
	LocalAddr                    string                   `json:"localAddr,omitempty,omitzero"`
	LocalPort                    int64                    `json:"localPort,omitempty,omitzero"` // Unsigned int 16.
	DNSQueryType                 DirectSocketDNSQueryType `json:"dnsQueryType,omitempty,omitzero"`
	SendBufferSize               float64                  `json:"sendBufferSize,omitempty,omitzero"`    // Expected to be unsigned integer.
	ReceiveBufferSize            float64                  `json:"receiveBufferSize,omitempty,omitzero"` // Expected to be unsigned integer.
	MulticastLoopback            bool                     `json:"multicastLoopback"`
	MulticastTimeToLive          int64                    `json:"multicastTimeToLive,omitempty,omitzero"` // Unsigned int 8.
	MulticastAllowAddressSharing bool                     `json:"multicastAllowAddressSharing"`
}

DirectUDPSocketOptions [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-DirectUDPSocketOptions

type EmulateNetworkConditionsByRuleParams

type EmulateNetworkConditionsByRuleParams struct {
	EmulateOfflineServiceWorker *bool         `json:"emulateOfflineServiceWorker,omitempty,omitzero"` // True to emulate offline service worker.
	MatchedNetworkConditions    []*Conditions `json:"matchedNetworkConditions"`                       // Configure conditions for matching requests. If multiple entries match a request, the first entry wins.  Global conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are also applied for throttling of p2p connections.
}

EmulateNetworkConditionsByRuleParams are the parameters of the command Network.emulateNetworkConditionsByRule.

type EmulateNetworkConditionsByRuleResult added in v0.157.3

type EmulateNetworkConditionsByRuleResult struct {
	RuleIDs []string `json:"ruleIds,omitempty,omitzero"` // An id for each entry in matchedNetworkConditions. The id will be included in the requestWillBeSentExtraInfo for requests affected by a rule.
}

EmulateNetworkConditionsByRuleResult is the result of the command Network.emulateNetworkConditionsByRule.

type EnableDeviceBoundSessionsParams

type EnableDeviceBoundSessionsParams struct {
	Enable bool `json:"enable"` // Whether to enable or disable events.
}

EnableDeviceBoundSessionsParams are the parameters of the command Network.enableDeviceBoundSessions.

type EnableParams

type EnableParams struct {
	MaxTotalBufferSize        *int64 `json:"maxTotalBufferSize,omitempty,omitzero"`        // Buffer size in bytes to use when preserving network payloads (XHRs, etc). This is the maximum number of bytes that will be collected by this DevTools session.
	MaxResourceBufferSize     *int64 `json:"maxResourceBufferSize,omitempty,omitzero"`     // Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
	MaxPostDataSize           *int64 `json:"maxPostDataSize,omitempty,omitzero"`           // Longest post body size (in bytes) that would be included in requestWillBeSent notification
	ReportDirectSocketTraffic *bool  `json:"reportDirectSocketTraffic,omitempty,omitzero"` // Whether DirectSocket chunk send/receive events should be reported.
	EnableDurableMessages     *bool  `json:"enableDurableMessages,omitempty,omitzero"`     // Enable storing response bodies outside of renderer, so that these survive a cross-process navigation. Requires maxTotalBufferSize to be set. Currently defaults to false. This field is being deprecated in favor of the dedicated configureDurableMessages command, due to the possibility of deadlocks when awaiting Network.enable before issuing Runtime.runIfWaitingForDebugger.
}

EnableParams are the parameters of the command Network.enable.

type EnableReportingAPIParams

type EnableReportingAPIParams struct {
	Enable bool `json:"enable"` // Whether to enable or disable events for the Reporting API
}

EnableReportingAPIParams are the parameters of the command Network.enableReportingApi.

type ErrorReason

type ErrorReason string

ErrorReason network level fetch failure reason.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ErrorReason

const (
	ErrorReasonFailed               ErrorReason = "Failed"
	ErrorReasonAborted              ErrorReason = "Aborted"
	ErrorReasonTimedOut             ErrorReason = "TimedOut"
	ErrorReasonAccessDenied         ErrorReason = "AccessDenied"
	ErrorReasonConnectionClosed     ErrorReason = "ConnectionClosed"
	ErrorReasonConnectionReset      ErrorReason = "ConnectionReset"
	ErrorReasonConnectionRefused    ErrorReason = "ConnectionRefused"
	ErrorReasonConnectionAborted    ErrorReason = "ConnectionAborted"
	ErrorReasonConnectionFailed     ErrorReason = "ConnectionFailed"
	ErrorReasonNameNotResolved      ErrorReason = "NameNotResolved"
	ErrorReasonInternetDisconnected ErrorReason = "InternetDisconnected"
	ErrorReasonAddressUnreachable   ErrorReason = "AddressUnreachable"
	ErrorReasonBlockedByClient      ErrorReason = "BlockedByClient"
	ErrorReasonBlockedByResponse    ErrorReason = "BlockedByResponse"
)

ErrorReason values.

func (ErrorReason) String

func (t ErrorReason) String() string

String returns the ErrorReason as string value.

type EventDataReceived

type EventDataReceived struct {
	RequestID         RequestID         `json:"requestId"`               // Request identifier.
	Timestamp         cdp.MonotonicTime `json:"timestamp"`               // Timestamp.
	DataLength        int64             `json:"dataLength"`              // Data chunk length.
	EncodedDataLength int64             `json:"encodedDataLength"`       // Actual bytes received (might be less than dataLength for compressed encodings).
	Data              []byte            `json:"data,omitempty,omitzero"` // Data that was received.
}

EventDataReceived fired when data chunk was received over the network.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-dataReceived

type EventDeviceBoundSessionEventOccurred

type EventDeviceBoundSessionEventOccurred struct {
	EventID                 DeviceBoundSessionEventID `json:"eventId"`                                 // A unique identifier for this session event.
	Site                    string                    `json:"site"`                                    // The site this session event is associated with.
	Succeeded               bool                      `json:"succeeded"`                               // Whether this event was considered successful.
	SessionID               string                    `json:"sessionId,omitempty,omitzero"`            // The session ID this event is associated with. May not be populated for failed events.
	CreationEventDetails    *CreationEventDetails     `json:"creationEventDetails,omitempty,omitzero"` // The below are the different session event type details. Exactly one is populated.
	RefreshEventDetails     *RefreshEventDetails      `json:"refreshEventDetails,omitempty,omitzero"`
	TerminationEventDetails *TerminationEventDetails  `json:"terminationEventDetails,omitempty,omitzero"`
	ChallengeEventDetails   *ChallengeEventDetails    `json:"challengeEventDetails,omitempty,omitzero"`
}

EventDeviceBoundSessionEventOccurred triggered when a device bound session event occurs.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-deviceBoundSessionEventOccurred

type EventDeviceBoundSessionsAdded

type EventDeviceBoundSessionsAdded struct {
	Sessions []*DeviceBoundSession `json:"sessions"` // The device bound sessions.
}

EventDeviceBoundSessionsAdded triggered when the initial set of device bound sessions is added.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-deviceBoundSessionsAdded

type EventDirectTCPSocketAborted

type EventDirectTCPSocketAborted struct {
	Identifier   RequestID         `json:"identifier"`
	ErrorMessage ErrorReason       `json:"errorMessage"`
	Timestamp    cdp.MonotonicTime `json:"timestamp"`
}

EventDirectTCPSocketAborted fired when direct_socket.TCPSocket is aborted.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketAborted

type EventDirectTCPSocketChunkReceived

type EventDirectTCPSocketChunkReceived struct {
	Identifier RequestID         `json:"identifier"`
	Data       []byte            `json:"data"`
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
}

EventDirectTCPSocketChunkReceived fired when data is received from tcp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketChunkReceived

type EventDirectTCPSocketChunkSent

type EventDirectTCPSocketChunkSent struct {
	Identifier RequestID         `json:"identifier"`
	Data       []byte            `json:"data"`
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
}

EventDirectTCPSocketChunkSent fired when data is sent to tcp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketChunkSent

type EventDirectTCPSocketClosed

type EventDirectTCPSocketClosed struct {
	Identifier RequestID         `json:"identifier"`
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
}

EventDirectTCPSocketClosed fired when direct_socket.TCPSocket is closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketClosed

type EventDirectTCPSocketCreated

type EventDirectTCPSocketCreated struct {
	Identifier RequestID               `json:"identifier"`
	RemoteAddr string                  `json:"remoteAddr"`
	RemotePort int64                   `json:"remotePort"` // Unsigned int 16.
	Options    *DirectTCPSocketOptions `json:"options"`
	Timestamp  cdp.MonotonicTime       `json:"timestamp"`
	Initiator  *Initiator              `json:"initiator,omitempty,omitzero"`
}

EventDirectTCPSocketCreated fired upon direct_socket.TCPSocket creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketCreated

type EventDirectTCPSocketOpened

type EventDirectTCPSocketOpened struct {
	Identifier RequestID         `json:"identifier"`
	RemoteAddr string            `json:"remoteAddr"`
	RemotePort int64             `json:"remotePort"` // Expected to be unsigned integer.
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
	LocalAddr  string            `json:"localAddr,omitempty,omitzero"`
	LocalPort  int64             `json:"localPort,omitempty,omitzero"` // Expected to be unsigned integer.
}

EventDirectTCPSocketOpened fired when direct_socket.TCPSocket connection is opened.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directTCPSocketOpened

type EventDirectUDPSocketAborted

type EventDirectUDPSocketAborted struct {
	Identifier   RequestID         `json:"identifier"`
	ErrorMessage ErrorReason       `json:"errorMessage"`
	Timestamp    cdp.MonotonicTime `json:"timestamp"`
}

EventDirectUDPSocketAborted fired when direct_socket.UDPSocket is aborted.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketAborted

type EventDirectUDPSocketChunkReceived

type EventDirectUDPSocketChunkReceived struct {
	Identifier RequestID         `json:"identifier"`
	Message    *DirectUDPMessage `json:"message"`
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
}

EventDirectUDPSocketChunkReceived fired when message is received from udp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketChunkReceived

type EventDirectUDPSocketChunkSent

type EventDirectUDPSocketChunkSent struct {
	Identifier RequestID         `json:"identifier"`
	Message    *DirectUDPMessage `json:"message"`
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
}

EventDirectUDPSocketChunkSent fired when message is sent to udp direct socket stream.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketChunkSent

type EventDirectUDPSocketClosed

type EventDirectUDPSocketClosed struct {
	Identifier RequestID         `json:"identifier"`
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
}

EventDirectUDPSocketClosed fired when direct_socket.UDPSocket is closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketClosed

type EventDirectUDPSocketCreated

type EventDirectUDPSocketCreated struct {
	Identifier RequestID               `json:"identifier"`
	Options    *DirectUDPSocketOptions `json:"options"`
	Timestamp  cdp.MonotonicTime       `json:"timestamp"`
	Initiator  *Initiator              `json:"initiator,omitempty,omitzero"`
}

EventDirectUDPSocketCreated fired upon direct_socket.UDPSocket creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketCreated

type EventDirectUDPSocketJoinedMulticastGroup

type EventDirectUDPSocketJoinedMulticastGroup struct {
	Identifier RequestID `json:"identifier"`
	IPAddress  string    `json:"IPAddress"`
}

EventDirectUDPSocketJoinedMulticastGroup [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketJoinedMulticastGroup

type EventDirectUDPSocketLeftMulticastGroup

type EventDirectUDPSocketLeftMulticastGroup struct {
	Identifier RequestID `json:"identifier"`
	IPAddress  string    `json:"IPAddress"`
}

EventDirectUDPSocketLeftMulticastGroup [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketLeftMulticastGroup

type EventDirectUDPSocketOpened

type EventDirectUDPSocketOpened struct {
	Identifier RequestID         `json:"identifier"`
	LocalAddr  string            `json:"localAddr"`
	LocalPort  int64             `json:"localPort"` // Expected to be unsigned integer.
	Timestamp  cdp.MonotonicTime `json:"timestamp"`
	RemoteAddr string            `json:"remoteAddr,omitempty,omitzero"`
	RemotePort int64             `json:"remotePort,omitempty,omitzero"` // Expected to be unsigned integer.
}

EventDirectUDPSocketOpened fired when direct_socket.UDPSocket connection is opened.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-directUDPSocketOpened

type EventEventSourceMessageReceived

type EventEventSourceMessageReceived struct {
	RequestID RequestID         `json:"requestId"` // Request identifier.
	Timestamp cdp.MonotonicTime `json:"timestamp"` // Timestamp.
	EventName string            `json:"eventName"` // Message type.
	EventID   string            `json:"eventId"`   // Message identifier.
	Data      string            `json:"data"`      // Message content.
}

EventEventSourceMessageReceived fired when EventSource message is received.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-eventSourceMessageReceived

type EventLoadingFailed

type EventLoadingFailed struct {
	RequestID       RequestID         `json:"requestId"`                          // Request identifier.
	Timestamp       cdp.MonotonicTime `json:"timestamp"`                          // Timestamp.
	Type            ResourceType      `json:"type"`                               // Resource type.
	ErrorText       string            `json:"errorText"`                          // Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h
	Canceled        bool              `json:"canceled"`                           // True if loading was canceled.
	BlockedReason   BlockedReason     `json:"blockedReason,omitempty,omitzero"`   // The reason why loading was blocked, if any.
	CorsErrorStatus *CorsErrorStatus  `json:"corsErrorStatus,omitempty,omitzero"` // The reason why loading was blocked by CORS, if any.
}

EventLoadingFailed fired when HTTP request has failed to load.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-loadingFailed

type EventLoadingFinished

type EventLoadingFinished struct {
	RequestID         RequestID         `json:"requestId"`                            // Request identifier.
	Timestamp         cdp.MonotonicTime `json:"timestamp"`                            // Timestamp.
	EncodedDataLength float64           `json:"encodedDataLength"`                    // Total number of bytes received for this request.
	EncodedBodyLength float64           `json:"encodedBodyLength,omitempty,omitzero"` // Size of the response body before removing content encodings. Includes cached bodies, but excludes headers and transfer framing.
}

EventLoadingFinished fired when HTTP request has finished loading.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-loadingFinished

type EventPolicyUpdated

type EventPolicyUpdated struct{}

EventPolicyUpdated fired once security policy has been updated.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-policyUpdated

type EventReportingAPIEndpointsChangedForOrigin

type EventReportingAPIEndpointsChangedForOrigin struct {
	Origin    string                  `json:"origin"` // Origin of the document(s) which configured the endpoints.
	Endpoints []*ReportingAPIEndpoint `json:"endpoints"`
}

EventReportingAPIEndpointsChangedForOrigin [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-reportingApiEndpointsChangedForOrigin

type EventReportingAPIReportAdded

type EventReportingAPIReportAdded struct {
	Report *ReportingAPIReport `json:"report"`
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-reportingApiReportAdded

type EventReportingAPIReportUpdated

type EventReportingAPIReportUpdated struct {
	Report *ReportingAPIReport `json:"report"`
}

EventReportingAPIReportUpdated [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-reportingApiReportUpdated

type EventRequestServedFromCache

type EventRequestServedFromCache struct {
	RequestID RequestID `json:"requestId"` // Request identifier.
}

EventRequestServedFromCache fired if request ended up loading from cache.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-requestServedFromCache

type EventRequestWillBeSent

type EventRequestWillBeSent struct {
	RequestID              RequestID              `json:"requestId"`                                 // Request identifier.
	LoaderID               cdp.LoaderID           `json:"loaderId"`                                  // Loader identifier. Empty string if the request is fetched from worker.
	DocumentURL            string                 `json:"documentURL"`                               // URL of the document this request is loaded for.
	Request                *Request               `json:"request"`                                   // Request data.
	Timestamp              cdp.MonotonicTime      `json:"timestamp"`                                 // Timestamp.
	WallTime               cdp.TimeSinceEpoch     `json:"wallTime"`                                  // Timestamp.
	Initiator              *Initiator             `json:"initiator"`                                 // Request initiator.
	RedirectHasExtraInfo   bool                   `json:"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.
	RedirectResponse       *Response              `json:"redirectResponse,omitempty,omitzero"`       // Redirect response data.
	Type                   ResourceType           `json:"type,omitempty,omitzero"`                   // Type of this resource.
	FrameID                cdp.FrameID            `json:"frameId,omitempty,omitzero"`                // Frame identifier.
	HasUserGesture         bool                   `json:"hasUserGesture"`                            // Whether the request is initiated by a user gesture. Defaults to false.
	RenderBlockingBehavior RenderBlockingBehavior `json:"renderBlockingBehavior,omitempty,omitzero"` // The render-blocking behavior of the request.
}

EventRequestWillBeSent fired when page is about to send HTTP request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-requestWillBeSent

type EventRequestWillBeSentExtraInfo

type EventRequestWillBeSentExtraInfo struct {
	RequestID                     RequestID                      `json:"requestId"`                                     // Request identifier. Used to match this information to an existing requestWillBeSent event.
	AssociatedCookies             []*AssociatedCookie            `json:"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.
	Headers                       Headers                        `json:"headers"`                                       // Raw request headers as they will be sent over the wire.
	ConnectTiming                 *ConnectTiming                 `json:"connectTiming"`                                 // Connection timing information for the request.
	DeviceBoundSessionUsages      []*DeviceBoundSessionWithUsage `json:"deviceBoundSessionUsages,omitempty,omitzero"`   // How the request site's device bound sessions were used during this request.
	ClientSecurityState           *ClientSecurityState           `json:"clientSecurityState,omitempty,omitzero"`        // The client security state set for the request.
	SiteHasCookieInOtherPartition bool                           `json:"siteHasCookieInOtherPartition"`                 // Whether the site has partitioned cookies stored in a partition different than the current one.
	AppliedNetworkConditionsID    string                         `json:"appliedNetworkConditionsId,omitempty,omitzero"` // The network conditions id if this request was affected by network conditions configured via emulateNetworkConditionsByRule.
}

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-requestWillBeSentExtraInfo

type EventResourceChangedPriority

type EventResourceChangedPriority struct {
	RequestID   RequestID         `json:"requestId"`   // Request identifier.
	NewPriority ResourcePriority  `json:"newPriority"` // New priority
	Timestamp   cdp.MonotonicTime `json:"timestamp"`   // Timestamp.
}

EventResourceChangedPriority fired when resource loading priority is changed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-resourceChangedPriority

type EventResponseReceived

type EventResponseReceived struct {
	RequestID    RequestID         `json:"requestId"`                  // Request identifier.
	LoaderID     cdp.LoaderID      `json:"loaderId"`                   // Loader identifier. Empty string if the request is fetched from worker.
	Timestamp    cdp.MonotonicTime `json:"timestamp"`                  // Timestamp.
	Type         ResourceType      `json:"type"`                       // Resource type.
	Response     *Response         `json:"response"`                   // Response data.
	HasExtraInfo bool              `json:"hasExtraInfo"`               // Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for this request.
	FrameID      cdp.FrameID       `json:"frameId,omitempty,omitzero"` // Frame identifier.
}

EventResponseReceived fired when HTTP response is available.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-responseReceived

type EventResponseReceivedEarlyHints

type EventResponseReceivedEarlyHints struct {
	RequestID RequestID `json:"requestId"` // Request identifier. Used to match this information to another responseReceived event.
	Headers   Headers   `json:"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.*.
}

EventResponseReceivedEarlyHints 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-responseReceivedEarlyHints

type EventResponseReceivedExtraInfo

type EventResponseReceivedExtraInfo struct {
	RequestID                RequestID                      `json:"requestId"`                             // Request identifier. Used to match this information to another responseReceived event.
	BlockedCookies           []*BlockedSetCookieWithReason  `json:"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.
	Headers                  Headers                        `json:"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.*.
	ResourceIPAddressSpace   IPAddressSpace                 `json:"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.
	StatusCode               int64                          `json:"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.
	HeadersText              string                         `json:"headersText,omitempty,omitzero"`        // 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.
	CookiePartitionKey       *CookiePartitionKey            `json:"cookiePartitionKey,omitempty,omitzero"` // The cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled.
	CookiePartitionKeyOpaque bool                           `json:"cookiePartitionKeyOpaque"`              // True if partitioned cookies are enabled, but the partition key is not serializable to string.
	ExemptedCookies          []*ExemptedSetCookieWithReason `json:"exemptedCookies,omitempty,omitzero"`    // A list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason.
}

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-responseReceivedExtraInfo

type EventSignedExchangeReceived

type EventSignedExchangeReceived struct {
	RequestID RequestID           `json:"requestId"` // Request identifier.
	Info      *SignedExchangeInfo `json:"info"`      // Information about the signed exchange response.
}

EventSignedExchangeReceived fired when a signed exchange was received over the network.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-signedExchangeReceived

type EventTrustTokenOperationDone

type EventTrustTokenOperationDone struct {
	Status           TrustTokenOperationDoneStatus `json:"status"` // Detailed success or error status of the operation. 'AlreadyExists' also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).
	Type             TrustTokenOperationType       `json:"type"`
	RequestID        RequestID                     `json:"requestId"`
	TopLevelOrigin   string                        `json:"topLevelOrigin,omitempty,omitzero"`   // Top level origin. The context in which the operation was attempted.
	IssuerOrigin     string                        `json:"issuerOrigin,omitempty,omitzero"`     // Origin of the issuer in case of a "Issuance" or "Redemption" operation.
	IssuedTokenCount int64                         `json:"issuedTokenCount,omitempty,omitzero"` // The number of obtained Trust Tokens on a successful "Issuance" operation.
}

EventTrustTokenOperationDone 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-trustTokenOperationDone

type EventWebSocketClosed

type EventWebSocketClosed struct {
	RequestID RequestID         `json:"requestId"` // Request identifier.
	Timestamp cdp.MonotonicTime `json:"timestamp"` // Timestamp.
}

EventWebSocketClosed fired when WebSocket is closed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketClosed

type EventWebSocketCreated

type EventWebSocketCreated struct {
	RequestID RequestID  `json:"requestId"`                    // Request identifier.
	URL       string     `json:"url"`                          // WebSocket request URL.
	Initiator *Initiator `json:"initiator,omitempty,omitzero"` // Request initiator.
}

EventWebSocketCreated fired upon WebSocket creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketCreated

type EventWebSocketFrameError

type EventWebSocketFrameError struct {
	RequestID    RequestID         `json:"requestId"`    // Request identifier.
	Timestamp    cdp.MonotonicTime `json:"timestamp"`    // Timestamp.
	ErrorMessage string            `json:"errorMessage"` // WebSocket error message.
}

EventWebSocketFrameError fired when WebSocket message error occurs.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketFrameError

type EventWebSocketFrameReceived

type EventWebSocketFrameReceived struct {
	RequestID RequestID         `json:"requestId"` // Request identifier.
	Timestamp cdp.MonotonicTime `json:"timestamp"` // Timestamp.
	Response  *WebSocketFrame   `json:"response"`  // WebSocket response data.
}

EventWebSocketFrameReceived fired when WebSocket message is received.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketFrameReceived

type EventWebSocketFrameSent

type EventWebSocketFrameSent struct {
	RequestID RequestID         `json:"requestId"` // Request identifier.
	Timestamp cdp.MonotonicTime `json:"timestamp"` // Timestamp.
	Response  *WebSocketFrame   `json:"response"`  // WebSocket response data.
}

EventWebSocketFrameSent fired when WebSocket message is sent.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketFrameSent

type EventWebSocketHandshakeResponseReceived

type EventWebSocketHandshakeResponseReceived struct {
	RequestID RequestID          `json:"requestId"` // Request identifier.
	Timestamp cdp.MonotonicTime  `json:"timestamp"` // Timestamp.
	Response  *WebSocketResponse `json:"response"`  // WebSocket response data.
}

EventWebSocketHandshakeResponseReceived fired when WebSocket handshake response becomes available.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketHandshakeResponseReceived

type EventWebSocketWillSendHandshakeRequest

type EventWebSocketWillSendHandshakeRequest struct {
	RequestID RequestID          `json:"requestId"` // Request identifier.
	Timestamp cdp.MonotonicTime  `json:"timestamp"` // Timestamp.
	WallTime  cdp.TimeSinceEpoch `json:"wallTime"`  // UTC Timestamp.
	Request   *WebSocketRequest  `json:"request"`   // WebSocket request data.
}

EventWebSocketWillSendHandshakeRequest fired when WebSocket is about to initiate handshake.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webSocketWillSendHandshakeRequest

type EventWebTransportClosed

type EventWebTransportClosed struct {
	TransportID RequestID         `json:"transportId"` // WebTransport identifier.
	Timestamp   cdp.MonotonicTime `json:"timestamp"`   // Timestamp.
}

EventWebTransportClosed fired when WebTransport is disposed.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webTransportClosed

type EventWebTransportConnectionEstablished

type EventWebTransportConnectionEstablished struct {
	TransportID RequestID         `json:"transportId"` // WebTransport identifier.
	Timestamp   cdp.MonotonicTime `json:"timestamp"`   // Timestamp.
}

EventWebTransportConnectionEstablished fired when WebTransport handshake is finished.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webTransportConnectionEstablished

type EventWebTransportCreated

type EventWebTransportCreated struct {
	TransportID RequestID         `json:"transportId"`                  // WebTransport identifier.
	URL         string            `json:"url"`                          // WebTransport request URL.
	Timestamp   cdp.MonotonicTime `json:"timestamp"`                    // Timestamp.
	Initiator   *Initiator        `json:"initiator,omitempty,omitzero"` // Request initiator.
}

EventWebTransportCreated fired upon WebTransport creation.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-webTransportCreated

type ExemptedSetCookieWithReason

type ExemptedSetCookieWithReason struct {
	ExemptionReason CookieExemptionReason `json:"exemptionReason"` // The reason the cookie was exempted.
	CookieLine      string                `json:"cookieLine"`      // The string representing this individual cookie as it would appear in the header.
	Cookie          *Cookie               `json:"cookie"`          // The cookie object representing the cookie.
}

ExemptedSetCookieWithReason 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ExemptedSetCookieWithReason

type FetchSchemefulSiteParams

type FetchSchemefulSiteParams struct {
	Origin string `json:"origin"` // The URL origin.
}

FetchSchemefulSiteParams are the parameters of the command Network.fetchSchemefulSite.

type FetchSchemefulSiteResult added in v0.157.3

type FetchSchemefulSiteResult struct {
	SchemefulSite string `json:"schemefulSite,omitempty,omitzero"` // The corresponding schemeful site.
}

FetchSchemefulSiteResult is the result of the command Network.fetchSchemefulSite.

type GetCertificateParams

type GetCertificateParams struct {
	Origin string `json:"origin"` // Origin to get certificate for.
}

GetCertificateParams are the parameters of the command Network.getCertificate.

type GetCertificateResult added in v0.157.3

type GetCertificateResult struct {
	TableNames []string `json:"tableNames,omitempty,omitzero"`
}

GetCertificateResult is the result of the command Network.getCertificate.

type GetCookiesParams

type GetCookiesParams struct {
	URLs []string `json:"urls,omitempty,omitzero"` // The list of URLs for which applicable cookies will be fetched. If not specified, it's assumed to be set to the list containing the URLs of the page and all of its subframes.
}

GetCookiesParams are the parameters of the command Network.getCookies.

type GetCookiesResult added in v0.157.3

type GetCookiesResult struct {
	Cookies []*Cookie `json:"cookies,omitempty,omitzero"` // Array of cookie objects.
}

GetCookiesResult is the result of the command Network.getCookies.

type GetRequestPostDataParams

type GetRequestPostDataParams struct {
	RequestID RequestID `json:"requestId"` // Identifier of the network request to get content for.
}

GetRequestPostDataParams are the parameters of the command Network.getRequestPostData.

type GetRequestPostDataResult added in v0.157.3

type GetRequestPostDataResult struct {
	PostData      []byte `json:"postData,omitempty,omitzero"` // Request body string, omitting files from multipart requests
	Base64encoded bool   `json:"base64Encoded"`               // True, if content was sent as base64.
}

GetRequestPostDataResult is the result of the command Network.getRequestPostData.

func (*GetRequestPostDataResult) UnmarshalJSON added in v0.157.3

func (r *GetRequestPostDataResult) UnmarshalJSON(buf []byte) error

UnmarshalJSON decodes the value. The browser sends postData as text, or as base64 when r.Base64encoded, and PostData holds the decoded bytes.

type GetResponseBodyParams

type GetResponseBodyParams struct {
	RequestID RequestID `json:"requestId"` // Identifier of the network request to get content for.
}

GetResponseBodyParams are the parameters of the command Network.getResponseBody.

type GetResponseBodyResult added in v0.157.3

type GetResponseBodyResult struct {
	Body          []byte `json:"body,omitempty,omitzero"` // Response body.
	Base64encoded bool   `json:"base64Encoded"`           // True, if content was sent as base64.
}

GetResponseBodyResult is the result of the command Network.getResponseBody.

func (*GetResponseBodyResult) UnmarshalJSON added in v0.157.3

func (r *GetResponseBodyResult) UnmarshalJSON(buf []byte) error

UnmarshalJSON decodes the value. The browser sends body as text, or as base64 when r.Base64encoded, and Body holds the decoded bytes.

type GetSecurityIsolationStatusParams

type GetSecurityIsolationStatusParams struct {
	FrameID cdp.FrameID `json:"frameId,omitempty,omitzero"` // If no frameId is provided, the status of the target is provided.
}

GetSecurityIsolationStatusParams are the parameters of the command Network.getSecurityIsolationStatus.

type GetSecurityIsolationStatusResult added in v0.157.3

type GetSecurityIsolationStatusResult struct {
	Status *SecurityIsolationStatus `json:"status,omitempty,omitzero"`
}

GetSecurityIsolationStatusResult is the result of the command Network.getSecurityIsolationStatus.

type Headers

type Headers map[string]any

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Headers

type IPAddressSpace

type IPAddressSpace string

IPAddressSpace [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-IPAddressSpace

const (
	IPAddressSpaceLoopback IPAddressSpace = "Loopback"
	IPAddressSpaceLocal    IPAddressSpace = "Local"
	IPAddressSpacePublic   IPAddressSpace = "Public"
	IPAddressSpaceUnknown  IPAddressSpace = "Unknown"
)

IPAddressSpace values.

func (IPAddressSpace) String

func (t IPAddressSpace) String() string

String returns the IPAddressSpace as string value.

type Initiator

type Initiator struct {
	Type         InitiatorType       `json:"type"`                            // Type of this initiator.
	Stack        *runtime.StackTrace `json:"stack,omitempty,omitzero"`        // Initiator JavaScript stack trace, set for Script only. Requires the Debugger domain to be enabled.
	URL          string              `json:"url,omitempty,omitzero"`          // Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.
	LineNumber   float64             `json:"lineNumber,omitempty,omitzero"`   // Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based).
	ColumnNumber float64             `json:"columnNumber,omitempty,omitzero"` // Initiator column number, set for Parser type or for Script type (when script is importing module) (0-based).
	RequestID    RequestID           `json:"requestId,omitempty,omitzero"`    // Set if another request triggered this request (e.g. preflight).
}

Initiator information about the request initiator.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Initiator

type InitiatorType added in v0.157.1

type InitiatorType string

InitiatorType type of this initiator.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Initiator

const (
	InitiatorTypeParser         InitiatorType = "parser"
	InitiatorTypeScript         InitiatorType = "script"
	InitiatorTypePreload        InitiatorType = "preload"
	InitiatorTypeSignedExchange InitiatorType = "SignedExchange"
	InitiatorTypePreflight      InitiatorType = "preflight"
	InitiatorTypeFedCM          InitiatorType = "FedCM"
	InitiatorTypeOther          InitiatorType = "other"
)

InitiatorType values.

func (InitiatorType) String added in v0.157.1

func (t InitiatorType) String() string

String returns the InitiatorType as string value.

type LoadNetworkResourceOptions

type LoadNetworkResourceOptions struct {
	DisableCache       bool `json:"disableCache"`
	IncludeCredentials bool `json:"includeCredentials"`
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-LoadNetworkResourceOptions

type LoadNetworkResourcePageResult

type LoadNetworkResourcePageResult struct {
	Success        bool            `json:"success"`
	NetError       float64         `json:"netError,omitempty,omitzero"` // Optional values used for error reporting.
	NetErrorName   string          `json:"netErrorName,omitempty,omitzero"`
	HTTPStatusCode float64         `json:"httpStatusCode,omitempty,omitzero"`
	Stream         io.StreamHandle `json:"stream,omitempty,omitzero"`  // If successful, one of the following two fields holds the result.
	Headers        Headers         `json:"headers,omitempty,omitzero"` // Response headers.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-LoadNetworkResourcePageResult

type LoadNetworkResourceParams

type LoadNetworkResourceParams struct {
	FrameID cdp.FrameID                 `json:"frameId,omitempty,omitzero"` // Frame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets.
	URL     string                      `json:"url"`                        // URL of the resource to get content for.
	Options *LoadNetworkResourceOptions `json:"options"`                    // Options for the request.
}

LoadNetworkResourceParams are the parameters of the command Network.loadNetworkResource.

type LoadNetworkResourceResult added in v0.157.3

type LoadNetworkResourceResult struct {
	Resource *LoadNetworkResourcePageResult `json:"resource,omitempty,omitzero"`
}

LoadNetworkResourceResult is the result of the command Network.loadNetworkResource.

type LocalNetworkAccessRequestPolicy

type LocalNetworkAccessRequestPolicy string

LocalNetworkAccessRequestPolicy [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-LocalNetworkAccessRequestPolicy

const (
	LocalNetworkAccessRequestPolicyAllow                          LocalNetworkAccessRequestPolicy = "Allow"
	LocalNetworkAccessRequestPolicyBlockFromInsecureToMorePrivate LocalNetworkAccessRequestPolicy = "BlockFromInsecureToMorePrivate"
	LocalNetworkAccessRequestPolicyWarnFromInsecureToMorePrivate  LocalNetworkAccessRequestPolicy = "WarnFromInsecureToMorePrivate"
	LocalNetworkAccessRequestPolicyPermissionBlock                LocalNetworkAccessRequestPolicy = "PermissionBlock"
	LocalNetworkAccessRequestPolicyPermissionWarn                 LocalNetworkAccessRequestPolicy = "PermissionWarn"
)

LocalNetworkAccessRequestPolicy values.

func (LocalNetworkAccessRequestPolicy) String

String returns the LocalNetworkAccessRequestPolicy as string value.

type OverrideNetworkStateParams

type OverrideNetworkStateParams struct {
	Offline            bool           `json:"offline"`                           // True to emulate internet disconnection.
	Latency            float64        `json:"latency"`                           // Minimum latency from request sent to response headers received (ms).
	DownloadThroughput float64        `json:"downloadThroughput"`                // Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
	UploadThroughput   float64        `json:"uploadThroughput"`                  // Maximal aggregated upload throughput (bytes/sec).  -1 disables upload throttling.
	ConnectionType     ConnectionType `json:"connectionType,omitempty,omitzero"` // Connection type if known.
}

OverrideNetworkStateParams are the parameters of the command Network.overrideNetworkState.

type PostDataEntry

type PostDataEntry struct {
	Bytes []byte `json:"bytes,omitempty,omitzero"`
}

PostDataEntry post data entry for HTTP request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-PostDataEntry

type RefreshEventDetails

type RefreshEventDetails struct {
	RefreshResult            RefreshEventDetailsRefreshResult `json:"refreshResult"`                    // The result of a refresh. LINT.IfChange(DeviceBoundSessionRefreshResult)
	FetchResult              DeviceBoundSessionFetchResult    `json:"fetchResult,omitempty,omitzero"`   // LINT.ThenChange(//net/device_bound_sessions/refresh_result.h:DeviceBoundSessionRefreshResult,//content/browser/devtools/protocol/network_handler.cc:DeviceBoundSessionRefreshResult) If there was a fetch attempt, the result of that.
	NewSession               *DeviceBoundSession              `json:"newSession,omitempty,omitzero"`    // The session display if there was a newly created session. This is populated for any refresh event that modifies the session config.
	WasFullyProactiveRefresh bool                             `json:"wasFullyProactiveRefresh"`         // See comments on net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh.
	FailedRequest            *DeviceBoundSessionFailedRequest `json:"failedRequest,omitempty,omitzero"` // Details about a failed device bound session network request if there was one.
}

RefreshEventDetails session event details specific to refresh.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-RefreshEventDetails

type RefreshEventDetailsRefreshResult added in v0.157.1

type RefreshEventDetailsRefreshResult string

RefreshEventDetailsRefreshResult the result of a refresh. LINT.IfChange(DeviceBoundSessionRefreshResult).

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-RefreshEventDetails

const (
	RefreshEventDetailsRefreshResultRefreshed                  RefreshEventDetailsRefreshResult = "Refreshed"
	RefreshEventDetailsRefreshResultInitializedService         RefreshEventDetailsRefreshResult = "InitializedService"
	RefreshEventDetailsRefreshResultUnreachable                RefreshEventDetailsRefreshResult = "Unreachable"
	RefreshEventDetailsRefreshResultServerError                RefreshEventDetailsRefreshResult = "ServerError"
	RefreshEventDetailsRefreshResultFatalError                 RefreshEventDetailsRefreshResult = "FatalError"
	RefreshEventDetailsRefreshResultSigningQuotaExceeded       RefreshEventDetailsRefreshResult = "SigningQuotaExceeded"
	RefreshEventDetailsRefreshResultRefreshedAsWaiter          RefreshEventDetailsRefreshResult = "RefreshedAsWaiter"
	RefreshEventDetailsRefreshResultTransientSigningError      RefreshEventDetailsRefreshResult = "TransientSigningError"
	RefreshEventDetailsRefreshResultInScopeRefreshNotYetNeeded RefreshEventDetailsRefreshResult = "InScopeRefreshNotYetNeeded"
	RefreshEventDetailsRefreshResultCanceled                   RefreshEventDetailsRefreshResult = "Canceled"
)

RefreshEventDetailsRefreshResult values.

func (RefreshEventDetailsRefreshResult) String added in v0.157.1

String returns the RefreshEventDetailsRefreshResult as string value.

type RenderBlockingBehavior

type RenderBlockingBehavior string

RenderBlockingBehavior the render-blocking behavior of a resource request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-RenderBlockingBehavior

const (
	RenderBlockingBehaviorBlocking             RenderBlockingBehavior = "Blocking"
	RenderBlockingBehaviorInBodyParserBlocking RenderBlockingBehavior = "InBodyParserBlocking"
	RenderBlockingBehaviorNonBlocking          RenderBlockingBehavior = "NonBlocking"
	RenderBlockingBehaviorNonBlockingDynamic   RenderBlockingBehavior = "NonBlockingDynamic"
	RenderBlockingBehaviorPotentiallyBlocking  RenderBlockingBehavior = "PotentiallyBlocking"
)

RenderBlockingBehavior values.

func (RenderBlockingBehavior) String

func (t RenderBlockingBehavior) String() string

String returns the RenderBlockingBehavior as string value.

type ReplayXHRParams

type ReplayXHRParams struct {
	RequestID RequestID `json:"requestId"` // Identifier of XHR to replay.
}

ReplayXHRParams are the parameters of the command Network.replayXHR.

type ReportID

type ReportID string

ReportID [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportId

func (ReportID) String

func (t ReportID) String() string

String returns the ReportID as string value.

type ReportStatus

type ReportStatus string

ReportStatus the status of a Reporting API report.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportStatus

const (
	ReportStatusQueued           ReportStatus = "Queued"
	ReportStatusPending          ReportStatus = "Pending"
	ReportStatusMarkedForRemoval ReportStatus = "MarkedForRemoval"
	ReportStatusSuccess          ReportStatus = "Success"
)

ReportStatus values.

func (ReportStatus) String

func (t ReportStatus) String() string

String returns the ReportStatus as string value.

type ReportingAPIEndpoint

type ReportingAPIEndpoint struct {
	URL       string `json:"url"`       // The URL of the endpoint to which reports may be delivered.
	GroupName string `json:"groupName"` // Name of the endpoint group.
}

ReportingAPIEndpoint [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportingApiEndpoint

type ReportingAPIReport

type ReportingAPIReport struct {
	ID                ReportID           `json:"id"`
	InitiatorURL      string             `json:"initiatorUrl"`      // The URL of the document that triggered the report.
	Destination       string             `json:"destination"`       // The name of the endpoint group that should be used to deliver the report.
	Type              string             `json:"type"`              // The type of the report (specifies the set of data that is contained in the report body).
	Timestamp         cdp.TimeSinceEpoch `json:"timestamp"`         // When the report was generated.
	Depth             int64              `json:"depth"`             // How many uploads deep the related request was.
	CompletedAttempts int64              `json:"completedAttempts"` // The number of delivery attempts made so far, not including an active attempt.
	Body              jsonv2.Value       `json:"body"`
	Status            ReportStatus       `json:"status"`
}

ReportingAPIReport an object representing a report generated by the Reporting API.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ReportingApiReport

type Request

type Request struct {
	URL              string                    `json:"url"`                                 // Request URL (without fragment).
	URLFragment      string                    `json:"urlFragment,omitempty,omitzero"`      // Fragment of the requested URL starting with hash, if present.
	Method           string                    `json:"method"`                              // HTTP request method.
	Headers          Headers                   `json:"headers"`                             // HTTP request headers.
	HasPostData      bool                      `json:"hasPostData"`                         // True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
	PostDataEntries  []*PostDataEntry          `json:"postDataEntries,omitempty,omitzero"`  // Request body elements (post data broken into individual entries).
	MixedContentType security.MixedContentType `json:"mixedContentType,omitempty,omitzero"` // The mixed content type of the request.
	InitialPriority  ResourcePriority          `json:"initialPriority"`                     // Priority of the resource request at the time request is sent.
	ReferrerPolicy   RequestReferrerPolicy     `json:"referrerPolicy"`                      // The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
	IsLinkPreload    bool                      `json:"isLinkPreload"`                       // Whether is loaded via link preload.
	TrustTokenParams *TrustTokenParams         `json:"trustTokenParams,omitempty,omitzero"` // Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.
	IsSameSite       bool                      `json:"isSameSite"`                          // True if this resource request is considered to be the 'same site' as the request corresponding to the main frame.
	IsAdRelated      bool                      `json:"isAdRelated"`                         // True when the resource request is ad-related.
}

Request HTTP request data.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Request

type RequestID

type RequestID string

RequestID unique network request identifier. Note that this does not identify individual HTTP requests that are part of a network request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-RequestId

func (RequestID) String

func (t RequestID) String() string

String returns the RequestID as string value.

type RequestReferrerPolicy added in v0.157.1

type RequestReferrerPolicy string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Request

const (
	RequestReferrerPolicyUnsafeURL                   RequestReferrerPolicy = "unsafe-url"
	RequestReferrerPolicyNoReferrerWhenDowngrade     RequestReferrerPolicy = "no-referrer-when-downgrade"
	RequestReferrerPolicyNoReferrer                  RequestReferrerPolicy = "no-referrer"
	RequestReferrerPolicyOrigin                      RequestReferrerPolicy = "origin"
	RequestReferrerPolicyOriginWhenCrossOrigin       RequestReferrerPolicy = "origin-when-cross-origin"
	RequestReferrerPolicySameOrigin                  RequestReferrerPolicy = "same-origin"
	RequestReferrerPolicyStrictOrigin                RequestReferrerPolicy = "strict-origin"
	RequestReferrerPolicyStrictOriginWhenCrossOrigin RequestReferrerPolicy = "strict-origin-when-cross-origin"
)

RequestReferrerPolicy values.

func (RequestReferrerPolicy) String added in v0.157.1

func (t RequestReferrerPolicy) String() string

String returns the RequestReferrerPolicy as string value.

type ResourcePriority

type ResourcePriority string

ResourcePriority loading priority of a resource request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ResourcePriority

const (
	ResourcePriorityVeryLow  ResourcePriority = "VeryLow"
	ResourcePriorityLow      ResourcePriority = "Low"
	ResourcePriorityMedium   ResourcePriority = "Medium"
	ResourcePriorityHigh     ResourcePriority = "High"
	ResourcePriorityVeryHigh ResourcePriority = "VeryHigh"
)

ResourcePriority values.

func (ResourcePriority) String

func (t ResourcePriority) String() string

String returns the ResourcePriority as string value.

type ResourceTiming

type ResourceTiming struct {
	RequestTime                 float64 `json:"requestTime"`                                    // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
	ProxyStart                  float64 `json:"proxyStart"`                                     // Started resolving proxy.
	ProxyEnd                    float64 `json:"proxyEnd"`                                       // Finished resolving proxy.
	DNSStart                    float64 `json:"dnsStart"`                                       // Started DNS address resolve.
	DNSEnd                      float64 `json:"dnsEnd"`                                         // Finished DNS address resolve.
	ConnectStart                float64 `json:"connectStart"`                                   // Started connecting to the remote host.
	ConnectEnd                  float64 `json:"connectEnd"`                                     // Connected to the remote host.
	SslStart                    float64 `json:"sslStart"`                                       // Started SSL handshake.
	SslEnd                      float64 `json:"sslEnd"`                                         // Finished SSL handshake.
	WorkerStart                 float64 `json:"workerStart"`                                    // Started running ServiceWorker.
	WorkerReady                 float64 `json:"workerReady"`                                    // Finished Starting ServiceWorker.
	WorkerFetchStart            float64 `json:"workerFetchStart"`                               // Started fetch event.
	WorkerRespondWithSettled    float64 `json:"workerRespondWithSettled"`                       // Settled fetch event respondWith promise.
	WorkerRouterEvaluationStart float64 `json:"workerRouterEvaluationStart,omitempty,omitzero"` // Started ServiceWorker static routing source evaluation.
	WorkerCacheLookupStart      float64 `json:"workerCacheLookupStart,omitempty,omitzero"`      // Started cache lookup when the source was evaluated to cache.
	SendStart                   float64 `json:"sendStart"`                                      // Started sending request.
	SendEnd                     float64 `json:"sendEnd"`                                        // Finished sending request.
	PushStart                   float64 `json:"pushStart"`                                      // Time the server started pushing request.
	PushEnd                     float64 `json:"pushEnd"`                                        // Time the server finished pushing request.
	ReceiveHeadersStart         float64 `json:"receiveHeadersStart"`                            // Started receiving response headers.
	ReceiveHeadersEnd           float64 `json:"receiveHeadersEnd"`                              // Finished receiving response headers.
}

ResourceTiming timing information for the request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ResourceTiming

type ResourceType

type ResourceType string

ResourceType resource type as it was perceived by the rendering engine.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ResourceType

const (
	ResourceTypeDocument           ResourceType = "Document"
	ResourceTypeStylesheet         ResourceType = "Stylesheet"
	ResourceTypeImage              ResourceType = "Image"
	ResourceTypeMedia              ResourceType = "Media"
	ResourceTypeFont               ResourceType = "Font"
	ResourceTypeScript             ResourceType = "Script"
	ResourceTypeTextTrack          ResourceType = "TextTrack"
	ResourceTypeXHR                ResourceType = "XHR"
	ResourceTypeFetch              ResourceType = "Fetch"
	ResourceTypePrefetch           ResourceType = "Prefetch"
	ResourceTypeEventSource        ResourceType = "EventSource"
	ResourceTypeWebSocket          ResourceType = "WebSocket"
	ResourceTypeManifest           ResourceType = "Manifest"
	ResourceTypeSignedExchange     ResourceType = "SignedExchange"
	ResourceTypePing               ResourceType = "Ping"
	ResourceTypeCSPViolationReport ResourceType = "CSPViolationReport"
	ResourceTypePreflight          ResourceType = "Preflight"
	ResourceTypeFedCM              ResourceType = "FedCM"
	ResourceTypeOther              ResourceType = "Other"
)

ResourceType values.

func (ResourceType) String

func (t ResourceType) String() string

String returns the ResourceType as string value.

type Response

type Response struct {
	URL                         string                      `json:"url"`                                            // Response URL. This URL can be different from CachedResource.url in case of redirect.
	Status                      int64                       `json:"status"`                                         // HTTP response status code.
	StatusText                  string                      `json:"statusText"`                                     // HTTP response status text.
	Headers                     Headers                     `json:"headers"`                                        // HTTP response headers.
	MimeType                    string                      `json:"mimeType"`                                       // Resource mimeType as determined by the browser.
	Charset                     string                      `json:"charset"`                                        // Resource charset as determined by the browser (if applicable).
	RequestHeaders              Headers                     `json:"requestHeaders,omitempty,omitzero"`              // Refined HTTP request headers that were actually transmitted over the network.
	ConnectionReused            bool                        `json:"connectionReused"`                               // Specifies whether physical connection was actually reused for this request.
	ConnectionID                float64                     `json:"connectionId"`                                   // Physical connection id that was actually used for this request.
	RemoteIPAddress             string                      `json:"remoteIPAddress,omitempty,omitzero"`             // Remote IP address.
	RemotePort                  int64                       `json:"remotePort,omitempty,omitzero"`                  // Remote port.
	FromDiskCache               bool                        `json:"fromDiskCache"`                                  // Specifies that the request was served from the disk cache.
	FromServiceWorker           bool                        `json:"fromServiceWorker"`                              // Specifies that the request was served from the ServiceWorker.
	FromPrefetchCache           bool                        `json:"fromPrefetchCache"`                              // Specifies that the request was served from the prefetch cache.
	FromEarlyHints              bool                        `json:"fromEarlyHints"`                                 // Specifies that the request was served from the prefetch cache.
	ServiceWorkerRouterInfo     *ServiceWorkerRouterInfo    `json:"serviceWorkerRouterInfo,omitempty,omitzero"`     // Information about how ServiceWorker Static Router API was used. If this field is set with matchedSourceType field, a matching rule is found. If this field is set without matchedSource, no matching rule is found. Otherwise, the API is not used.
	EncodedDataLength           float64                     `json:"encodedDataLength"`                              // Total number of bytes received for this request so far.
	Timing                      *ResourceTiming             `json:"timing,omitempty,omitzero"`                      // Timing information for the given request.
	ServiceWorkerResponseSource ServiceWorkerResponseSource `json:"serviceWorkerResponseSource,omitempty,omitzero"` // Response source of response from ServiceWorker.
	ResponseTime                cdp.TimeSinceEpoch          `json:"responseTime,omitempty,omitzero"`                // The time at which the returned response was generated.
	CacheStorageCacheName       string                      `json:"cacheStorageCacheName,omitempty,omitzero"`       // Cache Storage Cache Name.
	Protocol                    string                      `json:"protocol,omitempty,omitzero"`                    // Protocol used to fetch this request.
	AlternateProtocolUsage      AlternateProtocolUsage      `json:"alternateProtocolUsage,omitempty,omitzero"`      // The reason why Chrome uses a specific transport protocol for HTTP semantics.
	SecurityState               security.State              `json:"securityState"`                                  // Security state of the request resource.
	SecurityDetails             *SecurityDetails            `json:"securityDetails,omitempty,omitzero"`             // Security details for the request.
}

Response HTTP response data.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-Response

type SearchInResponseBodyParams

type SearchInResponseBodyParams struct {
	RequestID     RequestID `json:"requestId"`                        // Identifier of the network response to search.
	Query         string    `json:"query"`                            // String to search for.
	CaseSensitive *bool     `json:"caseSensitive,omitempty,omitzero"` // If true, search is case sensitive.
	IsRegex       *bool     `json:"isRegex,omitempty,omitzero"`       // If true, treats string parameter as regex.
}

SearchInResponseBodyParams are the parameters of the command Network.searchInResponseBody.

type SearchInResponseBodyResult added in v0.157.3

type SearchInResponseBodyResult struct {
	Result []*debugger.SearchMatch `json:"result,omitempty,omitzero"` // List of search matches.
}

SearchInResponseBodyResult is the result of the command Network.searchInResponseBody.

type SecurityDetails

type SecurityDetails struct {
	Protocol                          string                            `json:"protocol"`                                    // Protocol name (e.g. "TLS 1.2" or "QUIC").
	KeyExchange                       string                            `json:"keyExchange"`                                 // Key Exchange used by the connection, or the empty string if not applicable.
	KeyExchangeGroup                  string                            `json:"keyExchangeGroup,omitempty,omitzero"`         // (EC)DH group used by the connection, if applicable.
	Cipher                            string                            `json:"cipher"`                                      // Cipher name.
	Mac                               string                            `json:"mac,omitempty,omitzero"`                      // TLS MAC. Note that AEAD ciphers do not have separate MACs.
	CertificateID                     security.CertificateID            `json:"certificateId"`                               // Certificate ID value.
	SubjectName                       string                            `json:"subjectName"`                                 // Certificate subject name.
	SanList                           []string                          `json:"sanList"`                                     // Subject Alternative Name (SAN) DNS names and IP addresses.
	Issuer                            string                            `json:"issuer"`                                      // Name of the issuing CA.
	ValidFrom                         cdp.TimeSinceEpoch                `json:"validFrom"`                                   // Certificate valid from date.
	ValidTo                           cdp.TimeSinceEpoch                `json:"validTo"`                                     // Certificate valid to (expiration) date
	SignedCertificateTimestampList    []*SignedCertificateTimestamp     `json:"signedCertificateTimestampList"`              // List of signed certificate timestamps (SCTs).
	CertificateTransparencyCompliance CertificateTransparencyCompliance `json:"certificateTransparencyCompliance"`           // Whether the request complied with Certificate Transparency policy
	ServerSignatureAlgorithm          int64                             `json:"serverSignatureAlgorithm,omitempty,omitzero"` // The signature algorithm used by the server in the TLS server signature, represented as a TLS SignatureScheme code point. Omitted if not applicable or not known.
	EncryptedClientHello              bool                              `json:"encryptedClientHello"`                        // Whether the connection used Encrypted ClientHello
}

SecurityDetails security details about a request.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SecurityDetails

type SecurityIsolationStatus

type SecurityIsolationStatus struct {
	Coop *CrossOriginOpenerPolicyStatus   `json:"coop,omitempty,omitzero"`
	Coep *CrossOriginEmbedderPolicyStatus `json:"coep,omitempty,omitzero"`
	Csp  []*ContentSecurityPolicyStatus   `json:"csp,omitempty,omitzero"`
}

SecurityIsolationStatus [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SecurityIsolationStatus

type ServiceWorkerResponseSource

type ServiceWorkerResponseSource string

ServiceWorkerResponseSource source of serviceworker response.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ServiceWorkerResponseSource

const (
	ServiceWorkerResponseSourceCacheStorage ServiceWorkerResponseSource = "cache-storage"
	ServiceWorkerResponseSourceHTTPCache    ServiceWorkerResponseSource = "http-cache"
	ServiceWorkerResponseSourceFallbackCode ServiceWorkerResponseSource = "fallback-code"
	ServiceWorkerResponseSourceNetwork      ServiceWorkerResponseSource = "network"
)

ServiceWorkerResponseSource values.

func (ServiceWorkerResponseSource) String

String returns the ServiceWorkerResponseSource as string value.

type ServiceWorkerRouterInfo

type ServiceWorkerRouterInfo struct {
	RuleIDMatched     int64                     `json:"ruleIdMatched,omitempty,omitzero"`     // ID of the rule matched. If there is a matched rule, this field will be set, otherwiser no value will be set.
	MatchedSourceType ServiceWorkerRouterSource `json:"matchedSourceType,omitempty,omitzero"` // The router source of the matched rule. If there is a matched rule, this field will be set, otherwise no value will be set.
	ActualSourceType  ServiceWorkerRouterSource `json:"actualSourceType,omitempty,omitzero"`  // The actual router source used.
}

ServiceWorkerRouterInfo [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ServiceWorkerRouterInfo

type ServiceWorkerRouterSource

type ServiceWorkerRouterSource string

ServiceWorkerRouterSource source of service worker router.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-ServiceWorkerRouterSource

const (
	ServiceWorkerRouterSourceNetwork                    ServiceWorkerRouterSource = "network"
	ServiceWorkerRouterSourceCache                      ServiceWorkerRouterSource = "cache"
	ServiceWorkerRouterSourceFetchEvent                 ServiceWorkerRouterSource = "fetch-event"
	ServiceWorkerRouterSourceRaceNetworkAndFetchHandler ServiceWorkerRouterSource = "race-network-and-fetch-handler"
	ServiceWorkerRouterSourceRaceNetworkAndCache        ServiceWorkerRouterSource = "race-network-and-cache"
)

ServiceWorkerRouterSource values.

func (ServiceWorkerRouterSource) String

func (t ServiceWorkerRouterSource) String() string

String returns the ServiceWorkerRouterSource as string value.

type SetAttachDebugStackParams

type SetAttachDebugStackParams struct {
	Enabled bool `json:"enabled"` // Whether to attach a page script stack for debugging purpose.
}

SetAttachDebugStackParams are the parameters of the command Network.setAttachDebugStack.

type SetBlockedURLsParams

type SetBlockedURLsParams struct {
	URLPatterns []*BlockPattern `json:"urlPatterns,omitempty,omitzero"` // Patterns to match in the order in which they are given. These patterns also take precedence over any wildcard patterns defined in urls.
}

SetBlockedURLsParams are the parameters of the command Network.setBlockedURLs.

type SetBypassServiceWorkerParams

type SetBypassServiceWorkerParams struct {
	Bypass bool `json:"bypass"` // Bypass service worker and load from network.
}

SetBypassServiceWorkerParams are the parameters of the command Network.setBypassServiceWorker.

type SetCacheDisabledParams

type SetCacheDisabledParams struct {
	CacheDisabled bool `json:"cacheDisabled"` // Cache disabled state.
}

SetCacheDisabledParams are the parameters of the command Network.setCacheDisabled.

type SetCookieBlockedReason

type SetCookieBlockedReason string

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SetCookieBlockedReason

const (
	SetCookieBlockedReasonSecureOnly                               SetCookieBlockedReason = "SecureOnly"
	SetCookieBlockedReasonSameSiteStrict                           SetCookieBlockedReason = "SameSiteStrict"
	SetCookieBlockedReasonSameSiteLax                              SetCookieBlockedReason = "SameSiteLax"
	SetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax          SetCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"
	SetCookieBlockedReasonSameSiteNoneInsecure                     SetCookieBlockedReason = "SameSiteNoneInsecure"
	SetCookieBlockedReasonUserPreferences                          SetCookieBlockedReason = "UserPreferences"
	SetCookieBlockedReasonThirdPartyPhaseout                       SetCookieBlockedReason = "ThirdPartyPhaseout"
	SetCookieBlockedReasonSyntaxError                              SetCookieBlockedReason = "SyntaxError"
	SetCookieBlockedReasonSchemeNotSupported                       SetCookieBlockedReason = "SchemeNotSupported"
	SetCookieBlockedReasonOverwriteSecure                          SetCookieBlockedReason = "OverwriteSecure"
	SetCookieBlockedReasonInvalidDomain                            SetCookieBlockedReason = "InvalidDomain"
	SetCookieBlockedReasonInvalidPrefix                            SetCookieBlockedReason = "InvalidPrefix"
	SetCookieBlockedReasonUnknownError                             SetCookieBlockedReason = "UnknownError"
	SetCookieBlockedReasonSchemefulSameSiteStrict                  SetCookieBlockedReason = "SchemefulSameSiteStrict"
	SetCookieBlockedReasonSchemefulSameSiteLax                     SetCookieBlockedReason = "SchemefulSameSiteLax"
	SetCookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax SetCookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"
	SetCookieBlockedReasonNameValuePairExceedsMaxSize              SetCookieBlockedReason = "NameValuePairExceedsMaxSize"
	SetCookieBlockedReasonDisallowedCharacter                      SetCookieBlockedReason = "DisallowedCharacter"
	SetCookieBlockedReasonNoCookieContent                          SetCookieBlockedReason = "NoCookieContent"
)

SetCookieBlockedReason values.

func (SetCookieBlockedReason) String

func (t SetCookieBlockedReason) String() string

String returns the SetCookieBlockedReason as string value.

type SetCookieControlsParams

type SetCookieControlsParams struct {
	EnableThirdPartyCookieRestriction bool `json:"enableThirdPartyCookieRestriction"` // Whether 3pc restriction is enabled.
}

SetCookieControlsParams are the parameters of the command Network.setCookieControls.

type SetCookieParams

type SetCookieParams struct {
	Name         string              `json:"name"`                            // Cookie name.
	Value        string              `json:"value"`                           // Cookie value.
	URL          string              `json:"url,omitempty,omitzero"`          // The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, source port, and source scheme values of the created cookie.
	Domain       string              `json:"domain,omitempty,omitzero"`       // Cookie domain.
	Path         string              `json:"path,omitempty,omitzero"`         // Cookie path.
	Secure       *bool               `json:"secure,omitempty,omitzero"`       // True if cookie is secure.
	HTTPOnly     *bool               `json:"httpOnly,omitempty,omitzero"`     // True if cookie is http-only.
	SameSite     CookieSameSite      `json:"sameSite,omitempty,omitzero"`     // Cookie SameSite type.
	Expires      cdp.TimeSinceEpoch  `json:"expires,omitempty,omitzero"`      // Cookie expiration date, session cookie if not set
	Priority     CookiePriority      `json:"priority,omitempty,omitzero"`     // Cookie Priority type.
	SourceScheme CookieSourceScheme  `json:"sourceScheme,omitempty,omitzero"` // Cookie source scheme type.
	SourcePort   int64               `json:"sourcePort,omitempty,omitzero"`   // Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. This is a temporary ability and it will be removed in the future.
	PartitionKey *CookiePartitionKey `json:"partitionKey,omitempty,omitzero"` // Cookie partition key. If not set, the cookie will be set as not partitioned.
}

SetCookieParams are the parameters of the command Network.setCookie.

type SetCookiesParams

type SetCookiesParams struct {
	Cookies []*CookieParam `json:"cookies"` // Cookies to be set.
}

SetCookiesParams are the parameters of the command Network.setCookies.

type SetExtraHTTPHeadersParams

type SetExtraHTTPHeadersParams struct {
	Headers Headers `json:"headers"` // Map with extra HTTP headers.
}

SetExtraHTTPHeadersParams are the parameters of the command Network.setExtraHTTPHeaders.

type SignedCertificateTimestamp

type SignedCertificateTimestamp struct {
	Status             string  `json:"status"`             // Validation status.
	Origin             string  `json:"origin"`             // Origin.
	LogDescription     string  `json:"logDescription"`     // Log name / description.
	LogID              string  `json:"logId"`              // Log ID.
	Timestamp          float64 `json:"timestamp"`          // Issuance date. Unlike TimeSinceEpoch, this contains the number of milliseconds since January 1, 1970, UTC, not the number of seconds.
	HashAlgorithm      string  `json:"hashAlgorithm"`      // Hash algorithm.
	SignatureAlgorithm string  `json:"signatureAlgorithm"` // Signature algorithm.
	SignatureData      string  `json:"signatureData"`      // Signature data.
}

SignedCertificateTimestamp details of a signed certificate timestamp (SCT).

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedCertificateTimestamp

type SignedExchangeError

type SignedExchangeError struct {
	Message        string                   `json:"message"`                           // Error message.
	SignatureIndex int64                    `json:"signatureIndex,omitempty,omitzero"` // The index of the signature which caused the error.
	ErrorField     SignedExchangeErrorField `json:"errorField,omitempty,omitzero"`     // The field which caused the error.
}

SignedExchangeError information about a signed exchange response.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeError

type SignedExchangeErrorField

type SignedExchangeErrorField string

SignedExchangeErrorField field type for a signed exchange related error.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeErrorField

const (
	SignedExchangeErrorFieldSignatureSig         SignedExchangeErrorField = "signatureSig"
	SignedExchangeErrorFieldSignatureIntegrity   SignedExchangeErrorField = "signatureIntegrity"
	SignedExchangeErrorFieldSignatureCertURL     SignedExchangeErrorField = "signatureCertUrl"
	SignedExchangeErrorFieldSignatureCertSha256  SignedExchangeErrorField = "signatureCertSha256"
	SignedExchangeErrorFieldSignatureValidityURL SignedExchangeErrorField = "signatureValidityUrl"
	SignedExchangeErrorFieldSignatureTimestamps  SignedExchangeErrorField = "signatureTimestamps"
)

SignedExchangeErrorField values.

func (SignedExchangeErrorField) String

func (t SignedExchangeErrorField) String() string

String returns the SignedExchangeErrorField as string value.

type SignedExchangeHeader

type SignedExchangeHeader struct {
	RequestURL      string                     `json:"requestUrl"`      // Signed exchange request URL.
	ResponseCode    int64                      `json:"responseCode"`    // Signed exchange response code.
	ResponseHeaders Headers                    `json:"responseHeaders"` // Signed exchange response headers.
	Signatures      []*SignedExchangeSignature `json:"signatures"`      // Signed exchange response signature.
	HeaderIntegrity string                     `json:"headerIntegrity"` // Signed exchange header integrity hash in the form of sha256-<base64-hash-value>.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeHeader

type SignedExchangeInfo

type SignedExchangeInfo struct {
	OuterResponse   *Response              `json:"outerResponse"`                      // The outer response of signed HTTP exchange which was received from network.
	HasExtraInfo    bool                   `json:"hasExtraInfo"`                       // Whether network response for the signed exchange was accompanied by extra headers.
	Header          *SignedExchangeHeader  `json:"header,omitempty,omitzero"`          // Information about the signed exchange header.
	SecurityDetails *SecurityDetails       `json:"securityDetails,omitempty,omitzero"` // Security details for the signed exchange header.
	Errors          []*SignedExchangeError `json:"errors,omitempty,omitzero"`          // Errors occurred while handling the signed exchange.
}

SignedExchangeInfo information about a signed exchange response.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeInfo

type SignedExchangeSignature

type SignedExchangeSignature struct {
	Label        string   `json:"label"`                           // Signed exchange signature label.
	Signature    string   `json:"signature"`                       // The hex string of signed exchange signature.
	Integrity    string   `json:"integrity"`                       // Signed exchange signature integrity.
	CertURL      string   `json:"certUrl,omitempty,omitzero"`      // Signed exchange signature cert Url.
	CertSha256   string   `json:"certSha256,omitempty,omitzero"`   // The hex string of signed exchange signature cert sha256.
	ValidityURL  string   `json:"validityUrl"`                     // Signed exchange signature validity Url.
	Date         int64    `json:"date"`                            // Signed exchange signature date.
	Expires      int64    `json:"expires"`                         // Signed exchange signature expires.
	Certificates []string `json:"certificates,omitempty,omitzero"` // The encoded certificates.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-SignedExchangeSignature

type StreamResourceContentParams

type StreamResourceContentParams struct {
	RequestID RequestID `json:"requestId"` // Identifier of the request to stream.
}

StreamResourceContentParams are the parameters of the command Network.streamResourceContent.

type StreamResourceContentResult added in v0.157.3

type StreamResourceContentResult struct {
	BufferedData []byte `json:"bufferedData,omitempty,omitzero"` // Data that has been buffered until streaming is enabled.
}

StreamResourceContentResult is the result of the command Network.streamResourceContent.

type TerminationEventDetails

type TerminationEventDetails struct {
	DeletionReason TerminationEventDetailsDeletionReason `json:"deletionReason"` // The reason for a session being deleted.
}

TerminationEventDetails session event details specific to termination.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TerminationEventDetails

type TerminationEventDetailsDeletionReason added in v0.157.1

type TerminationEventDetailsDeletionReason string

TerminationEventDetailsDeletionReason the reason for a session being deleted.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TerminationEventDetails

const (
	TerminationEventDetailsDeletionReasonExpired                 TerminationEventDetailsDeletionReason = "Expired"
	TerminationEventDetailsDeletionReasonFailedToRestoreKey      TerminationEventDetailsDeletionReason = "FailedToRestoreKey"
	TerminationEventDetailsDeletionReasonFailedToUnwrapKey       TerminationEventDetailsDeletionReason = "FailedToUnwrapKey"
	TerminationEventDetailsDeletionReasonStoragePartitionCleared TerminationEventDetailsDeletionReason = "StoragePartitionCleared"
	TerminationEventDetailsDeletionReasonClearBrowsingData       TerminationEventDetailsDeletionReason = "ClearBrowsingData"
	TerminationEventDetailsDeletionReasonServerRequested         TerminationEventDetailsDeletionReason = "ServerRequested"
	TerminationEventDetailsDeletionReasonInvalidSessionParams    TerminationEventDetailsDeletionReason = "InvalidSessionParams"
	TerminationEventDetailsDeletionReasonRefreshFatalError       TerminationEventDetailsDeletionReason = "RefreshFatalError"
	TerminationEventDetailsDeletionReasonDevTools                TerminationEventDetailsDeletionReason = "DevTools"
	TerminationEventDetailsDeletionReasonReplaced                TerminationEventDetailsDeletionReason = "Replaced"
)

TerminationEventDetailsDeletionReason values.

func (TerminationEventDetailsDeletionReason) String added in v0.157.1

String returns the TerminationEventDetailsDeletionReason as string value.

type TrustTokenOperationDoneStatus added in v0.157.1

type TrustTokenOperationDoneStatus string

TrustTokenOperationDoneStatus detailed success or error status of the operation. 'AlreadyExists' also signifies a successful operation, as the result of the operation already exists und thus, the operation was abort preemptively (e.g. a cache hit).

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#event-trustTokenOperationDone

const (
	TrustTokenOperationDoneStatusOk                 TrustTokenOperationDoneStatus = "Ok"
	TrustTokenOperationDoneStatusInvalidArgument    TrustTokenOperationDoneStatus = "InvalidArgument"
	TrustTokenOperationDoneStatusMissingIssuerKeys  TrustTokenOperationDoneStatus = "MissingIssuerKeys"
	TrustTokenOperationDoneStatusFailedPrecondition TrustTokenOperationDoneStatus = "FailedPrecondition"
	TrustTokenOperationDoneStatusResourceExhausted  TrustTokenOperationDoneStatus = "ResourceExhausted"
	TrustTokenOperationDoneStatusAlreadyExists      TrustTokenOperationDoneStatus = "AlreadyExists"
	TrustTokenOperationDoneStatusResourceLimited    TrustTokenOperationDoneStatus = "ResourceLimited"
	TrustTokenOperationDoneStatusUnauthorized       TrustTokenOperationDoneStatus = "Unauthorized"
	TrustTokenOperationDoneStatusBadResponse        TrustTokenOperationDoneStatus = "BadResponse"
	TrustTokenOperationDoneStatusInternalError      TrustTokenOperationDoneStatus = "InternalError"
	TrustTokenOperationDoneStatusUnknownError       TrustTokenOperationDoneStatus = "UnknownError"
	TrustTokenOperationDoneStatusFulfilledLocally   TrustTokenOperationDoneStatus = "FulfilledLocally"
	TrustTokenOperationDoneStatusSiteIssuerLimit    TrustTokenOperationDoneStatus = "SiteIssuerLimit"
)

TrustTokenOperationDoneStatus values.

func (TrustTokenOperationDoneStatus) String added in v0.157.1

String returns the TrustTokenOperationDoneStatus as string value.

type TrustTokenOperationType

type TrustTokenOperationType string

TrustTokenOperationType [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TrustTokenOperationType

const (
	TrustTokenOperationTypeIssuance   TrustTokenOperationType = "Issuance"
	TrustTokenOperationTypeRedemption TrustTokenOperationType = "Redemption"
	TrustTokenOperationTypeSigning    TrustTokenOperationType = "Signing"
)

TrustTokenOperationType values.

func (TrustTokenOperationType) String

func (t TrustTokenOperationType) String() string

String returns the TrustTokenOperationType as string value.

type TrustTokenParams

type TrustTokenParams struct {
	Operation     TrustTokenOperationType       `json:"operation"`
	RefreshPolicy TrustTokenParamsRefreshPolicy `json:"refreshPolicy"`              // Only set for "token-redemption" operation and determine whether to request a fresh SRR or use a still valid cached SRR.
	Issuers       []string                      `json:"issuers,omitempty,omitzero"` // Origins of issuers from whom to request tokens or redemption records.
}

TrustTokenParams 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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TrustTokenParams

type TrustTokenParamsRefreshPolicy added in v0.157.1

type TrustTokenParamsRefreshPolicy string

TrustTokenParamsRefreshPolicy only set for "token-redemption" operation and determine whether to request a fresh SRR or use a still valid cached SRR.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-TrustTokenParams

const (
	TrustTokenParamsRefreshPolicyUseCached TrustTokenParamsRefreshPolicy = "UseCached"
	TrustTokenParamsRefreshPolicyRefresh   TrustTokenParamsRefreshPolicy = "Refresh"
)

TrustTokenParamsRefreshPolicy values.

func (TrustTokenParamsRefreshPolicy) String added in v0.157.1

String returns the TrustTokenParamsRefreshPolicy as string value.

type WebSocketFrame

type WebSocketFrame struct {
	Opcode      float64 `json:"opcode"`      // WebSocket message opcode.
	Mask        bool    `json:"mask"`        // WebSocket message mask.
	PayloadData []byte  `json:"payloadData"` // WebSocket message payload data. If the opcode is 1, this is a text message and payloadData is a UTF-8 string. If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-WebSocketFrame

func (*WebSocketFrame) UnmarshalJSON added in v0.157.3

func (r *WebSocketFrame) UnmarshalJSON(buf []byte) error

UnmarshalJSON decodes the value. The browser sends payloadData as text, or as base64 when r.Opcode != 1, and PayloadData holds the decoded bytes.

type WebSocketRequest

type WebSocketRequest struct {
	Headers Headers `json:"headers"` // HTTP request headers.
}

WebSocketRequest webSocket request data.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-WebSocketRequest

type WebSocketResponse

type WebSocketResponse struct {
	Status             int64   `json:"status"`                                // HTTP response status code.
	StatusText         string  `json:"statusText"`                            // HTTP response status text.
	Headers            Headers `json:"headers"`                               // HTTP response headers.
	HeadersText        string  `json:"headersText,omitempty,omitzero"`        // HTTP response headers text.
	RequestHeaders     Headers `json:"requestHeaders,omitempty,omitzero"`     // HTTP request headers.
	RequestHeadersText string  `json:"requestHeadersText,omitempty,omitzero"` // HTTP request headers text.
}

WebSocketResponse webSocket response data.

See: https://chromedevtools.github.io/devtools-protocol/tot/Network#type-WebSocketResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL