Documentation ¶
Index ¶
- Constants
- Variables
- func GetEventReply(event string) (json.Unmarshaler, bool)
- type AuthChallenge
- type AuthChallengeResponse
- type BlockedCookieWithReason
- type BlockedReason
- type BlockedSetCookieWithReason
- type CachedResource
- type CanClearBrowserCacheArgs
- type CanClearBrowserCacheReply
- type CanClearBrowserCookiesArgs
- type CanClearBrowserCookiesReply
- type CanEmulateNetworkConditionsArgs
- type CanEmulateNetworkConditionsReply
- type CertificateTransparencyCompliance
- type ClearBrowserCacheArgs
- type ClearBrowserCacheReply
- type ClearBrowserCookiesArgs
- type ClearBrowserCookiesReply
- type ConnectionType
- type ContinueInterceptedRequestArgs
- type ContinueInterceptedRequestReply
- type Cookie
- type CookieBlockedReason
- type CookieParam
- type CookiePriority
- type CookieSameSite
- type DataReceivedReply
- type DeleteCookiesArgs
- type DeleteCookiesReply
- type DisableArgs
- type DisableReply
- type EmulateNetworkConditionsArgs
- type EmulateNetworkConditionsReply
- type EnableArgs
- type EnableReply
- type ErrorReason
- type EventSourceMessageReceivedReply
- type GetAllCookiesArgs
- type GetAllCookiesReply
- type GetCertificateArgs
- type GetCertificateReply
- type GetCookiesArgs
- type GetCookiesReply
- type GetRequestPostDataArgs
- type GetRequestPostDataReply
- type GetResponseBodyArgs
- type GetResponseBodyForInterceptionArgs
- type GetResponseBodyForInterceptionReply
- type GetResponseBodyReply
- type Headers
- type Initiator
- type InterceptionID
- type InterceptionStage
- type LoaderID
- type LoadingFailedReply
- type LoadingFinishedReply
- type MonotonicTime
- type ReplayXHRArgs
- type ReplayXHRReply
- type Request
- type RequestID
- type RequestInterceptedReply
- type RequestPattern
- type RequestServedFromCacheReply
- type RequestWillBeSentExtraInfoReply
- type RequestWillBeSentReply
- type ResourceChangedPriorityReply
- type ResourcePriority
- type ResourceTiming
- type Response
- type ResponseReceivedExtraInfoReply
- type ResponseReceivedReply
- type SearchInResponseBodyArgs
- type SearchInResponseBodyReply
- type SecurityDetails
- type SetBlockedURLsArgs
- type SetBlockedURLsReply
- type SetBypassServiceWorkerArgs
- type SetBypassServiceWorkerReply
- type SetCacheDisabledArgs
- type SetCacheDisabledReply
- type SetCookieArgs
- type SetCookieBlockedReason
- type SetCookieReply
- type SetCookiesArgs
- type SetCookiesReply
- type SetDataSizeLimitsForTestArgs
- type SetDataSizeLimitsForTestReply
- type SetExtraHTTPHeadersArgs
- type SetExtraHTTPHeadersReply
- type SetRequestInterceptionArgs
- type SetRequestInterceptionReply
- type SignedCertificateTimestamp
- type SignedExchangeError
- type SignedExchangeErrorField
- type SignedExchangeHeader
- type SignedExchangeInfo
- type SignedExchangeReceivedReply
- type SignedExchangeSignature
- type TakeResponseBodyForInterceptionAsStreamArgs
- type TakeResponseBodyForInterceptionAsStreamReply
- type Unmarshaler
- type WebSocketClosedReply
- type WebSocketCreatedReply
- type WebSocketFrame
- type WebSocketFrameErrorReply
- type WebSocketFrameReceivedReply
- type WebSocketFrameSentReply
- type WebSocketHandshakeResponseReceivedReply
- type WebSocketRequest
- type WebSocketResponse
- type WebSocketWillSendHandshakeRequestReply
Constants ¶
const ( CommandNetworkCanClearBrowserCache = "Network.canClearBrowserCache" CommandNetworkCanClearBrowserCookies = "Network.canClearBrowserCookies" CommandNetworkCanEmulateNetworkConditions = "Network.canEmulateNetworkConditions" CommandNetworkClearBrowserCache = "Network.clearBrowserCache" CommandNetworkClearBrowserCookies = "Network.clearBrowserCookies" CommandNetworkContinueInterceptedRequest = "Network.continueInterceptedRequest" CommandNetworkDeleteCookies = "Network.deleteCookies" CommandNetworkDisable = "Network.disable" CommandNetworkEmulateNetworkConditions = "Network.emulateNetworkConditions" CommandNetworkEnable = "Network.enable" CommandNetworkGetAllCookies = "Network.getAllCookies" CommandNetworkGetCertificate = "Network.getCertificate" CommandNetworkGetCookies = "Network.getCookies" CommandNetworkGetResponseBody = "Network.getResponseBody" CommandNetworkGetRequestPostData = "Network.getRequestPostData" CommandNetworkGetResponseBodyForInterception = "Network.getResponseBodyForInterception" CommandNetworkTakeResponseBodyForInterceptionAsStream = "Network.takeResponseBodyForInterceptionAsStream" CommandNetworkReplayXHR = "Network.replayXHR" CommandNetworkSearchInResponseBody = "Network.searchInResponseBody" CommandNetworkSetBlockedURLs = "Network.setBlockedURLs" CommandNetworkSetBypassServiceWorker = "Network.setBypassServiceWorker" CommandNetworkSetCacheDisabled = "Network.setCacheDisabled" CommandNetworkSetCookie = "Network.setCookie" CommandNetworkSetCookies = "Network.setCookies" CommandNetworkSetDataSizeLimitsForTest = "Network.setDataSizeLimitsForTest" CommandNetworkSetExtraHTTPHeaders = "Network.setExtraHTTPHeaders" CommandNetworkSetRequestInterception = "Network.setRequestInterception" CommandNetworkSetUserAgentOverride = "Network.setUserAgentOverride" )
const ( EventNetworkDataReceived = "Network.dataReceived" EventNetworkEventSourceMessageReceived = "Network.eventSourceMessageReceived" EventNetworkLoadingFailed = "Network.loadingFailed" EventNetworkLoadingFinished = "Network.loadingFinished" EventNetworkRequestIntercepted = "Network.requestIntercepted" EventNetworkRequestServedFromCache = "Network.requestServedFromCache" EventNetworkRequestWillBeSent = "Network.requestWillBeSent" EventNetworkResourceChangedPriority = "Network.resourceChangedPriority" EventNetworkSignedExchangeReceived = "Network.signedExchangeReceived" EventNetworkResponseReceived = "Network.responseReceived" EventNetworkWebSocketClosed = "Network.webSocketClosed" EventNetworkWebSocketCreated = "Network.webSocketCreated" EventNetworkWebSocketFrameError = "Network.webSocketFrameError" EventNetworkWebSocketFrameReceived = "Network.webSocketFrameReceived" EventNetworkWebSocketFrameSent = "Network.webSocketFrameSent" EventNetworkWebSocketHandshakeResponseReceived = "Network.webSocketHandshakeResponseReceived" EventNetworkWebSocketWillSendHandshakeRequest = "Network.webSocketWillSendHandshakeRequest" EventNetworkRequestWillBeSentExtraInfo = "Network.requestWillBeSentExtraInfo" EventNetworkResponseReceivedExtraInfo = "Network.responseReceivedExtraInfo" )
Variables ¶
var EventConstants = map[string]Unmarshaler{ EventNetworkDataReceived: func() json.Unmarshaler { return &DataReceivedReply{} }, EventNetworkEventSourceMessageReceived: func() json.Unmarshaler { return &EventSourceMessageReceivedReply{} }, EventNetworkLoadingFailed: func() json.Unmarshaler { return &LoadingFailedReply{} }, EventNetworkLoadingFinished: func() json.Unmarshaler { return &LoadingFinishedReply{} }, EventNetworkRequestIntercepted: func() json.Unmarshaler { return &RequestInterceptedReply{} }, EventNetworkRequestServedFromCache: func() json.Unmarshaler { return &RequestServedFromCacheReply{} }, EventNetworkRequestWillBeSent: func() json.Unmarshaler { return &RequestWillBeSentReply{} }, EventNetworkResourceChangedPriority: func() json.Unmarshaler { return &ResourceChangedPriorityReply{} }, EventNetworkSignedExchangeReceived: func() json.Unmarshaler { return &SignedExchangeReceivedReply{} }, EventNetworkResponseReceived: func() json.Unmarshaler { return &ResponseReceivedReply{} }, EventNetworkWebSocketClosed: func() json.Unmarshaler { return &WebSocketClosedReply{} }, EventNetworkWebSocketCreated: func() json.Unmarshaler { return &WebSocketCreatedReply{} }, EventNetworkWebSocketFrameError: func() json.Unmarshaler { return &WebSocketFrameErrorReply{} }, EventNetworkWebSocketFrameReceived: func() json.Unmarshaler { return &WebSocketFrameReceivedReply{} }, EventNetworkWebSocketFrameSent: func() json.Unmarshaler { return &WebSocketFrameSentReply{} }, EventNetworkWebSocketHandshakeResponseReceived: func() json.Unmarshaler { return &WebSocketHandshakeResponseReceivedReply{} }, EventNetworkWebSocketWillSendHandshakeRequest: func() json.Unmarshaler { return &WebSocketWillSendHandshakeRequestReply{} }, EventNetworkRequestWillBeSentExtraInfo: func() json.Unmarshaler { return &RequestWillBeSentExtraInfoReply{} }, EventNetworkResponseReceivedExtraInfo: func() json.Unmarshaler { return &ResponseReceivedExtraInfoReply{} }, }
Functions ¶
func GetEventReply ¶
func GetEventReply(event string) (json.Unmarshaler, bool)
Types ¶
type AuthChallenge ¶
type AuthChallenge struct { // Source Source of the authentication challenge. // // Values: "Server", "Proxy". Source string `json:"source,omitempty"` 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.
Note: This type is experimental.
type AuthChallengeResponse ¶
type AuthChallengeResponse struct { // 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. // // Values: "Default", "CancelAuth", "ProvideCredentials". Response string `json:"response"` Username string `json:"username,omitempty"` // The username to provide, possibly empty. Should only be set if response is ProvideCredentials. Password string `json:"password,omitempty"` // The password to provide, possibly empty. Should only be set if response is ProvideCredentials. }
AuthChallengeResponse Response to an AuthChallenge.
Note: This type is experimental.
type BlockedCookieWithReason ¶
type BlockedCookieWithReason struct { BlockedReasons []CookieBlockedReason `json:"blockedReasons"` // The reason(s) the cookie was blocked. Cookie Cookie `json:"cookie"` // The cookie object representing the cookie which was not sent. }
BlockedCookieWithReason A cookie with was not sent with a request with the corresponding reason.
Note: This type is experimental.
type BlockedReason ¶
type BlockedReason string
BlockedReason The reason why request was blocked.
const ( BlockedReasonNotSet BlockedReason = "" BlockedReasonOther BlockedReason = "other" BlockedReasonCsp BlockedReason = "csp" BlockedReasonMixedContent BlockedReason = "mixed-content" BlockedReasonOrigin BlockedReason = "origin" BlockedReasonInspector BlockedReason = "inspector" BlockedReasonSubresourceFilter BlockedReason = "subresource-filter" BlockedReasonContentType BlockedReason = "content-type" BlockedReasonCollapsedByClient BlockedReason = "collapsed-by-client" BlockedReasonCoepFrameResourceNeedsCoepHeader BlockedReason = "coep-frame-resource-needs-coep-header" BlockedReasonCorpNotSameOrigin BlockedReason = "corp-not-same-origin" BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep" BlockedReasonCorpNotSameSite BlockedReason = "corp-not-same-site" )
BlockedReason as enums.
func (BlockedReason) String ¶
func (e BlockedReason) String() string
func (BlockedReason) Valid ¶
func (e BlockedReason) Valid() bool
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"` // 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.
Note: This type is experimental.
type CachedResource ¶
type CachedResource struct { URL string `json:"url"` // Resource URL. This is the url of the original network request. Type shared.ResourceType `json:"type"` // Type of this resource. Response *Response `json:"response,omitempty"` // Cached response data. BodySize float64 `json:"bodySize"` // Cached response body size. }
CachedResource Information about the cached resource.
type CanClearBrowserCacheArgs ¶
type CanClearBrowserCacheArgs struct { }
CanClearBrowserCacheArgs represents the arguments for CanClearBrowserCache in the Network domain.
func (*CanClearBrowserCacheArgs) MarshalJSON ¶
func (a *CanClearBrowserCacheArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for CanClearBrowserCache in the Network domain.
func (*CanClearBrowserCacheArgs) UnmarshalJSON ¶
func (a *CanClearBrowserCacheArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CanClearBrowserCache in the Network domain.
type CanClearBrowserCacheReply ¶
type CanClearBrowserCacheReply struct {
Result bool `json:"result"` // True if browser cache can be cleared.
}
CanClearBrowserCacheReply represents the return values for CanClearBrowserCache in the Network domain.
func (*CanClearBrowserCacheReply) GetFrameID ¶
func (a *CanClearBrowserCacheReply) GetFrameID() string
CanClearBrowserCacheReply returns the FrameID value for CanClearBrowserCache in the Network domain.
func (*CanClearBrowserCacheReply) MatchFrameID ¶
func (a *CanClearBrowserCacheReply) MatchFrameID(frameID string, m []byte) (bool, error)
CanClearBrowserCacheReply returns whether or not the FrameID matches the reply value for CanClearBrowserCache in the Network domain.
func (*CanClearBrowserCacheReply) UnmarshalJSON ¶
func (a *CanClearBrowserCacheReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CanClearBrowserCache in the Network domain.
type CanClearBrowserCookiesArgs ¶
type CanClearBrowserCookiesArgs struct { }
CanClearBrowserCookiesArgs represents the arguments for CanClearBrowserCookies in the Network domain.
func (*CanClearBrowserCookiesArgs) MarshalJSON ¶
func (a *CanClearBrowserCookiesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for CanClearBrowserCookies in the Network domain.
func (*CanClearBrowserCookiesArgs) UnmarshalJSON ¶
func (a *CanClearBrowserCookiesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CanClearBrowserCookies in the Network domain.
type CanClearBrowserCookiesReply ¶
type CanClearBrowserCookiesReply struct {
Result bool `json:"result"` // True if browser cookies can be cleared.
}
CanClearBrowserCookiesReply represents the return values for CanClearBrowserCookies in the Network domain.
func (*CanClearBrowserCookiesReply) GetFrameID ¶
func (a *CanClearBrowserCookiesReply) GetFrameID() string
CanClearBrowserCookiesReply returns the FrameID value for CanClearBrowserCookies in the Network domain.
func (*CanClearBrowserCookiesReply) MatchFrameID ¶
func (a *CanClearBrowserCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)
CanClearBrowserCookiesReply returns whether or not the FrameID matches the reply value for CanClearBrowserCookies in the Network domain.
func (*CanClearBrowserCookiesReply) UnmarshalJSON ¶
func (a *CanClearBrowserCookiesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CanClearBrowserCookies in the Network domain.
type CanEmulateNetworkConditionsArgs ¶
type CanEmulateNetworkConditionsArgs struct { }
CanEmulateNetworkConditionsArgs represents the arguments for CanEmulateNetworkConditions in the Network domain.
func (*CanEmulateNetworkConditionsArgs) MarshalJSON ¶
func (a *CanEmulateNetworkConditionsArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for CanEmulateNetworkConditions in the Network domain.
func (*CanEmulateNetworkConditionsArgs) UnmarshalJSON ¶
func (a *CanEmulateNetworkConditionsArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CanEmulateNetworkConditions in the Network domain.
type CanEmulateNetworkConditionsReply ¶
type CanEmulateNetworkConditionsReply struct {
Result bool `json:"result"` // True if emulation of network conditions is supported.
}
CanEmulateNetworkConditionsReply represents the return values for CanEmulateNetworkConditions in the Network domain.
func (*CanEmulateNetworkConditionsReply) GetFrameID ¶
func (a *CanEmulateNetworkConditionsReply) GetFrameID() string
CanEmulateNetworkConditionsReply returns the FrameID value for CanEmulateNetworkConditions in the Network domain.
func (*CanEmulateNetworkConditionsReply) MatchFrameID ¶
func (a *CanEmulateNetworkConditionsReply) MatchFrameID(frameID string, m []byte) (bool, error)
CanEmulateNetworkConditionsReply returns whether or not the FrameID matches the reply value for CanEmulateNetworkConditions in the Network domain.
func (*CanEmulateNetworkConditionsReply) UnmarshalJSON ¶
func (a *CanEmulateNetworkConditionsReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for CanEmulateNetworkConditions in the Network domain.
type CertificateTransparencyCompliance ¶
type CertificateTransparencyCompliance string
CertificateTransparencyCompliance Whether the request complied with Certificate Transparency policy.
const ( CertificateTransparencyComplianceNotSet CertificateTransparencyCompliance = "" CertificateTransparencyComplianceUnknown CertificateTransparencyCompliance = "unknown" CertificateTransparencyComplianceNotCompliant CertificateTransparencyCompliance = "not-compliant" CertificateTransparencyComplianceCompliant CertificateTransparencyCompliance = "compliant" )
CertificateTransparencyCompliance as enums.
func (CertificateTransparencyCompliance) String ¶
func (e CertificateTransparencyCompliance) String() string
func (CertificateTransparencyCompliance) Valid ¶
func (e CertificateTransparencyCompliance) Valid() bool
type ClearBrowserCacheArgs ¶
type ClearBrowserCacheArgs struct { }
ClearBrowserCacheArgs represents the arguments for ClearBrowserCache in the Network domain.
func (*ClearBrowserCacheArgs) MarshalJSON ¶
func (a *ClearBrowserCacheArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for ClearBrowserCache in the Network domain.
func (*ClearBrowserCacheArgs) UnmarshalJSON ¶
func (a *ClearBrowserCacheArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ClearBrowserCache in the Network domain.
type ClearBrowserCacheReply ¶
type ClearBrowserCacheReply struct { }
ClearBrowserCacheReply represents the return values for ClearBrowserCache in the Network domain.
func (*ClearBrowserCacheReply) GetFrameID ¶
func (a *ClearBrowserCacheReply) GetFrameID() string
ClearBrowserCacheReply returns the FrameID value for ClearBrowserCache in the Network domain.
func (*ClearBrowserCacheReply) MatchFrameID ¶
func (a *ClearBrowserCacheReply) MatchFrameID(frameID string, m []byte) (bool, error)
ClearBrowserCacheReply returns whether or not the FrameID matches the reply value for ClearBrowserCache in the Network domain.
func (*ClearBrowserCacheReply) UnmarshalJSON ¶
func (a *ClearBrowserCacheReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ClearBrowserCache in the Network domain.
type ClearBrowserCookiesArgs ¶
type ClearBrowserCookiesArgs struct { }
ClearBrowserCookiesArgs represents the arguments for ClearBrowserCookies in the Network domain.
func (*ClearBrowserCookiesArgs) MarshalJSON ¶
func (a *ClearBrowserCookiesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for ClearBrowserCookies in the Network domain.
func (*ClearBrowserCookiesArgs) UnmarshalJSON ¶
func (a *ClearBrowserCookiesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ClearBrowserCookies in the Network domain.
type ClearBrowserCookiesReply ¶
type ClearBrowserCookiesReply struct { }
ClearBrowserCookiesReply represents the return values for ClearBrowserCookies in the Network domain.
func (*ClearBrowserCookiesReply) GetFrameID ¶
func (a *ClearBrowserCookiesReply) GetFrameID() string
ClearBrowserCookiesReply returns the FrameID value for ClearBrowserCookies in the Network domain.
func (*ClearBrowserCookiesReply) MatchFrameID ¶
func (a *ClearBrowserCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)
ClearBrowserCookiesReply returns whether or not the FrameID matches the reply value for ClearBrowserCookies in the Network domain.
func (*ClearBrowserCookiesReply) UnmarshalJSON ¶
func (a *ClearBrowserCookiesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ClearBrowserCookies in the Network domain.
type ConnectionType ¶
type ConnectionType string
ConnectionType The underlying connection technology that the browser is supposedly using.
const ( ConnectionTypeNotSet ConnectionType = "" 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 as enums.
func (ConnectionType) String ¶
func (e ConnectionType) String() string
func (ConnectionType) Valid ¶
func (e ConnectionType) Valid() bool
type ContinueInterceptedRequestArgs ¶
type ContinueInterceptedRequestArgs struct { InterceptionID InterceptionID `json:"interceptionId"` // No description. ErrorReason *ErrorReason `json:"errorReason,omitempty"` // If set this causes the request to fail with the given reason. Passing `Aborted` for requests marked with `isNavigationRequest` also cancels the navigation. Must not be set in response to an authChallenge. RawResponse string `json:"rawResponse,omitempty"` // If set the requests completes using with the provided base64 encoded raw response, including HTTP status line and headers etc... Must not be set in response to an authChallenge. URL string `json:"url,omitempty"` // If set the request url will be modified in a way that's not observable by page. Must not be set in response to an authChallenge. Method string `json:"method,omitempty"` // If set this allows the request method to be overridden. Must not be set in response to an authChallenge. PostData string `json:"postData,omitempty"` // If set this allows postData to be set. Must not be set in response to an authChallenge. Headers *Headers `json:"headers,omitempty"` // If set this allows the request headers to be changed. Must not be set in response to an authChallenge. AuthChallengeResponse *AuthChallengeResponse `json:"authChallengeResponse,omitempty"` // Response to a requestIntercepted with an authChallenge. Must not be set otherwise. }
ContinueInterceptedRequestArgs represents the arguments for ContinueInterceptedRequest in the Network domain.
func (*ContinueInterceptedRequestArgs) MarshalJSON ¶
func (a *ContinueInterceptedRequestArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for ContinueInterceptedRequest in the Network domain.
func (*ContinueInterceptedRequestArgs) UnmarshalJSON ¶
func (a *ContinueInterceptedRequestArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ContinueInterceptedRequest in the Network domain.
type ContinueInterceptedRequestReply ¶
type ContinueInterceptedRequestReply struct { }
ContinueInterceptedRequestReply represents the return values for ContinueInterceptedRequest in the Network domain.
func (*ContinueInterceptedRequestReply) GetFrameID ¶
func (a *ContinueInterceptedRequestReply) GetFrameID() string
ContinueInterceptedRequestReply returns the FrameID value for ContinueInterceptedRequest in the Network domain.
func (*ContinueInterceptedRequestReply) MatchFrameID ¶
func (a *ContinueInterceptedRequestReply) MatchFrameID(frameID string, m []byte) (bool, error)
ContinueInterceptedRequestReply returns whether or not the FrameID matches the reply value for ContinueInterceptedRequest in the Network domain.
func (*ContinueInterceptedRequestReply) UnmarshalJSON ¶
func (a *ContinueInterceptedRequestReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ContinueInterceptedRequest in the Network domain.
type Cookie ¶
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. Size int `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"` // Cookie SameSite type. // Priority Cookie Priority // // Note: This property is experimental. Priority CookiePriority `json:"priority"` }
Cookie Cookie object
type CookieBlockedReason ¶
type CookieBlockedReason string
CookieBlockedReason Types of reasons why a cookie may not be sent with a request.
Note: This type is experimental.
const ( CookieBlockedReasonNotSet CookieBlockedReason = "" CookieBlockedReasonSecureOnly CookieBlockedReason = "SecureOnly" CookieBlockedReasonNotOnPath CookieBlockedReason = "NotOnPath" CookieBlockedReasonDomainMismatch CookieBlockedReason = "DomainMismatch" CookieBlockedReasonSameSiteStrict CookieBlockedReason = "SameSiteStrict" CookieBlockedReasonSameSiteLax CookieBlockedReason = "SameSiteLax" CookieBlockedReasonSameSiteUnspecifiedTreatedAsLax CookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax" CookieBlockedReasonSameSiteNoneInsecure CookieBlockedReason = "SameSiteNoneInsecure" CookieBlockedReasonUserPreferences CookieBlockedReason = "UserPreferences" CookieBlockedReasonUnknownError CookieBlockedReason = "UnknownError" )
CookieBlockedReason as enums.
func (CookieBlockedReason) String ¶
func (e CookieBlockedReason) String() string
func (CookieBlockedReason) Valid ¶
func (e CookieBlockedReason) Valid() bool
type CookieParam ¶
type CookieParam struct { Name string `json:"name"` // Cookie name. Value string `json:"value"` // Cookie value. URL string `json:"url,omitempty"` // The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. Domain string `json:"domain,omitempty"` // Cookie domain. Path string `json:"path,omitempty"` // Cookie path. Secure bool `json:"secure,omitempty"` // True if cookie is secure. HTTPOnly bool `json:"httpOnly,omitempty"` // True if cookie is http-only. SameSite *CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. Expires *shared.TimeSinceEpoch `json:"expires,omitempty"` // Cookie expiration date, session cookie if not set // Priority Cookie Priority. // // Note: This property is experimental. Priority *CookiePriority `json:"priority,omitempty"` }
CookieParam Cookie parameter object
type CookiePriority ¶
type CookiePriority string
CookiePriority Represents the cookie's 'Priority' status: https://tools.ietf.org/html/draft-west-cookie-priority-00
Note: This type is experimental.
const ( CookiePriorityNotSet CookiePriority = "" CookiePriorityLow CookiePriority = "Low" CookiePriorityMedium CookiePriority = "Medium" CookiePriorityHigh CookiePriority = "High" )
CookiePriority as enums.
func (CookiePriority) String ¶
func (e CookiePriority) String() string
func (CookiePriority) Valid ¶
func (e CookiePriority) Valid() bool
type CookieSameSite ¶
type CookieSameSite string
CookieSameSite Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies
const ( CookieSameSiteNotSet CookieSameSite = "" CookieSameSiteStrict CookieSameSite = "Strict" CookieSameSiteLax CookieSameSite = "Lax" CookieSameSiteNone CookieSameSite = "None" )
CookieSameSite as enums.
func (CookieSameSite) String ¶
func (e CookieSameSite) String() string
func (CookieSameSite) Valid ¶
func (e CookieSameSite) Valid() bool
type DataReceivedReply ¶
type DataReceivedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. DataLength int `json:"dataLength"` // Data chunk length. EncodedDataLength int `json:"encodedDataLength"` // Actual bytes received (might be less than dataLength for compressed encodings). }
DataReceivedReply is the reply for DataReceived events.
func (*DataReceivedReply) GetFrameID ¶
func (a *DataReceivedReply) GetFrameID() string
DataReceivedReply returns the FrameID for DataReceived in the Network domain.
func (*DataReceivedReply) MatchFrameID ¶
func (a *DataReceivedReply) MatchFrameID(frameID string, m []byte) (bool, error)
DataReceivedReply returns whether or not the FrameID matches the reply value for DataReceived in the Network domain.
func (*DataReceivedReply) UnmarshalJSON ¶
func (a *DataReceivedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DataReceived in the Network domain.
type DeleteCookiesArgs ¶
type DeleteCookiesArgs struct { Name string `json:"name"` // Name of the cookies to remove. URL string `json:"url,omitempty"` // If specified, deletes all the cookies with the given name where domain and path match provided URL. Domain string `json:"domain,omitempty"` // If specified, deletes only cookies with the exact domain. Path string `json:"path,omitempty"` // If specified, deletes only cookies with the exact path. }
DeleteCookiesArgs represents the arguments for DeleteCookies in the Network domain.
func (*DeleteCookiesArgs) MarshalJSON ¶
func (a *DeleteCookiesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for DeleteCookies in the Network domain.
func (*DeleteCookiesArgs) UnmarshalJSON ¶
func (a *DeleteCookiesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DeleteCookies in the Network domain.
type DeleteCookiesReply ¶
type DeleteCookiesReply struct { }
DeleteCookiesReply represents the return values for DeleteCookies in the Network domain.
func (*DeleteCookiesReply) GetFrameID ¶
func (a *DeleteCookiesReply) GetFrameID() string
DeleteCookiesReply returns the FrameID value for DeleteCookies in the Network domain.
func (*DeleteCookiesReply) MatchFrameID ¶
func (a *DeleteCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)
DeleteCookiesReply returns whether or not the FrameID matches the reply value for DeleteCookies in the Network domain.
func (*DeleteCookiesReply) UnmarshalJSON ¶
func (a *DeleteCookiesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for DeleteCookies in the Network domain.
type DisableArgs ¶
type DisableArgs struct { }
DisableArgs represents the arguments for Disable in the Network domain.
func (*DisableArgs) MarshalJSON ¶
func (a *DisableArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for Disable in the Network domain.
func (*DisableArgs) UnmarshalJSON ¶
func (a *DisableArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Disable in the Network domain.
type DisableReply ¶
type DisableReply struct { }
DisableReply represents the return values for Disable in the Network domain.
func (*DisableReply) GetFrameID ¶
func (a *DisableReply) GetFrameID() string
DisableReply returns the FrameID value for Disable in the Network domain.
func (*DisableReply) MatchFrameID ¶
func (a *DisableReply) MatchFrameID(frameID string, m []byte) (bool, error)
DisableReply returns whether or not the FrameID matches the reply value for Disable in the Network domain.
func (*DisableReply) UnmarshalJSON ¶
func (a *DisableReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Disable in the Network domain.
type EmulateNetworkConditionsArgs ¶
type EmulateNetworkConditionsArgs 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"` // Connection type if known. }
EmulateNetworkConditionsArgs represents the arguments for EmulateNetworkConditions in the Network domain.
func (*EmulateNetworkConditionsArgs) MarshalJSON ¶
func (a *EmulateNetworkConditionsArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for EmulateNetworkConditions in the Network domain.
func (*EmulateNetworkConditionsArgs) UnmarshalJSON ¶
func (a *EmulateNetworkConditionsArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for EmulateNetworkConditions in the Network domain.
type EmulateNetworkConditionsReply ¶
type EmulateNetworkConditionsReply struct { }
EmulateNetworkConditionsReply represents the return values for EmulateNetworkConditions in the Network domain.
func (*EmulateNetworkConditionsReply) GetFrameID ¶
func (a *EmulateNetworkConditionsReply) GetFrameID() string
EmulateNetworkConditionsReply returns the FrameID value for EmulateNetworkConditions in the Network domain.
func (*EmulateNetworkConditionsReply) MatchFrameID ¶
func (a *EmulateNetworkConditionsReply) MatchFrameID(frameID string, m []byte) (bool, error)
EmulateNetworkConditionsReply returns whether or not the FrameID matches the reply value for EmulateNetworkConditions in the Network domain.
func (*EmulateNetworkConditionsReply) UnmarshalJSON ¶
func (a *EmulateNetworkConditionsReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for EmulateNetworkConditions in the Network domain.
type EnableArgs ¶
type EnableArgs struct { // MaxTotalBufferSize Buffer size in bytes to use when preserving // network payloads (XHRs, etc). // // Note: This property is experimental. MaxTotalBufferSize int `json:"maxTotalBufferSize,omitempty"` // MaxResourceBufferSize Per-resource buffer size in bytes to use when // preserving network payloads (XHRs, etc). // // Note: This property is experimental. MaxResourceBufferSize int `json:"maxResourceBufferSize,omitempty"` MaxPostDataSize int `json:"maxPostDataSize,omitempty"` // Longest post body size (in bytes) that would be included in requestWillBeSent notification }
EnableArgs represents the arguments for Enable in the Network domain.
func (*EnableArgs) MarshalJSON ¶
func (a *EnableArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for Enable in the Network domain.
func (*EnableArgs) UnmarshalJSON ¶
func (a *EnableArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Enable in the Network domain.
type EnableReply ¶
type EnableReply struct { }
EnableReply represents the return values for Enable in the Network domain.
func (*EnableReply) GetFrameID ¶
func (a *EnableReply) GetFrameID() string
EnableReply returns the FrameID value for Enable in the Network domain.
func (*EnableReply) MatchFrameID ¶
func (a *EnableReply) MatchFrameID(frameID string, m []byte) (bool, error)
EnableReply returns whether or not the FrameID matches the reply value for Enable in the Network domain.
func (*EnableReply) UnmarshalJSON ¶
func (a *EnableReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for Enable in the Network domain.
type ErrorReason ¶
type ErrorReason string
ErrorReason Network level fetch failure reason.
const ( ErrorReasonNotSet ErrorReason = "" 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 as enums.
func (ErrorReason) String ¶
func (e ErrorReason) String() string
func (ErrorReason) Valid ¶
func (e ErrorReason) Valid() bool
type EventSourceMessageReceivedReply ¶
type EventSourceMessageReceivedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. EventName string `json:"eventName"` // Message type. EventID string `json:"eventId"` // Message identifier. Data string `json:"data"` // Message content. }
EventSourceMessageReceivedReply is the reply for EventSourceMessageReceived events.
func (*EventSourceMessageReceivedReply) GetFrameID ¶
func (a *EventSourceMessageReceivedReply) GetFrameID() string
EventSourceMessageReceivedReply returns the FrameID for EventSourceMessageReceived in the Network domain.
func (*EventSourceMessageReceivedReply) MatchFrameID ¶
func (a *EventSourceMessageReceivedReply) MatchFrameID(frameID string, m []byte) (bool, error)
EventSourceMessageReceivedReply returns whether or not the FrameID matches the reply value for EventSourceMessageReceived in the Network domain.
func (*EventSourceMessageReceivedReply) UnmarshalJSON ¶
func (a *EventSourceMessageReceivedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for EventSourceMessageReceived in the Network domain.
type GetAllCookiesArgs ¶
type GetAllCookiesArgs struct { }
GetAllCookiesArgs represents the arguments for GetAllCookies in the Network domain.
func (*GetAllCookiesArgs) MarshalJSON ¶
func (a *GetAllCookiesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetAllCookies in the Network domain.
func (*GetAllCookiesArgs) UnmarshalJSON ¶
func (a *GetAllCookiesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetAllCookies in the Network domain.
type GetAllCookiesReply ¶
type GetAllCookiesReply struct {
Cookies []Cookie `json:"cookies"` // Array of cookie objects.
}
GetAllCookiesReply represents the return values for GetAllCookies in the Network domain.
func (*GetAllCookiesReply) GetFrameID ¶
func (a *GetAllCookiesReply) GetFrameID() string
GetAllCookiesReply returns the FrameID value for GetAllCookies in the Network domain.
func (*GetAllCookiesReply) MatchFrameID ¶
func (a *GetAllCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetAllCookiesReply returns whether or not the FrameID matches the reply value for GetAllCookies in the Network domain.
func (*GetAllCookiesReply) UnmarshalJSON ¶
func (a *GetAllCookiesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetAllCookies in the Network domain.
type GetCertificateArgs ¶
type GetCertificateArgs struct {
Origin string `json:"origin"` // Origin to get certificate for.
}
GetCertificateArgs represents the arguments for GetCertificate in the Network domain.
func (*GetCertificateArgs) MarshalJSON ¶
func (a *GetCertificateArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetCertificate in the Network domain.
func (*GetCertificateArgs) UnmarshalJSON ¶
func (a *GetCertificateArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetCertificate in the Network domain.
type GetCertificateReply ¶
type GetCertificateReply struct {
TableNames []string `json:"tableNames"` // No description.
}
GetCertificateReply represents the return values for GetCertificate in the Network domain.
func (*GetCertificateReply) GetFrameID ¶
func (a *GetCertificateReply) GetFrameID() string
GetCertificateReply returns the FrameID value for GetCertificate in the Network domain.
func (*GetCertificateReply) MatchFrameID ¶
func (a *GetCertificateReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetCertificateReply returns whether or not the FrameID matches the reply value for GetCertificate in the Network domain.
func (*GetCertificateReply) UnmarshalJSON ¶
func (a *GetCertificateReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetCertificate in the Network domain.
type GetCookiesArgs ¶
type GetCookiesArgs struct {
URLs *[]string `json:"urls,omitempty"` // The list of URLs for which applicable cookies will be fetched
}
GetCookiesArgs represents the arguments for GetCookies in the Network domain.
func (*GetCookiesArgs) MarshalJSON ¶
func (a *GetCookiesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetCookies in the Network domain.
func (*GetCookiesArgs) UnmarshalJSON ¶
func (a *GetCookiesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetCookies in the Network domain.
type GetCookiesReply ¶
type GetCookiesReply struct {
Cookies []Cookie `json:"cookies"` // Array of cookie objects.
}
GetCookiesReply represents the return values for GetCookies in the Network domain.
func (*GetCookiesReply) GetFrameID ¶
func (a *GetCookiesReply) GetFrameID() string
GetCookiesReply returns the FrameID value for GetCookies in the Network domain.
func (*GetCookiesReply) MatchFrameID ¶
func (a *GetCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetCookiesReply returns whether or not the FrameID matches the reply value for GetCookies in the Network domain.
func (*GetCookiesReply) UnmarshalJSON ¶
func (a *GetCookiesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetCookies in the Network domain.
type GetRequestPostDataArgs ¶
type GetRequestPostDataArgs struct {
RequestID RequestID `json:"requestId"` // Identifier of the network request to get content for.
}
GetRequestPostDataArgs represents the arguments for GetRequestPostData in the Network domain.
func (*GetRequestPostDataArgs) MarshalJSON ¶
func (a *GetRequestPostDataArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetRequestPostData in the Network domain.
func (*GetRequestPostDataArgs) UnmarshalJSON ¶
func (a *GetRequestPostDataArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetRequestPostData in the Network domain.
type GetRequestPostDataReply ¶
type GetRequestPostDataReply struct {
PostData string `json:"postData"` // Request body string, omitting files from multipart requests
}
GetRequestPostDataReply represents the return values for GetRequestPostData in the Network domain.
func (*GetRequestPostDataReply) GetFrameID ¶
func (a *GetRequestPostDataReply) GetFrameID() string
GetRequestPostDataReply returns the FrameID value for GetRequestPostData in the Network domain.
func (*GetRequestPostDataReply) MatchFrameID ¶
func (a *GetRequestPostDataReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetRequestPostDataReply returns whether or not the FrameID matches the reply value for GetRequestPostData in the Network domain.
func (*GetRequestPostDataReply) UnmarshalJSON ¶
func (a *GetRequestPostDataReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetRequestPostData in the Network domain.
type GetResponseBodyArgs ¶
type GetResponseBodyArgs struct {
RequestID RequestID `json:"requestId"` // Identifier of the network request to get content for.
}
GetResponseBodyArgs represents the arguments for GetResponseBody in the Network domain.
func (*GetResponseBodyArgs) MarshalJSON ¶
func (a *GetResponseBodyArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetResponseBody in the Network domain.
func (*GetResponseBodyArgs) UnmarshalJSON ¶
func (a *GetResponseBodyArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResponseBody in the Network domain.
type GetResponseBodyForInterceptionArgs ¶
type GetResponseBodyForInterceptionArgs struct {
InterceptionID InterceptionID `json:"interceptionId"` // Identifier for the intercepted request to get body for.
}
GetResponseBodyForInterceptionArgs represents the arguments for GetResponseBodyForInterception in the Network domain.
func (*GetResponseBodyForInterceptionArgs) MarshalJSON ¶
func (a *GetResponseBodyForInterceptionArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for GetResponseBodyForInterception in the Network domain.
func (*GetResponseBodyForInterceptionArgs) UnmarshalJSON ¶
func (a *GetResponseBodyForInterceptionArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResponseBodyForInterception in the Network domain.
type GetResponseBodyForInterceptionReply ¶
type GetResponseBodyForInterceptionReply struct { Body string `json:"body"` // Response body. Base64Encoded bool `json:"base64Encoded"` // True, if content was sent as base64. }
GetResponseBodyForInterceptionReply represents the return values for GetResponseBodyForInterception in the Network domain.
func (*GetResponseBodyForInterceptionReply) GetFrameID ¶
func (a *GetResponseBodyForInterceptionReply) GetFrameID() string
GetResponseBodyForInterceptionReply returns the FrameID value for GetResponseBodyForInterception in the Network domain.
func (*GetResponseBodyForInterceptionReply) MatchFrameID ¶
func (a *GetResponseBodyForInterceptionReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetResponseBodyForInterceptionReply returns whether or not the FrameID matches the reply value for GetResponseBodyForInterception in the Network domain.
func (*GetResponseBodyForInterceptionReply) UnmarshalJSON ¶
func (a *GetResponseBodyForInterceptionReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResponseBodyForInterception in the Network domain.
type GetResponseBodyReply ¶
type GetResponseBodyReply struct { Body string `json:"body"` // Response body. Base64Encoded bool `json:"base64Encoded"` // True, if content was sent as base64. }
GetResponseBodyReply represents the return values for GetResponseBody in the Network domain.
func (*GetResponseBodyReply) GetFrameID ¶
func (a *GetResponseBodyReply) GetFrameID() string
GetResponseBodyReply returns the FrameID value for GetResponseBody in the Network domain.
func (*GetResponseBodyReply) MatchFrameID ¶
func (a *GetResponseBodyReply) MatchFrameID(frameID string, m []byte) (bool, error)
GetResponseBodyReply returns whether or not the FrameID matches the reply value for GetResponseBody in the Network domain.
func (*GetResponseBodyReply) UnmarshalJSON ¶
func (a *GetResponseBodyReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for GetResponseBody in the Network domain.
type Headers ¶
type Headers []byte
Headers Request / response headers as keys / values of JSON object.
func (Headers) MarshalJSON ¶
MarshalJSON copies behavior of json.RawMessage.
func (*Headers) UnmarshalJSON ¶
UnmarshalJSON copies behavior of json.RawMessage.
type Initiator ¶
type Initiator struct { // Type Type of this initiator. // // Values: "parser", "script", "preload", "SignedExchange", "other". Type string `json:"type"` Stack *runtime.StackTrace `json:"stack,omitempty"` // Initiator JavaScript stack trace, set for Script only. URL string `json:"url,omitempty"` // Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type. LineNumber float64 `json:"lineNumber,omitempty"` // Initiator line number, set for Parser type or for Script type (when script is importing module) (0-based). }
Initiator Information about the request initiator.
type InterceptionID ¶
type InterceptionID string
InterceptionID Unique intercepted request identifier.
type InterceptionStage ¶
type InterceptionStage string
InterceptionStage Stages of the interception to begin intercepting. Request will intercept before the request is sent. Response will intercept after the response is received.
Note: This type is experimental.
const ( InterceptionStageNotSet InterceptionStage = "" InterceptionStageRequest InterceptionStage = "Request" InterceptionStageHeadersReceived InterceptionStage = "HeadersReceived" )
InterceptionStage as enums.
func (InterceptionStage) String ¶
func (e InterceptionStage) String() string
func (InterceptionStage) Valid ¶
func (e InterceptionStage) Valid() bool
type LoadingFailedReply ¶
type LoadingFailedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. Type shared.ResourceType `json:"type"` // Resource type. ErrorText string `json:"errorText"` // User friendly error message. Canceled bool `json:"canceled,omitempty"` // True if loading was canceled. BlockedReason *BlockedReason `json:"blockedReason,omitempty"` // The reason why loading was blocked, if any. }
LoadingFailedReply is the reply for LoadingFailed events.
func (*LoadingFailedReply) GetFrameID ¶
func (a *LoadingFailedReply) GetFrameID() string
LoadingFailedReply returns the FrameID for LoadingFailed in the Network domain.
func (*LoadingFailedReply) MatchFrameID ¶
func (a *LoadingFailedReply) MatchFrameID(frameID string, m []byte) (bool, error)
LoadingFailedReply returns whether or not the FrameID matches the reply value for LoadingFailed in the Network domain.
func (*LoadingFailedReply) UnmarshalJSON ¶
func (a *LoadingFailedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for LoadingFailed in the Network domain.
type LoadingFinishedReply ¶
type LoadingFinishedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. EncodedDataLength float64 `json:"encodedDataLength"` // Total number of bytes received for this request. ShouldReportCorbBlocking bool `json:"shouldReportCorbBlocking,omitempty"` // Set when 1) response was blocked by Cross-Origin Read Blocking and also 2) this needs to be reported to the DevTools console. }
LoadingFinishedReply is the reply for LoadingFinished events.
func (*LoadingFinishedReply) GetFrameID ¶
func (a *LoadingFinishedReply) GetFrameID() string
LoadingFinishedReply returns the FrameID for LoadingFinished in the Network domain.
func (*LoadingFinishedReply) MatchFrameID ¶
func (a *LoadingFinishedReply) MatchFrameID(frameID string, m []byte) (bool, error)
LoadingFinishedReply returns whether or not the FrameID matches the reply value for LoadingFinished in the Network domain.
func (*LoadingFinishedReply) UnmarshalJSON ¶
func (a *LoadingFinishedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for LoadingFinished in the Network domain.
type MonotonicTime ¶
type MonotonicTime float64
MonotonicTime Monotonically increasing time in seconds since an arbitrary point in the past.
func (MonotonicTime) MarshalJSON ¶
func (t MonotonicTime) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler. Encodes to null if t is zero.
func (MonotonicTime) String ¶
func (t MonotonicTime) String() string
String calls (time.Time).String().
func (MonotonicTime) Time ¶
func (t MonotonicTime) Time() time.Time
Time parses the Unix time with millisecond accuracy.
func (*MonotonicTime) UnmarshalJSON ¶
func (t *MonotonicTime) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler.
type ReplayXHRArgs ¶
type ReplayXHRArgs struct {
RequestID RequestID `json:"requestId"` // Identifier of XHR to replay.
}
ReplayXHRArgs represents the arguments for ReplayXHR in the Network domain.
func (*ReplayXHRArgs) MarshalJSON ¶
func (a *ReplayXHRArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for ReplayXHR in the Network domain.
func (*ReplayXHRArgs) UnmarshalJSON ¶
func (a *ReplayXHRArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ReplayXHR in the Network domain.
type ReplayXHRReply ¶
type ReplayXHRReply struct { }
ReplayXHRReply represents the return values for ReplayXHR in the Network domain.
func (*ReplayXHRReply) GetFrameID ¶
func (a *ReplayXHRReply) GetFrameID() string
ReplayXHRReply returns the FrameID value for ReplayXHR in the Network domain.
func (*ReplayXHRReply) MatchFrameID ¶
func (a *ReplayXHRReply) MatchFrameID(frameID string, m []byte) (bool, error)
ReplayXHRReply returns whether or not the FrameID matches the reply value for ReplayXHR in the Network domain.
func (*ReplayXHRReply) UnmarshalJSON ¶
func (a *ReplayXHRReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ReplayXHR in the Network domain.
type Request ¶
type Request struct { URL string `json:"url"` // Request URL (without fragment). URLFragment string `json:"urlFragment,omitempty"` // Fragment of the requested URL starting with hash, if present. Method string `json:"method"` // HTTP request method. Headers Headers `json:"headers"` // HTTP request headers. PostData string `json:"postData,omitempty"` // HTTP POST request data. HasPostData bool `json:"hasPostData,omitempty"` // 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. MixedContentType *security.MixedContentType `json:"mixedContentType,omitempty"` // The mixed content type of the request. InitialPriority ResourcePriority `json:"initialPriority"` // Priority of the resource request at the time request is sent. // ReferrerPolicy The referrer policy of the request, as defined in // https://www.w3.org/TR/referrer-policy/ // // Values: "unsafe-url", "no-referrer-when-downgrade", "no-referrer", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin". ReferrerPolicy string `json:"referrerPolicy"` IsLinkPreload bool `json:"isLinkPreload,omitempty"` // Whether is loaded via link preload. }
Request HTTP request data.
type RequestInterceptedReply ¶
type RequestInterceptedReply struct { InterceptionID InterceptionID `json:"interceptionId"` // Each request the page makes will have a unique id, however if any redirects are encountered while processing that fetch, they will be reported with the same id as the original fetch. Likewise if HTTP authentication is needed then the same fetch id will be used. Request Request `json:"request"` // No description. FrameID shared.FrameID `json:"frameId"` // The id of the frame that initiated the request. ResourceType shared.ResourceType `json:"resourceType"` // How the requested resource will be used. IsDownload bool `json:"isDownload,omitempty"` // Set if the request is a navigation that will result in a download. Only present after response is received from the server (i.e. HeadersReceived stage). RedirectURL string `json:"redirectUrl,omitempty"` // Redirect location, only sent if a redirect was intercepted. AuthChallenge *AuthChallenge `json:"authChallenge,omitempty"` // Details of the Authorization Challenge encountered. If this is set then continueInterceptedRequest must contain an authChallengeResponse. ResponseErrorReason *ErrorReason `json:"responseErrorReason,omitempty"` // Response error if intercepted at response stage or if redirect occurred while intercepting request. ResponseStatusCode int `json:"responseStatusCode,omitempty"` // Response code if intercepted at response stage or if redirect occurred while intercepting request or auth retry occurred. ResponseHeaders *Headers `json:"responseHeaders,omitempty"` // Response headers if intercepted at the response stage or if redirect occurred while intercepting request or auth retry occurred. RequestID RequestID `json:"requestId,omitempty"` // If the intercepted request had a corresponding requestWillBeSent event fired for it, then this requestId will be the same as the requestId present in the requestWillBeSent event. }
RequestInterceptedReply is the reply for RequestIntercepted events.
func (*RequestInterceptedReply) GetFrameID ¶
func (a *RequestInterceptedReply) GetFrameID() string
RequestInterceptedReply returns the FrameID for RequestIntercepted in the Network domain.
func (*RequestInterceptedReply) MatchFrameID ¶
func (a *RequestInterceptedReply) MatchFrameID(frameID string, m []byte) (bool, error)
RequestInterceptedReply returns whether or not the FrameID matches the reply value for RequestIntercepted in the Network domain.
func (*RequestInterceptedReply) UnmarshalJSON ¶
func (a *RequestInterceptedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestIntercepted in the Network domain.
type RequestPattern ¶
type RequestPattern struct { URLPattern string `json:"urlPattern,omitempty"` // Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*". ResourceType *shared.ResourceType `json:"resourceType,omitempty"` // If set, only requests for matching resource types will be intercepted. InterceptionStage *InterceptionStage `json:"interceptionStage,omitempty"` // Stage at which to begin intercepting requests. Default is Request. }
RequestPattern Request pattern for interception.
Note: This type is experimental.
type RequestServedFromCacheReply ¶
type RequestServedFromCacheReply struct {
RequestID RequestID `json:"requestId"` // Request identifier.
}
RequestServedFromCacheReply is the reply for RequestServedFromCache events.
func (*RequestServedFromCacheReply) GetFrameID ¶
func (a *RequestServedFromCacheReply) GetFrameID() string
RequestServedFromCacheReply returns the FrameID for RequestServedFromCache in the Network domain.
func (*RequestServedFromCacheReply) MatchFrameID ¶
func (a *RequestServedFromCacheReply) MatchFrameID(frameID string, m []byte) (bool, error)
RequestServedFromCacheReply returns whether or not the FrameID matches the reply value for RequestServedFromCache in the Network domain.
func (*RequestServedFromCacheReply) UnmarshalJSON ¶
func (a *RequestServedFromCacheReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestServedFromCache in the Network domain.
type RequestWillBeSentExtraInfoReply ¶
type RequestWillBeSentExtraInfoReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Used to match this information to an existing requestWillBeSent event. BlockedCookies []BlockedCookieWithReason `json:"blockedCookies"` // A list of cookies which will not be sent with this request along with corresponding reasons for blocking. Headers Headers `json:"headers"` // Raw request headers as they will be sent over the wire. }
RequestWillBeSentExtraInfoReply is the reply for RequestWillBeSentExtraInfo events.
func (*RequestWillBeSentExtraInfoReply) GetFrameID ¶
func (a *RequestWillBeSentExtraInfoReply) GetFrameID() string
RequestWillBeSentExtraInfoReply returns the FrameID for RequestWillBeSentExtraInfo in the Network domain.
func (*RequestWillBeSentExtraInfoReply) MatchFrameID ¶
func (a *RequestWillBeSentExtraInfoReply) MatchFrameID(frameID string, m []byte) (bool, error)
RequestWillBeSentExtraInfoReply returns whether or not the FrameID matches the reply value for RequestWillBeSentExtraInfo in the Network domain.
func (*RequestWillBeSentExtraInfoReply) UnmarshalJSON ¶
func (a *RequestWillBeSentExtraInfoReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestWillBeSentExtraInfo in the Network domain.
type RequestWillBeSentReply ¶
type RequestWillBeSentReply struct { RequestID RequestID `json:"requestId"` // Request identifier. LoaderID 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 MonotonicTime `json:"timestamp"` // Timestamp. WallTime shared.TimeSinceEpoch `json:"wallTime"` // Timestamp. Initiator Initiator `json:"initiator"` // Request initiator. RedirectResponse *Response `json:"redirectResponse,omitempty"` // Redirect response data. Type *shared.ResourceType `json:"type,omitempty"` // Type of this resource. FrameID shared.FrameID `json:"frameId,omitempty"` // Frame identifier. HasUserGesture bool `json:"hasUserGesture,omitempty"` // Whether the request is initiated by a user gesture. Defaults to false. }
RequestWillBeSentReply is the reply for RequestWillBeSent events.
func (*RequestWillBeSentReply) GetFrameID ¶
func (a *RequestWillBeSentReply) GetFrameID() string
RequestWillBeSentReply returns the FrameID for RequestWillBeSent in the Network domain.
func (*RequestWillBeSentReply) MatchFrameID ¶
func (a *RequestWillBeSentReply) MatchFrameID(frameID string, m []byte) (bool, error)
RequestWillBeSentReply returns whether or not the FrameID matches the reply value for RequestWillBeSent in the Network domain.
func (*RequestWillBeSentReply) UnmarshalJSON ¶
func (a *RequestWillBeSentReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for RequestWillBeSent in the Network domain.
type ResourceChangedPriorityReply ¶
type ResourceChangedPriorityReply struct { RequestID RequestID `json:"requestId"` // Request identifier. NewPriority ResourcePriority `json:"newPriority"` // New priority Timestamp MonotonicTime `json:"timestamp"` // Timestamp. }
ResourceChangedPriorityReply is the reply for ResourceChangedPriority events.
func (*ResourceChangedPriorityReply) GetFrameID ¶
func (a *ResourceChangedPriorityReply) GetFrameID() string
ResourceChangedPriorityReply returns the FrameID for ResourceChangedPriority in the Network domain.
func (*ResourceChangedPriorityReply) MatchFrameID ¶
func (a *ResourceChangedPriorityReply) MatchFrameID(frameID string, m []byte) (bool, error)
ResourceChangedPriorityReply returns whether or not the FrameID matches the reply value for ResourceChangedPriority in the Network domain.
func (*ResourceChangedPriorityReply) UnmarshalJSON ¶
func (a *ResourceChangedPriorityReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ResourceChangedPriority in the Network domain.
type ResourcePriority ¶
type ResourcePriority string
ResourcePriority Loading priority of a resource request.
const ( ResourcePriorityNotSet ResourcePriority = "" ResourcePriorityVeryLow ResourcePriority = "VeryLow" ResourcePriorityLow ResourcePriority = "Low" ResourcePriorityMedium ResourcePriority = "Medium" ResourcePriorityHigh ResourcePriority = "High" ResourcePriorityVeryHigh ResourcePriority = "VeryHigh" )
ResourcePriority as enums.
func (ResourcePriority) String ¶
func (e ResourcePriority) String() string
func (ResourcePriority) Valid ¶
func (e ResourcePriority) Valid() bool
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 Started running ServiceWorker. // // Note: This property is experimental. WorkerStart float64 `json:"workerStart"` // WorkerReady Finished Starting ServiceWorker. // // Note: This property is experimental. WorkerReady float64 `json:"workerReady"` SendStart float64 `json:"sendStart"` // Started sending request. SendEnd float64 `json:"sendEnd"` // Finished sending request. // PushStart Time the server started pushing request. // // Note: This property is experimental. PushStart float64 `json:"pushStart"` // PushEnd Time the server finished pushing request. // // Note: This property is experimental. PushEnd float64 `json:"pushEnd"` ReceiveHeadersEnd float64 `json:"receiveHeadersEnd"` // Finished receiving response headers. }
ResourceTiming Timing information for the request.
type Response ¶
type Response struct { URL string `json:"url"` // Response URL. This URL can be different from CachedResource.url in case of redirect. Status int `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"` // HTTP response headers text. MimeType string `json:"mimeType"` // Resource mimeType as determined by the browser. RequestHeaders *Headers `json:"requestHeaders,omitempty"` // Refined HTTP request headers that were actually transmitted over the network. RequestHeadersText string `json:"requestHeadersText,omitempty"` // HTTP request headers text. 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"` // Remote IP address. RemotePort int `json:"remotePort,omitempty"` // Remote port. FromDiskCache bool `json:"fromDiskCache,omitempty"` // Specifies that the request was served from the disk cache. FromServiceWorker bool `json:"fromServiceWorker,omitempty"` // Specifies that the request was served from the ServiceWorker. FromPrefetchCache bool `json:"fromPrefetchCache,omitempty"` // Specifies that the request was served from the prefetch cache. EncodedDataLength float64 `json:"encodedDataLength"` // Total number of bytes received for this request so far. Timing *ResourceTiming `json:"timing,omitempty"` // Timing information for the given request. Protocol string `json:"protocol,omitempty"` // Protocol used to fetch this request. SecurityState security.State `json:"securityState"` // Security state of the request resource. SecurityDetails *SecurityDetails `json:"securityDetails,omitempty"` // Security details for the request. }
Response HTTP response data.
type ResponseReceivedExtraInfoReply ¶
type ResponseReceivedExtraInfoReply 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. HeadersText string `json:"headersText,omitempty"` // 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. }
ResponseReceivedExtraInfoReply is the reply for ResponseReceivedExtraInfo events.
func (*ResponseReceivedExtraInfoReply) GetFrameID ¶
func (a *ResponseReceivedExtraInfoReply) GetFrameID() string
ResponseReceivedExtraInfoReply returns the FrameID for ResponseReceivedExtraInfo in the Network domain.
func (*ResponseReceivedExtraInfoReply) MatchFrameID ¶
func (a *ResponseReceivedExtraInfoReply) MatchFrameID(frameID string, m []byte) (bool, error)
ResponseReceivedExtraInfoReply returns whether or not the FrameID matches the reply value for ResponseReceivedExtraInfo in the Network domain.
func (*ResponseReceivedExtraInfoReply) UnmarshalJSON ¶
func (a *ResponseReceivedExtraInfoReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ResponseReceivedExtraInfo in the Network domain.
type ResponseReceivedReply ¶
type ResponseReceivedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. LoaderID LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. Type shared.ResourceType `json:"type"` // Resource type. Response Response `json:"response"` // Response data. FrameID shared.FrameID `json:"frameId,omitempty"` // Frame identifier. }
ResponseReceivedReply is the reply for ResponseReceived events.
func (*ResponseReceivedReply) GetFrameID ¶
func (a *ResponseReceivedReply) GetFrameID() string
ResponseReceivedReply returns the FrameID for ResponseReceived in the Network domain.
func (*ResponseReceivedReply) MatchFrameID ¶
func (a *ResponseReceivedReply) MatchFrameID(frameID string, m []byte) (bool, error)
ResponseReceivedReply returns whether or not the FrameID matches the reply value for ResponseReceived in the Network domain.
func (*ResponseReceivedReply) UnmarshalJSON ¶
func (a *ResponseReceivedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for ResponseReceived in the Network domain.
type SearchInResponseBodyArgs ¶
type SearchInResponseBodyArgs 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"` // If true, search is case sensitive. IsRegex bool `json:"isRegex,omitempty"` // If true, treats string parameter as regex. }
SearchInResponseBodyArgs represents the arguments for SearchInResponseBody in the Network domain.
func (*SearchInResponseBodyArgs) MarshalJSON ¶
func (a *SearchInResponseBodyArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SearchInResponseBody in the Network domain.
func (*SearchInResponseBodyArgs) UnmarshalJSON ¶
func (a *SearchInResponseBodyArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SearchInResponseBody in the Network domain.
type SearchInResponseBodyReply ¶
type SearchInResponseBodyReply struct {
Result []debugger.SearchMatch `json:"result"` // List of search matches.
}
SearchInResponseBodyReply represents the return values for SearchInResponseBody in the Network domain.
func (*SearchInResponseBodyReply) GetFrameID ¶
func (a *SearchInResponseBodyReply) GetFrameID() string
SearchInResponseBodyReply returns the FrameID value for SearchInResponseBody in the Network domain.
func (*SearchInResponseBodyReply) MatchFrameID ¶
func (a *SearchInResponseBodyReply) MatchFrameID(frameID string, m []byte) (bool, error)
SearchInResponseBodyReply returns whether or not the FrameID matches the reply value for SearchInResponseBody in the Network domain.
func (*SearchInResponseBodyReply) UnmarshalJSON ¶
func (a *SearchInResponseBodyReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SearchInResponseBody in the Network domain.
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"` // (EC)DH group used by the connection, if applicable. Cipher string `json:"cipher"` // Cipher name. MAC string `json:"mac,omitempty"` // 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 shared.TimeSinceEpoch `json:"validFrom"` // Certificate valid from date. ValidTo shared.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 }
SecurityDetails Security details about a request.
type SetBlockedURLsArgs ¶
type SetBlockedURLsArgs struct {
URLs []string `json:"urls"` // URL patterns to block. Wildcards ('*') are allowed.
}
SetBlockedURLsArgs represents the arguments for SetBlockedURLs in the Network domain.
func (*SetBlockedURLsArgs) MarshalJSON ¶
func (a *SetBlockedURLsArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetBlockedURLs in the Network domain.
func (*SetBlockedURLsArgs) UnmarshalJSON ¶
func (a *SetBlockedURLsArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetBlockedURLs in the Network domain.
type SetBlockedURLsReply ¶
type SetBlockedURLsReply struct { }
SetBlockedURLsReply represents the return values for SetBlockedURLs in the Network domain.
func (*SetBlockedURLsReply) GetFrameID ¶
func (a *SetBlockedURLsReply) GetFrameID() string
SetBlockedURLsReply returns the FrameID value for SetBlockedURLs in the Network domain.
func (*SetBlockedURLsReply) MatchFrameID ¶
func (a *SetBlockedURLsReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetBlockedURLsReply returns whether or not the FrameID matches the reply value for SetBlockedURLs in the Network domain.
func (*SetBlockedURLsReply) UnmarshalJSON ¶
func (a *SetBlockedURLsReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetBlockedURLs in the Network domain.
type SetBypassServiceWorkerArgs ¶
type SetBypassServiceWorkerArgs struct {
Bypass bool `json:"bypass"` // Bypass service worker and load from network.
}
SetBypassServiceWorkerArgs represents the arguments for SetBypassServiceWorker in the Network domain.
func (*SetBypassServiceWorkerArgs) MarshalJSON ¶
func (a *SetBypassServiceWorkerArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetBypassServiceWorker in the Network domain.
func (*SetBypassServiceWorkerArgs) UnmarshalJSON ¶
func (a *SetBypassServiceWorkerArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetBypassServiceWorker in the Network domain.
type SetBypassServiceWorkerReply ¶
type SetBypassServiceWorkerReply struct { }
SetBypassServiceWorkerReply represents the return values for SetBypassServiceWorker in the Network domain.
func (*SetBypassServiceWorkerReply) GetFrameID ¶
func (a *SetBypassServiceWorkerReply) GetFrameID() string
SetBypassServiceWorkerReply returns the FrameID value for SetBypassServiceWorker in the Network domain.
func (*SetBypassServiceWorkerReply) MatchFrameID ¶
func (a *SetBypassServiceWorkerReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetBypassServiceWorkerReply returns whether or not the FrameID matches the reply value for SetBypassServiceWorker in the Network domain.
func (*SetBypassServiceWorkerReply) UnmarshalJSON ¶
func (a *SetBypassServiceWorkerReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetBypassServiceWorker in the Network domain.
type SetCacheDisabledArgs ¶
type SetCacheDisabledArgs struct {
CacheDisabled bool `json:"cacheDisabled"` // Cache disabled state.
}
SetCacheDisabledArgs represents the arguments for SetCacheDisabled in the Network domain.
func (*SetCacheDisabledArgs) MarshalJSON ¶
func (a *SetCacheDisabledArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetCacheDisabled in the Network domain.
func (*SetCacheDisabledArgs) UnmarshalJSON ¶
func (a *SetCacheDisabledArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetCacheDisabled in the Network domain.
type SetCacheDisabledReply ¶
type SetCacheDisabledReply struct { }
SetCacheDisabledReply represents the return values for SetCacheDisabled in the Network domain.
func (*SetCacheDisabledReply) GetFrameID ¶
func (a *SetCacheDisabledReply) GetFrameID() string
SetCacheDisabledReply returns the FrameID value for SetCacheDisabled in the Network domain.
func (*SetCacheDisabledReply) MatchFrameID ¶
func (a *SetCacheDisabledReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetCacheDisabledReply returns whether or not the FrameID matches the reply value for SetCacheDisabled in the Network domain.
func (*SetCacheDisabledReply) UnmarshalJSON ¶
func (a *SetCacheDisabledReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetCacheDisabled in the Network domain.
type SetCookieArgs ¶
type SetCookieArgs struct { Name string `json:"name"` // Cookie name. Value string `json:"value"` // Cookie value. URL string `json:"url,omitempty"` // The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. Domain string `json:"domain,omitempty"` // Cookie domain. Path string `json:"path,omitempty"` // Cookie path. Secure bool `json:"secure,omitempty"` // True if cookie is secure. HTTPOnly bool `json:"httpOnly,omitempty"` // True if cookie is http-only. SameSite *CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. Expires *shared.TimeSinceEpoch `json:"expires,omitempty"` // Cookie expiration date, session cookie if not set // Priority Cookie Priority type. // // Note: This property is experimental. Priority *CookiePriority `json:"priority,omitempty"` }
SetCookieArgs represents the arguments for SetCookie in the Network domain.
func (*SetCookieArgs) MarshalJSON ¶
func (a *SetCookieArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetCookie in the Network domain.
func (*SetCookieArgs) UnmarshalJSON ¶
func (a *SetCookieArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetCookie in the Network domain.
type SetCookieBlockedReason ¶
type SetCookieBlockedReason string
SetCookieBlockedReason Types of reasons why a cookie may not be stored from a response.
Note: This type is experimental.
const ( SetCookieBlockedReasonNotSet SetCookieBlockedReason = "" SetCookieBlockedReasonSecureOnly SetCookieBlockedReason = "SecureOnly" SetCookieBlockedReasonSameSiteStrict SetCookieBlockedReason = "SameSiteStrict" SetCookieBlockedReasonSameSiteLax SetCookieBlockedReason = "SameSiteLax" SetCookieBlockedReasonSameSiteUnspecifiedTreatedAsLax SetCookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax" SetCookieBlockedReasonSameSiteNoneInsecure SetCookieBlockedReason = "SameSiteNoneInsecure" SetCookieBlockedReasonUserPreferences SetCookieBlockedReason = "UserPreferences" SetCookieBlockedReasonSyntaxError SetCookieBlockedReason = "SyntaxError" SetCookieBlockedReasonSchemeNotSupported SetCookieBlockedReason = "SchemeNotSupported" SetCookieBlockedReasonOverwriteSecure SetCookieBlockedReason = "OverwriteSecure" SetCookieBlockedReasonInvalidDomain SetCookieBlockedReason = "InvalidDomain" SetCookieBlockedReasonInvalidPrefix SetCookieBlockedReason = "InvalidPrefix" SetCookieBlockedReasonUnknownError SetCookieBlockedReason = "UnknownError" )
SetCookieBlockedReason as enums.
func (SetCookieBlockedReason) String ¶
func (e SetCookieBlockedReason) String() string
func (SetCookieBlockedReason) Valid ¶
func (e SetCookieBlockedReason) Valid() bool
type SetCookieReply ¶
type SetCookieReply struct {
Success bool `json:"success"` // True if successfully set cookie.
}
SetCookieReply represents the return values for SetCookie in the Network domain.
func (*SetCookieReply) GetFrameID ¶
func (a *SetCookieReply) GetFrameID() string
SetCookieReply returns the FrameID value for SetCookie in the Network domain.
func (*SetCookieReply) MatchFrameID ¶
func (a *SetCookieReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetCookieReply returns whether or not the FrameID matches the reply value for SetCookie in the Network domain.
func (*SetCookieReply) UnmarshalJSON ¶
func (a *SetCookieReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetCookie in the Network domain.
type SetCookiesArgs ¶
type SetCookiesArgs struct {
Cookies []CookieParam `json:"cookies"` // Cookies to be set.
}
SetCookiesArgs represents the arguments for SetCookies in the Network domain.
func (*SetCookiesArgs) MarshalJSON ¶
func (a *SetCookiesArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetCookies in the Network domain.
func (*SetCookiesArgs) UnmarshalJSON ¶
func (a *SetCookiesArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetCookies in the Network domain.
type SetCookiesReply ¶
type SetCookiesReply struct { }
SetCookiesReply represents the return values for SetCookies in the Network domain.
func (*SetCookiesReply) GetFrameID ¶
func (a *SetCookiesReply) GetFrameID() string
SetCookiesReply returns the FrameID value for SetCookies in the Network domain.
func (*SetCookiesReply) MatchFrameID ¶
func (a *SetCookiesReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetCookiesReply returns whether or not the FrameID matches the reply value for SetCookies in the Network domain.
func (*SetCookiesReply) UnmarshalJSON ¶
func (a *SetCookiesReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetCookies in the Network domain.
type SetDataSizeLimitsForTestArgs ¶
type SetDataSizeLimitsForTestArgs struct { MaxTotalSize int `json:"maxTotalSize"` // Maximum total buffer size. MaxResourceSize int `json:"maxResourceSize"` // Maximum per-resource size. }
SetDataSizeLimitsForTestArgs represents the arguments for SetDataSizeLimitsForTest in the Network domain.
func (*SetDataSizeLimitsForTestArgs) MarshalJSON ¶
func (a *SetDataSizeLimitsForTestArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetDataSizeLimitsForTest in the Network domain.
func (*SetDataSizeLimitsForTestArgs) UnmarshalJSON ¶
func (a *SetDataSizeLimitsForTestArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetDataSizeLimitsForTest in the Network domain.
type SetDataSizeLimitsForTestReply ¶
type SetDataSizeLimitsForTestReply struct { }
SetDataSizeLimitsForTestReply represents the return values for SetDataSizeLimitsForTest in the Network domain.
func (*SetDataSizeLimitsForTestReply) GetFrameID ¶
func (a *SetDataSizeLimitsForTestReply) GetFrameID() string
SetDataSizeLimitsForTestReply returns the FrameID value for SetDataSizeLimitsForTest in the Network domain.
func (*SetDataSizeLimitsForTestReply) MatchFrameID ¶
func (a *SetDataSizeLimitsForTestReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetDataSizeLimitsForTestReply returns whether or not the FrameID matches the reply value for SetDataSizeLimitsForTest in the Network domain.
func (*SetDataSizeLimitsForTestReply) UnmarshalJSON ¶
func (a *SetDataSizeLimitsForTestReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetDataSizeLimitsForTest in the Network domain.
type SetExtraHTTPHeadersArgs ¶
type SetExtraHTTPHeadersArgs struct {
Headers Headers `json:"headers"` // Map with extra HTTP headers.
}
SetExtraHTTPHeadersArgs represents the arguments for SetExtraHTTPHeaders in the Network domain.
func (*SetExtraHTTPHeadersArgs) MarshalJSON ¶
func (a *SetExtraHTTPHeadersArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetExtraHTTPHeaders in the Network domain.
func (*SetExtraHTTPHeadersArgs) UnmarshalJSON ¶
func (a *SetExtraHTTPHeadersArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetExtraHTTPHeaders in the Network domain.
type SetExtraHTTPHeadersReply ¶
type SetExtraHTTPHeadersReply struct { }
SetExtraHTTPHeadersReply represents the return values for SetExtraHTTPHeaders in the Network domain.
func (*SetExtraHTTPHeadersReply) GetFrameID ¶
func (a *SetExtraHTTPHeadersReply) GetFrameID() string
SetExtraHTTPHeadersReply returns the FrameID value for SetExtraHTTPHeaders in the Network domain.
func (*SetExtraHTTPHeadersReply) MatchFrameID ¶
func (a *SetExtraHTTPHeadersReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetExtraHTTPHeadersReply returns whether or not the FrameID matches the reply value for SetExtraHTTPHeaders in the Network domain.
func (*SetExtraHTTPHeadersReply) UnmarshalJSON ¶
func (a *SetExtraHTTPHeadersReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetExtraHTTPHeaders in the Network domain.
type SetRequestInterceptionArgs ¶
type SetRequestInterceptionArgs struct {
Patterns []RequestPattern `json:"patterns"` // Requests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.
}
SetRequestInterceptionArgs represents the arguments for SetRequestInterception in the Network domain.
func (*SetRequestInterceptionArgs) MarshalJSON ¶
func (a *SetRequestInterceptionArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for SetRequestInterception in the Network domain.
func (*SetRequestInterceptionArgs) UnmarshalJSON ¶
func (a *SetRequestInterceptionArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetRequestInterception in the Network domain.
type SetRequestInterceptionReply ¶
type SetRequestInterceptionReply struct { }
SetRequestInterceptionReply represents the return values for SetRequestInterception in the Network domain.
func (*SetRequestInterceptionReply) GetFrameID ¶
func (a *SetRequestInterceptionReply) GetFrameID() string
SetRequestInterceptionReply returns the FrameID value for SetRequestInterception in the Network domain.
func (*SetRequestInterceptionReply) MatchFrameID ¶
func (a *SetRequestInterceptionReply) MatchFrameID(frameID string, m []byte) (bool, error)
SetRequestInterceptionReply returns whether or not the FrameID matches the reply value for SetRequestInterception in the Network domain.
func (*SetRequestInterceptionReply) UnmarshalJSON ¶
func (a *SetRequestInterceptionReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SetRequestInterception in the Network domain.
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 shared.TimeSinceEpoch `json:"timestamp"` // Issuance date. 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).
type SignedExchangeError ¶
type SignedExchangeError struct { Message string `json:"message"` // Error message. SignatureIndex int `json:"signatureIndex,omitempty"` // The index of the signature which caused the error. ErrorField *SignedExchangeErrorField `json:"errorField,omitempty"` // The field which caused the error. }
SignedExchangeError Information about a signed exchange response.
Note: This type is experimental.
type SignedExchangeErrorField ¶
type SignedExchangeErrorField string
SignedExchangeErrorField Field type for a signed exchange related error.
Note: This type is experimental.
const ( SignedExchangeErrorFieldNotSet SignedExchangeErrorField = "" SignedExchangeErrorFieldSignatureSig SignedExchangeErrorField = "signatureSig" SignedExchangeErrorFieldSignatureIntegrity SignedExchangeErrorField = "signatureIntegrity" SignedExchangeErrorFieldSignatureCertURL SignedExchangeErrorField = "signatureCertUrl" SignedExchangeErrorFieldSignatureCertSha256 SignedExchangeErrorField = "signatureCertSha256" SignedExchangeErrorFieldSignatureValidityURL SignedExchangeErrorField = "signatureValidityUrl" SignedExchangeErrorFieldSignatureTimestamps SignedExchangeErrorField = "signatureTimestamps" )
SignedExchangeErrorField as enums.
func (SignedExchangeErrorField) String ¶
func (e SignedExchangeErrorField) String() string
func (SignedExchangeErrorField) Valid ¶
func (e SignedExchangeErrorField) Valid() bool
type SignedExchangeHeader ¶
type SignedExchangeHeader struct { RequestURL string `json:"requestUrl"` // Signed exchange request URL. ResponseCode int `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
Note: This type is experimental.
type SignedExchangeInfo ¶
type SignedExchangeInfo struct { OuterResponse Response `json:"outerResponse"` // The outer response of signed HTTP exchange which was received from network. Header *SignedExchangeHeader `json:"header,omitempty"` // Information about the signed exchange header. SecurityDetails *SecurityDetails `json:"securityDetails,omitempty"` // Security details for the signed exchange header. Errors *[]SignedExchangeError `json:"errors,omitempty"` // Errors occurred while handling the signed exchagne. }
SignedExchangeInfo Information about a signed exchange response.
Note: This type is experimental.
type SignedExchangeReceivedReply ¶
type SignedExchangeReceivedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Info SignedExchangeInfo `json:"info"` // Information about the signed exchange response. }
SignedExchangeReceivedReply is the reply for SignedExchangeReceived events.
func (*SignedExchangeReceivedReply) GetFrameID ¶
func (a *SignedExchangeReceivedReply) GetFrameID() string
SignedExchangeReceivedReply returns the FrameID for SignedExchangeReceived in the Network domain.
func (*SignedExchangeReceivedReply) MatchFrameID ¶
func (a *SignedExchangeReceivedReply) MatchFrameID(frameID string, m []byte) (bool, error)
SignedExchangeReceivedReply returns whether or not the FrameID matches the reply value for SignedExchangeReceived in the Network domain.
func (*SignedExchangeReceivedReply) UnmarshalJSON ¶
func (a *SignedExchangeReceivedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for SignedExchangeReceived in the Network domain.
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"` // Signed exchange signature cert Url. CertSha256 string `json:"certSha256,omitempty"` // The hex string of signed exchange signature cert sha256. ValidityURL string `json:"validityUrl"` // Signed exchange signature validity Url. Date int `json:"date"` // Signed exchange signature date. Expires int `json:"expires"` // Signed exchange signature expires. Certificates *[]string `json:"certificates,omitempty"` // 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
Note: This type is experimental.
type TakeResponseBodyForInterceptionAsStreamArgs ¶
type TakeResponseBodyForInterceptionAsStreamArgs struct {
InterceptionID InterceptionID `json:"interceptionId"` // No description.
}
TakeResponseBodyForInterceptionAsStreamArgs represents the arguments for TakeResponseBodyForInterceptionAsStream in the Network domain.
func (*TakeResponseBodyForInterceptionAsStreamArgs) MarshalJSON ¶
func (a *TakeResponseBodyForInterceptionAsStreamArgs) MarshalJSON() ([]byte, error)
Marshall the byte array into a return value for TakeResponseBodyForInterceptionAsStream in the Network domain.
func (*TakeResponseBodyForInterceptionAsStreamArgs) UnmarshalJSON ¶
func (a *TakeResponseBodyForInterceptionAsStreamArgs) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for TakeResponseBodyForInterceptionAsStream in the Network domain.
type TakeResponseBodyForInterceptionAsStreamReply ¶
type TakeResponseBodyForInterceptionAsStreamReply struct {
Stream io.StreamHandle `json:"stream"` // No description.
}
TakeResponseBodyForInterceptionAsStreamReply represents the return values for TakeResponseBodyForInterceptionAsStream in the Network domain.
func (*TakeResponseBodyForInterceptionAsStreamReply) GetFrameID ¶
func (a *TakeResponseBodyForInterceptionAsStreamReply) GetFrameID() string
TakeResponseBodyForInterceptionAsStreamReply returns the FrameID value for TakeResponseBodyForInterceptionAsStream in the Network domain.
func (*TakeResponseBodyForInterceptionAsStreamReply) MatchFrameID ¶
func (a *TakeResponseBodyForInterceptionAsStreamReply) MatchFrameID(frameID string, m []byte) (bool, error)
TakeResponseBodyForInterceptionAsStreamReply returns whether or not the FrameID matches the reply value for TakeResponseBodyForInterceptionAsStream in the Network domain.
func (*TakeResponseBodyForInterceptionAsStreamReply) UnmarshalJSON ¶
func (a *TakeResponseBodyForInterceptionAsStreamReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for TakeResponseBodyForInterceptionAsStream in the Network domain.
type Unmarshaler ¶
type Unmarshaler func() json.Unmarshaler
type WebSocketClosedReply ¶
type WebSocketClosedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. }
WebSocketClosedReply is the reply for WebSocketClosed events.
func (*WebSocketClosedReply) GetFrameID ¶
func (a *WebSocketClosedReply) GetFrameID() string
WebSocketClosedReply returns the FrameID for WebSocketClosed in the Network domain.
func (*WebSocketClosedReply) MatchFrameID ¶
func (a *WebSocketClosedReply) MatchFrameID(frameID string, m []byte) (bool, error)
WebSocketClosedReply returns whether or not the FrameID matches the reply value for WebSocketClosed in the Network domain.
func (*WebSocketClosedReply) UnmarshalJSON ¶
func (a *WebSocketClosedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WebSocketClosed in the Network domain.
type WebSocketCreatedReply ¶
type WebSocketCreatedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. URL string `json:"url"` // WebSocket request URL. Initiator *Initiator `json:"initiator,omitempty"` // Request initiator. }
WebSocketCreatedReply is the reply for WebSocketCreated events.
func (*WebSocketCreatedReply) GetFrameID ¶
func (a *WebSocketCreatedReply) GetFrameID() string
WebSocketCreatedReply returns the FrameID for WebSocketCreated in the Network domain.
func (*WebSocketCreatedReply) MatchFrameID ¶
func (a *WebSocketCreatedReply) MatchFrameID(frameID string, m []byte) (bool, error)
WebSocketCreatedReply returns whether or not the FrameID matches the reply value for WebSocketCreated in the Network domain.
func (*WebSocketCreatedReply) UnmarshalJSON ¶
func (a *WebSocketCreatedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WebSocketCreated in the Network domain.
type WebSocketFrame ¶
type WebSocketFrame struct { Opcode float64 `json:"opcode"` // WebSocket message opcode. Mask bool `json:"mask"` // WebSocket message mask. PayloadData string `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.
type WebSocketFrameErrorReply ¶
type WebSocketFrameErrorReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. ErrorMessage string `json:"errorMessage"` // WebSocket error message. }
WebSocketFrameErrorReply is the reply for WebSocketFrameError events.
func (*WebSocketFrameErrorReply) GetFrameID ¶
func (a *WebSocketFrameErrorReply) GetFrameID() string
WebSocketFrameErrorReply returns the FrameID for WebSocketFrameError in the Network domain.
func (*WebSocketFrameErrorReply) MatchFrameID ¶
func (a *WebSocketFrameErrorReply) MatchFrameID(frameID string, m []byte) (bool, error)
WebSocketFrameErrorReply returns whether or not the FrameID matches the reply value for WebSocketFrameError in the Network domain.
func (*WebSocketFrameErrorReply) UnmarshalJSON ¶
func (a *WebSocketFrameErrorReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WebSocketFrameError in the Network domain.
type WebSocketFrameReceivedReply ¶
type WebSocketFrameReceivedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. Response WebSocketFrame `json:"response"` // WebSocket response data. }
WebSocketFrameReceivedReply is the reply for WebSocketFrameReceived events.
func (*WebSocketFrameReceivedReply) GetFrameID ¶
func (a *WebSocketFrameReceivedReply) GetFrameID() string
WebSocketFrameReceivedReply returns the FrameID for WebSocketFrameReceived in the Network domain.
func (*WebSocketFrameReceivedReply) MatchFrameID ¶
func (a *WebSocketFrameReceivedReply) MatchFrameID(frameID string, m []byte) (bool, error)
WebSocketFrameReceivedReply returns whether or not the FrameID matches the reply value for WebSocketFrameReceived in the Network domain.
func (*WebSocketFrameReceivedReply) UnmarshalJSON ¶
func (a *WebSocketFrameReceivedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WebSocketFrameReceived in the Network domain.
type WebSocketFrameSentReply ¶
type WebSocketFrameSentReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. Response WebSocketFrame `json:"response"` // WebSocket response data. }
WebSocketFrameSentReply is the reply for WebSocketFrameSent events.
func (*WebSocketFrameSentReply) GetFrameID ¶
func (a *WebSocketFrameSentReply) GetFrameID() string
WebSocketFrameSentReply returns the FrameID for WebSocketFrameSent in the Network domain.
func (*WebSocketFrameSentReply) MatchFrameID ¶
func (a *WebSocketFrameSentReply) MatchFrameID(frameID string, m []byte) (bool, error)
WebSocketFrameSentReply returns whether or not the FrameID matches the reply value for WebSocketFrameSent in the Network domain.
func (*WebSocketFrameSentReply) UnmarshalJSON ¶
func (a *WebSocketFrameSentReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WebSocketFrameSent in the Network domain.
type WebSocketHandshakeResponseReceivedReply ¶
type WebSocketHandshakeResponseReceivedReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. Response WebSocketResponse `json:"response"` // WebSocket response data. }
WebSocketHandshakeResponseReceivedReply is the reply for WebSocketHandshakeResponseReceived events.
func (*WebSocketHandshakeResponseReceivedReply) GetFrameID ¶
func (a *WebSocketHandshakeResponseReceivedReply) GetFrameID() string
WebSocketHandshakeResponseReceivedReply returns the FrameID for WebSocketHandshakeResponseReceived in the Network domain.
func (*WebSocketHandshakeResponseReceivedReply) MatchFrameID ¶
func (a *WebSocketHandshakeResponseReceivedReply) MatchFrameID(frameID string, m []byte) (bool, error)
WebSocketHandshakeResponseReceivedReply returns whether or not the FrameID matches the reply value for WebSocketHandshakeResponseReceived in the Network domain.
func (*WebSocketHandshakeResponseReceivedReply) UnmarshalJSON ¶
func (a *WebSocketHandshakeResponseReceivedReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WebSocketHandshakeResponseReceived in the Network domain.
type WebSocketRequest ¶
type WebSocketRequest struct {
Headers Headers `json:"headers"` // HTTP request headers.
}
WebSocketRequest WebSocket request data.
type WebSocketResponse ¶
type WebSocketResponse struct { Status int `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"` // HTTP response headers text. RequestHeaders *Headers `json:"requestHeaders,omitempty"` // HTTP request headers. RequestHeadersText string `json:"requestHeadersText,omitempty"` // HTTP request headers text. }
WebSocketResponse WebSocket response data.
type WebSocketWillSendHandshakeRequestReply ¶
type WebSocketWillSendHandshakeRequestReply struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp MonotonicTime `json:"timestamp"` // Timestamp. WallTime shared.TimeSinceEpoch `json:"wallTime"` // UTC Timestamp. Request WebSocketRequest `json:"request"` // WebSocket request data. }
WebSocketWillSendHandshakeRequestReply is the reply for WebSocketWillSendHandshakeRequest events.
func (*WebSocketWillSendHandshakeRequestReply) GetFrameID ¶
func (a *WebSocketWillSendHandshakeRequestReply) GetFrameID() string
WebSocketWillSendHandshakeRequestReply returns the FrameID for WebSocketWillSendHandshakeRequest in the Network domain.
func (*WebSocketWillSendHandshakeRequestReply) MatchFrameID ¶
func (a *WebSocketWillSendHandshakeRequestReply) MatchFrameID(frameID string, m []byte) (bool, error)
WebSocketWillSendHandshakeRequestReply returns whether or not the FrameID matches the reply value for WebSocketWillSendHandshakeRequest in the Network domain.
func (*WebSocketWillSendHandshakeRequestReply) UnmarshalJSON ¶
func (a *WebSocketWillSendHandshakeRequestReply) UnmarshalJSON(b []byte) error
Unmarshal the byte array into a return value for WebSocketWillSendHandshakeRequest in the Network domain.