Documentation ¶
Overview ¶
Package network provides the Chrome DevTools Protocol commands, types, and events for the Network domain.
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type AuthChallenge
- type AuthChallengeResponse
- type AuthChallengeResponseResponse
- func (t AuthChallengeResponseResponse) MarshalEasyJSON(out *jwriter.Writer)
- func (t AuthChallengeResponseResponse) MarshalJSON() ([]byte, error)
- func (t AuthChallengeResponseResponse) String() string
- func (t *AuthChallengeResponseResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *AuthChallengeResponseResponse) UnmarshalJSON(buf []byte) error
- type AuthChallengeSource
- type BlockedReason
- type CachedResource
- type CertificateTransparencyCompliance
- func (t CertificateTransparencyCompliance) MarshalEasyJSON(out *jwriter.Writer)
- func (t CertificateTransparencyCompliance) MarshalJSON() ([]byte, error)
- func (t CertificateTransparencyCompliance) String() string
- func (t *CertificateTransparencyCompliance) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *CertificateTransparencyCompliance) UnmarshalJSON(buf []byte) error
- type ClearBrowserCacheParams
- func (p *ClearBrowserCacheParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error)
- func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error
- type ClearBrowserCookiesParams
- func (p *ClearBrowserCookiesParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error)
- func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error
- type ConnectionType
- type ContinueInterceptedRequestParams
- func (p *ContinueInterceptedRequestParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v ContinueInterceptedRequestParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ContinueInterceptedRequestParams) MarshalJSON() ([]byte, error)
- func (v *ContinueInterceptedRequestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ContinueInterceptedRequestParams) UnmarshalJSON(data []byte) error
- func (p ContinueInterceptedRequestParams) WithAuthChallengeResponse(authChallengeResponse *AuthChallengeResponse) *ContinueInterceptedRequestParams
- func (p ContinueInterceptedRequestParams) WithErrorReason(errorReason ErrorReason) *ContinueInterceptedRequestParams
- func (p ContinueInterceptedRequestParams) WithHeaders(headers Headers) *ContinueInterceptedRequestParams
- func (p ContinueInterceptedRequestParams) WithMethod(method string) *ContinueInterceptedRequestParams
- func (p ContinueInterceptedRequestParams) WithPostData(postData string) *ContinueInterceptedRequestParams
- func (p ContinueInterceptedRequestParams) WithRawResponse(rawResponse string) *ContinueInterceptedRequestParams
- func (p ContinueInterceptedRequestParams) WithURL(url string) *ContinueInterceptedRequestParams
- type Cookie
- type CookieParam
- type CookieSameSite
- type DeleteCookiesParams
- func (p *DeleteCookiesParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DeleteCookiesParams) MarshalJSON() ([]byte, error)
- func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error
- func (p DeleteCookiesParams) WithDomain(domain string) *DeleteCookiesParams
- func (p DeleteCookiesParams) WithPath(path string) *DeleteCookiesParams
- func (p DeleteCookiesParams) WithURL(url string) *DeleteCookiesParams
- type DisableParams
- func (p *DisableParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisableParams) MarshalJSON() ([]byte, error)
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisableParams) UnmarshalJSON(data []byte) error
- type EmulateNetworkConditionsParams
- func (p *EmulateNetworkConditionsParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error)
- func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error
- func (p EmulateNetworkConditionsParams) WithConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsParams
- type EnableParams
- func (p *EnableParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v EnableParams) MarshalJSON() ([]byte, error)
- func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EnableParams) UnmarshalJSON(data []byte) error
- func (p EnableParams) WithMaxPostDataSize(maxPostDataSize int64) *EnableParams
- func (p EnableParams) WithMaxResourceBufferSize(maxResourceBufferSize int64) *EnableParams
- func (p EnableParams) WithMaxTotalBufferSize(maxTotalBufferSize int64) *EnableParams
- type ErrorReason
- type EventDataReceived
- type EventEventSourceMessageReceived
- type EventLoadingFailed
- type EventLoadingFinished
- type EventRequestIntercepted
- type EventRequestServedFromCache
- type EventRequestWillBeSent
- type EventResourceChangedPriority
- type EventResponseReceived
- type EventSignedExchangeReceived
- type EventWebSocketClosed
- type EventWebSocketCreated
- type EventWebSocketFrameError
- type EventWebSocketFrameReceived
- type EventWebSocketFrameSent
- type EventWebSocketHandshakeResponseReceived
- func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer)
- func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error)
- func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error
- type EventWebSocketWillSendHandshakeRequest
- func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer)
- func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error)
- func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error
- type GetAllCookiesParams
- func (p *GetAllCookiesParams) Do(ctxt context.Context, h cdp.Executor) (cookies []*Cookie, err error)
- func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetAllCookiesParams) MarshalJSON() ([]byte, error)
- func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error
- type GetAllCookiesReturns
- type GetCertificateParams
- func (p *GetCertificateParams) Do(ctxt context.Context, h cdp.Executor) (tableNames []string, err error)
- func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetCertificateParams) MarshalJSON() ([]byte, error)
- func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetCertificateParams) UnmarshalJSON(data []byte) error
- type GetCertificateReturns
- type GetCookiesParams
- func (p *GetCookiesParams) Do(ctxt context.Context, h cdp.Executor) (cookies []*Cookie, err error)
- func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetCookiesParams) MarshalJSON() ([]byte, error)
- func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetCookiesParams) UnmarshalJSON(data []byte) error
- func (p GetCookiesParams) WithUrls(urls []string) *GetCookiesParams
- type GetCookiesReturns
- type GetRequestPostDataParams
- func (p *GetRequestPostDataParams) Do(ctxt context.Context, h cdp.Executor) (postData string, err error)
- func (v GetRequestPostDataParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetRequestPostDataParams) MarshalJSON() ([]byte, error)
- func (v *GetRequestPostDataParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetRequestPostDataParams) UnmarshalJSON(data []byte) error
- type GetRequestPostDataReturns
- type GetResponseBodyForInterceptionParams
- func (p *GetResponseBodyForInterceptionParams) Do(ctxt context.Context, h cdp.Executor) (body []byte, err error)
- func (v GetResponseBodyForInterceptionParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetResponseBodyForInterceptionParams) MarshalJSON() ([]byte, error)
- func (v *GetResponseBodyForInterceptionParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetResponseBodyForInterceptionParams) UnmarshalJSON(data []byte) error
- type GetResponseBodyForInterceptionReturns
- func (v GetResponseBodyForInterceptionReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetResponseBodyForInterceptionReturns) MarshalJSON() ([]byte, error)
- func (v *GetResponseBodyForInterceptionReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetResponseBodyForInterceptionReturns) UnmarshalJSON(data []byte) error
- type GetResponseBodyParams
- func (p *GetResponseBodyParams) Do(ctxt context.Context, h cdp.Executor) (body []byte, err error)
- func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetResponseBodyParams) MarshalJSON() ([]byte, error)
- func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error
- type GetResponseBodyReturns
- type Headers
- type Initiator
- type InitiatorType
- type InterceptionID
- type InterceptionStage
- type ReferrerPolicy
- type ReplayXHRParams
- func (p *ReplayXHRParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ReplayXHRParams) MarshalJSON() ([]byte, error)
- func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error
- type Request
- type RequestID
- type RequestPattern
- type ResourcePriority
- type ResourceTiming
- type ResourceType
- type Response
- type SearchInResponseBodyParams
- func (p *SearchInResponseBodyParams) Do(ctxt context.Context, h cdp.Executor) (result []*debugger.SearchMatch, err error)
- func (v SearchInResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SearchInResponseBodyParams) MarshalJSON() ([]byte, error)
- func (v *SearchInResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SearchInResponseBodyParams) UnmarshalJSON(data []byte) error
- func (p SearchInResponseBodyParams) WithCaseSensitive(caseSensitive bool) *SearchInResponseBodyParams
- func (p SearchInResponseBodyParams) WithIsRegex(isRegex bool) *SearchInResponseBodyParams
- type SearchInResponseBodyReturns
- type SecurityDetails
- type SetBlockedURLSParams
- func (p *SetBlockedURLSParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error)
- func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error
- type SetBypassServiceWorkerParams
- func (p *SetBypassServiceWorkerParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error)
- func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error
- type SetCacheDisabledParams
- func (p *SetCacheDisabledParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error)
- func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error
- type SetCookieParams
- func (p *SetCookieParams) Do(ctxt context.Context, h cdp.Executor) (success bool, err error)
- func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetCookieParams) MarshalJSON() ([]byte, error)
- func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetCookieParams) UnmarshalJSON(data []byte) error
- func (p SetCookieParams) WithDomain(domain string) *SetCookieParams
- func (p SetCookieParams) WithExpires(expires *cdp.TimeSinceEpoch) *SetCookieParams
- func (p SetCookieParams) WithHTTPOnly(httpOnly bool) *SetCookieParams
- func (p SetCookieParams) WithPath(path string) *SetCookieParams
- func (p SetCookieParams) WithSameSite(sameSite CookieSameSite) *SetCookieParams
- func (p SetCookieParams) WithSecure(secure bool) *SetCookieParams
- func (p SetCookieParams) WithURL(url string) *SetCookieParams
- type SetCookieReturns
- type SetCookiesParams
- func (p *SetCookiesParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetCookiesParams) MarshalJSON() ([]byte, error)
- func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetCookiesParams) UnmarshalJSON(data []byte) error
- type SetDataSizeLimitsForTestParams
- func (p *SetDataSizeLimitsForTestParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error)
- func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error
- type SetExtraHTTPHeadersParams
- func (p *SetExtraHTTPHeadersParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error)
- func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error
- type SetRequestInterceptionParams
- func (p *SetRequestInterceptionParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v SetRequestInterceptionParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetRequestInterceptionParams) MarshalJSON() ([]byte, error)
- func (v *SetRequestInterceptionParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetRequestInterceptionParams) UnmarshalJSON(data []byte) error
- type SignedCertificateTimestamp
- type SignedExchangeError
- type SignedExchangeErrorField
- func (t SignedExchangeErrorField) MarshalEasyJSON(out *jwriter.Writer)
- func (t SignedExchangeErrorField) MarshalJSON() ([]byte, error)
- func (t SignedExchangeErrorField) String() string
- func (t *SignedExchangeErrorField) UnmarshalEasyJSON(in *jlexer.Lexer)
- func (t *SignedExchangeErrorField) UnmarshalJSON(buf []byte) error
- type SignedExchangeHeader
- type SignedExchangeInfo
- type SignedExchangeSignature
- type TakeResponseBodyForInterceptionAsStreamParams
- func (p *TakeResponseBodyForInterceptionAsStreamParams) Do(ctxt context.Context, h cdp.Executor) (stream io.StreamHandle, err error)
- func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalJSON() ([]byte, error)
- func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalJSON(data []byte) error
- type TakeResponseBodyForInterceptionAsStreamReturns
- func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalJSON() ([]byte, error)
- func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalJSON(data []byte) error
- type WebSocketFrame
- type WebSocketRequest
- type WebSocketResponse
Constants ¶
const ( CommandClearBrowserCache = "Network.clearBrowserCache" CommandClearBrowserCookies = "Network.clearBrowserCookies" CommandContinueInterceptedRequest = "Network.continueInterceptedRequest" CommandDeleteCookies = "Network.deleteCookies" CommandDisable = "Network.disable" CommandEmulateNetworkConditions = "Network.emulateNetworkConditions" CommandEnable = "Network.enable" CommandGetAllCookies = "Network.getAllCookies" CommandGetCertificate = "Network.getCertificate" CommandGetCookies = "Network.getCookies" CommandGetResponseBody = "Network.getResponseBody" CommandGetRequestPostData = "Network.getRequestPostData" CommandGetResponseBodyForInterception = "Network.getResponseBodyForInterception" CommandTakeResponseBodyForInterceptionAsStream = "Network.takeResponseBodyForInterceptionAsStream" CommandReplayXHR = "Network.replayXHR" CommandSearchInResponseBody = "Network.searchInResponseBody" CommandSetBlockedURLS = "Network.setBlockedURLs" CommandSetBypassServiceWorker = "Network.setBypassServiceWorker" CommandSetCacheDisabled = "Network.setCacheDisabled" CommandSetCookie = "Network.setCookie" CommandSetCookies = "Network.setCookies" CommandSetDataSizeLimitsForTest = "Network.setDataSizeLimitsForTest" CommandSetExtraHTTPHeaders = "Network.setExtraHTTPHeaders" CommandSetRequestInterception = "Network.setRequestInterception" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthChallenge ¶
type AuthChallenge struct { Source AuthChallengeSource `json:"source,omitempty"` // Source of the authentication challenge. Origin string `json:"origin"` // Origin of the challenger. Scheme string `json:"scheme"` // The authentication scheme used, such as basic or digest Realm string `json:"realm"` // The realm of the challenge. May be empty. }
AuthChallenge authorization challenge for HTTP status code 401 or 407.
func (AuthChallenge) MarshalEasyJSON ¶
func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AuthChallenge) MarshalJSON ¶
func (v AuthChallenge) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AuthChallenge) UnmarshalEasyJSON ¶
func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AuthChallenge) UnmarshalJSON ¶
func (v *AuthChallenge) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AuthChallengeResponse ¶
type AuthChallengeResponse struct { Response AuthChallengeResponseResponse `json:"response"` // The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box. Username string `json:"username,omitempty"` // 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.
func (AuthChallengeResponse) MarshalEasyJSON ¶
func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AuthChallengeResponse) MarshalJSON ¶
func (v AuthChallengeResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AuthChallengeResponse) UnmarshalEasyJSON ¶
func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AuthChallengeResponse) UnmarshalJSON ¶
func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type AuthChallengeResponseResponse ¶
type AuthChallengeResponseResponse string
AuthChallengeResponseResponse the decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.
const ( AuthChallengeResponseResponseDefault AuthChallengeResponseResponse = "Default" AuthChallengeResponseResponseCancelAuth AuthChallengeResponseResponse = "CancelAuth" AuthChallengeResponseResponseProvideCredentials AuthChallengeResponseResponse = "ProvideCredentials" )
AuthChallengeResponseResponse values.
func (AuthChallengeResponseResponse) MarshalEasyJSON ¶
func (t AuthChallengeResponseResponse) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (AuthChallengeResponseResponse) MarshalJSON ¶
func (t AuthChallengeResponseResponse) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (AuthChallengeResponseResponse) String ¶
func (t AuthChallengeResponseResponse) String() string
String returns the AuthChallengeResponseResponse as string value.
func (*AuthChallengeResponseResponse) UnmarshalEasyJSON ¶
func (t *AuthChallengeResponseResponse) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*AuthChallengeResponseResponse) UnmarshalJSON ¶
func (t *AuthChallengeResponseResponse) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type AuthChallengeSource ¶
type AuthChallengeSource string
AuthChallengeSource source of the authentication challenge.
const ( AuthChallengeSourceServer AuthChallengeSource = "Server" AuthChallengeSourceProxy AuthChallengeSource = "Proxy" )
AuthChallengeSource values.
func (AuthChallengeSource) MarshalEasyJSON ¶
func (t AuthChallengeSource) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (AuthChallengeSource) MarshalJSON ¶
func (t AuthChallengeSource) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (AuthChallengeSource) String ¶
func (t AuthChallengeSource) String() string
String returns the AuthChallengeSource as string value.
func (*AuthChallengeSource) UnmarshalEasyJSON ¶
func (t *AuthChallengeSource) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*AuthChallengeSource) UnmarshalJSON ¶
func (t *AuthChallengeSource) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type BlockedReason ¶
type BlockedReason string
BlockedReason the reason why request was blocked.
const ( 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" )
BlockedReason values.
func (BlockedReason) MarshalEasyJSON ¶
func (t BlockedReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (BlockedReason) MarshalJSON ¶
func (t BlockedReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (BlockedReason) String ¶
func (t BlockedReason) String() string
String returns the BlockedReason as string value.
func (*BlockedReason) UnmarshalEasyJSON ¶
func (t *BlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*BlockedReason) UnmarshalJSON ¶
func (t *BlockedReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type CachedResource ¶
type CachedResource struct { URL string `json:"url"` // Resource URL. This is the url of the original network request. Type ResourceType `json:"type"` // Type of this resource. Response *Response `json:"response,omitempty"` // Cached response data. BodySize float64 `json:"bodySize"` // Cached response body size. }
CachedResource information about the cached resource.
func (CachedResource) MarshalEasyJSON ¶
func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CachedResource) MarshalJSON ¶
func (v CachedResource) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CachedResource) UnmarshalEasyJSON ¶
func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CachedResource) UnmarshalJSON ¶
func (v *CachedResource) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CertificateTransparencyCompliance ¶
type CertificateTransparencyCompliance string
CertificateTransparencyCompliance whether the request complied with Certificate Transparency policy.
const ( CertificateTransparencyComplianceUnknown CertificateTransparencyCompliance = "unknown" CertificateTransparencyComplianceNotCompliant CertificateTransparencyCompliance = "not-compliant" CertificateTransparencyComplianceCompliant CertificateTransparencyCompliance = "compliant" )
CertificateTransparencyCompliance values.
func (CertificateTransparencyCompliance) MarshalEasyJSON ¶
func (t CertificateTransparencyCompliance) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (CertificateTransparencyCompliance) MarshalJSON ¶
func (t CertificateTransparencyCompliance) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (CertificateTransparencyCompliance) String ¶
func (t CertificateTransparencyCompliance) String() string
String returns the CertificateTransparencyCompliance as string value.
func (*CertificateTransparencyCompliance) UnmarshalEasyJSON ¶
func (t *CertificateTransparencyCompliance) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*CertificateTransparencyCompliance) UnmarshalJSON ¶
func (t *CertificateTransparencyCompliance) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ClearBrowserCacheParams ¶
type ClearBrowserCacheParams struct{}
ClearBrowserCacheParams clears browser cache.
func ClearBrowserCache ¶
func ClearBrowserCache() *ClearBrowserCacheParams
ClearBrowserCache clears browser cache.
func (*ClearBrowserCacheParams) Do ¶
Do executes Network.clearBrowserCache against the provided context.
func (ClearBrowserCacheParams) MarshalEasyJSON ¶
func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClearBrowserCacheParams) MarshalJSON ¶
func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClearBrowserCacheParams) UnmarshalEasyJSON ¶
func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClearBrowserCacheParams) UnmarshalJSON ¶
func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ClearBrowserCookiesParams ¶
type ClearBrowserCookiesParams struct{}
ClearBrowserCookiesParams clears browser cookies.
func ClearBrowserCookies ¶
func ClearBrowserCookies() *ClearBrowserCookiesParams
ClearBrowserCookies clears browser cookies.
func (*ClearBrowserCookiesParams) Do ¶
Do executes Network.clearBrowserCookies against the provided context.
func (ClearBrowserCookiesParams) MarshalEasyJSON ¶
func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ClearBrowserCookiesParams) MarshalJSON ¶
func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ClearBrowserCookiesParams) UnmarshalEasyJSON ¶
func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ClearBrowserCookiesParams) UnmarshalJSON ¶
func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ConnectionType ¶
type ConnectionType string
ConnectionType the underlying connection technology that the browser is supposedly using.
const ( ConnectionTypeNone ConnectionType = "none" ConnectionTypeCellular2g ConnectionType = "cellular2g" ConnectionTypeCellular3g ConnectionType = "cellular3g" ConnectionTypeCellular4g ConnectionType = "cellular4g" ConnectionTypeBluetooth ConnectionType = "bluetooth" ConnectionTypeEthernet ConnectionType = "ethernet" ConnectionTypeWifi ConnectionType = "wifi" ConnectionTypeWimax ConnectionType = "wimax" ConnectionTypeOther ConnectionType = "other" )
ConnectionType values.
func (ConnectionType) MarshalEasyJSON ¶
func (t ConnectionType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ConnectionType) MarshalJSON ¶
func (t ConnectionType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ConnectionType) String ¶
func (t ConnectionType) String() string
String returns the ConnectionType as string value.
func (*ConnectionType) UnmarshalEasyJSON ¶
func (t *ConnectionType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ConnectionType) UnmarshalJSON ¶
func (t *ConnectionType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ContinueInterceptedRequestParams ¶
type ContinueInterceptedRequestParams struct { InterceptionID InterceptionID `json:"interceptionId"` 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. }
ContinueInterceptedRequestParams response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId.
func ContinueInterceptedRequest ¶
func ContinueInterceptedRequest(interceptionID InterceptionID) *ContinueInterceptedRequestParams
ContinueInterceptedRequest response to Network.requestIntercepted which either modifies the request to continue with any modifications, or blocks it, or completes it with the provided response bytes. If a network fetch occurs as a result which encounters a redirect an additional Network.requestIntercepted event will be sent with the same InterceptionId.
parameters:
interceptionID
func (*ContinueInterceptedRequestParams) Do ¶
Do executes Network.continueInterceptedRequest against the provided context.
func (ContinueInterceptedRequestParams) MarshalEasyJSON ¶
func (v ContinueInterceptedRequestParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ContinueInterceptedRequestParams) MarshalJSON ¶
func (v ContinueInterceptedRequestParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ContinueInterceptedRequestParams) UnmarshalEasyJSON ¶
func (v *ContinueInterceptedRequestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ContinueInterceptedRequestParams) UnmarshalJSON ¶
func (v *ContinueInterceptedRequestParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (ContinueInterceptedRequestParams) WithAuthChallengeResponse ¶
func (p ContinueInterceptedRequestParams) WithAuthChallengeResponse(authChallengeResponse *AuthChallengeResponse) *ContinueInterceptedRequestParams
WithAuthChallengeResponse response to a requestIntercepted with an authChallenge. Must not be set otherwise.
func (ContinueInterceptedRequestParams) WithErrorReason ¶
func (p ContinueInterceptedRequestParams) WithErrorReason(errorReason ErrorReason) *ContinueInterceptedRequestParams
WithErrorReason 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.
func (ContinueInterceptedRequestParams) WithHeaders ¶
func (p ContinueInterceptedRequestParams) WithHeaders(headers Headers) *ContinueInterceptedRequestParams
WithHeaders if set this allows the request headers to be changed. Must not be set in response to an authChallenge.
func (ContinueInterceptedRequestParams) WithMethod ¶
func (p ContinueInterceptedRequestParams) WithMethod(method string) *ContinueInterceptedRequestParams
WithMethod if set this allows the request method to be overridden. Must not be set in response to an authChallenge.
func (ContinueInterceptedRequestParams) WithPostData ¶
func (p ContinueInterceptedRequestParams) WithPostData(postData string) *ContinueInterceptedRequestParams
WithPostData if set this allows postData to be set. Must not be set in response to an authChallenge.
func (ContinueInterceptedRequestParams) WithRawResponse ¶
func (p ContinueInterceptedRequestParams) WithRawResponse(rawResponse string) *ContinueInterceptedRequestParams
WithRawResponse 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.
func (ContinueInterceptedRequestParams) WithURL ¶
func (p ContinueInterceptedRequestParams) WithURL(url string) *ContinueInterceptedRequestParams
WithURL 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.
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 int64 `json:"size"` // Cookie size. HTTPOnly bool `json:"httpOnly"` // True if cookie is http-only. Secure bool `json:"secure"` // True if cookie is secure. Session bool `json:"session"` // True in case of session cookie. SameSite CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type. }
Cookie cookie object.
func (Cookie) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Cookie) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Cookie) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Cookie) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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 *cdp.TimeSinceEpoch `json:"expires,omitempty"` // Cookie expiration date, session cookie if not set }
CookieParam cookie parameter object.
func (CookieParam) MarshalEasyJSON ¶
func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CookieParam) MarshalJSON ¶
func (v CookieParam) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CookieParam) UnmarshalEasyJSON ¶
func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CookieParam) UnmarshalJSON ¶
func (v *CookieParam) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CookieSameSite ¶
type CookieSameSite string
CookieSameSite represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies.
const ( CookieSameSiteStrict CookieSameSite = "Strict" CookieSameSiteLax CookieSameSite = "Lax" )
CookieSameSite values.
func (CookieSameSite) MarshalEasyJSON ¶
func (t CookieSameSite) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (CookieSameSite) MarshalJSON ¶
func (t CookieSameSite) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (CookieSameSite) String ¶
func (t CookieSameSite) String() string
String returns the CookieSameSite as string value.
func (*CookieSameSite) UnmarshalEasyJSON ¶
func (t *CookieSameSite) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*CookieSameSite) UnmarshalJSON ¶
func (t *CookieSameSite) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type DeleteCookiesParams ¶
type DeleteCookiesParams 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. }
DeleteCookiesParams deletes browser cookies with matching name and url or domain/path pair.
func DeleteCookies ¶
func DeleteCookies(name string) *DeleteCookiesParams
DeleteCookies deletes browser cookies with matching name and url or domain/path pair.
parameters:
name - Name of the cookies to remove.
func (DeleteCookiesParams) MarshalEasyJSON ¶
func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DeleteCookiesParams) MarshalJSON ¶
func (v DeleteCookiesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DeleteCookiesParams) UnmarshalEasyJSON ¶
func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DeleteCookiesParams) UnmarshalJSON ¶
func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (DeleteCookiesParams) WithDomain ¶
func (p DeleteCookiesParams) WithDomain(domain string) *DeleteCookiesParams
WithDomain if specified, deletes only cookies with the exact domain.
func (DeleteCookiesParams) WithPath ¶
func (p DeleteCookiesParams) WithPath(path string) *DeleteCookiesParams
WithPath if specified, deletes only cookies with the exact path.
func (DeleteCookiesParams) WithURL ¶
func (p DeleteCookiesParams) WithURL(url string) *DeleteCookiesParams
WithURL if specified, deletes all the cookies with the given name where domain and path match provided URL.
type DisableParams ¶
type DisableParams struct{}
DisableParams disables network tracking, prevents network events from being sent to the client.
func Disable ¶
func Disable() *DisableParams
Disable disables network tracking, prevents network events from being sent to the client.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EmulateNetworkConditionsParams ¶
type EmulateNetworkConditionsParams 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. }
EmulateNetworkConditionsParams activates emulation of network conditions.
func EmulateNetworkConditions ¶
func EmulateNetworkConditions(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64) *EmulateNetworkConditionsParams
EmulateNetworkConditions activates emulation of network conditions.
parameters:
offline - True to emulate internet disconnection. latency - Minimum latency from request sent to response headers received (ms). downloadThroughput - Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. uploadThroughput - Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
func (*EmulateNetworkConditionsParams) Do ¶
Do executes Network.emulateNetworkConditions against the provided context.
func (EmulateNetworkConditionsParams) MarshalEasyJSON ¶
func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EmulateNetworkConditionsParams) MarshalJSON ¶
func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EmulateNetworkConditionsParams) UnmarshalEasyJSON ¶
func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EmulateNetworkConditionsParams) UnmarshalJSON ¶
func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (EmulateNetworkConditionsParams) WithConnectionType ¶
func (p EmulateNetworkConditionsParams) WithConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsParams
WithConnectionType connection type if known.
type EnableParams ¶
type EnableParams struct { MaxTotalBufferSize int64 `json:"maxTotalBufferSize,omitempty"` // Buffer size in bytes to use when preserving network payloads (XHRs, etc). MaxResourceBufferSize int64 `json:"maxResourceBufferSize,omitempty"` // Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc). MaxPostDataSize int64 `json:"maxPostDataSize,omitempty"` // Longest post body size (in bytes) that would be included in requestWillBeSent notification }
EnableParams enables network tracking, network events will now be delivered to the client.
func Enable ¶
func Enable() *EnableParams
Enable enables network tracking, network events will now be delivered to the client.
parameters:
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (EnableParams) WithMaxPostDataSize ¶
func (p EnableParams) WithMaxPostDataSize(maxPostDataSize int64) *EnableParams
WithMaxPostDataSize longest post body size (in bytes) that would be included in requestWillBeSent notification.
func (EnableParams) WithMaxResourceBufferSize ¶
func (p EnableParams) WithMaxResourceBufferSize(maxResourceBufferSize int64) *EnableParams
WithMaxResourceBufferSize per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
func (EnableParams) WithMaxTotalBufferSize ¶
func (p EnableParams) WithMaxTotalBufferSize(maxTotalBufferSize int64) *EnableParams
WithMaxTotalBufferSize buffer size in bytes to use when preserving network payloads (XHRs, etc).
type ErrorReason ¶
type ErrorReason string
ErrorReason network level fetch failure reason.
const ( ErrorReasonFailed ErrorReason = "Failed" ErrorReasonAborted ErrorReason = "Aborted" ErrorReasonTimedOut ErrorReason = "TimedOut" ErrorReasonAccessDenied ErrorReason = "AccessDenied" ErrorReasonConnectionClosed ErrorReason = "ConnectionClosed" ErrorReasonConnectionReset ErrorReason = "ConnectionReset" ErrorReasonConnectionRefused ErrorReason = "ConnectionRefused" ErrorReasonConnectionAborted ErrorReason = "ConnectionAborted" ErrorReasonConnectionFailed ErrorReason = "ConnectionFailed" ErrorReasonNameNotResolved ErrorReason = "NameNotResolved" ErrorReasonInternetDisconnected ErrorReason = "InternetDisconnected" ErrorReasonAddressUnreachable ErrorReason = "AddressUnreachable" ErrorReasonBlockedByClient ErrorReason = "BlockedByClient" ErrorReasonBlockedByResponse ErrorReason = "BlockedByResponse" )
ErrorReason values.
func (ErrorReason) MarshalEasyJSON ¶
func (t ErrorReason) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ErrorReason) MarshalJSON ¶
func (t ErrorReason) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ErrorReason) String ¶
func (t ErrorReason) String() string
String returns the ErrorReason as string value.
func (*ErrorReason) UnmarshalEasyJSON ¶
func (t *ErrorReason) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ErrorReason) UnmarshalJSON ¶
func (t *ErrorReason) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type EventDataReceived ¶
type EventDataReceived struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. DataLength int64 `json:"dataLength"` // Data chunk length. EncodedDataLength int64 `json:"encodedDataLength"` // Actual bytes received (might be less than dataLength for compressed encodings). }
EventDataReceived fired when data chunk was received over the network.
func (EventDataReceived) MarshalEasyJSON ¶
func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventDataReceived) MarshalJSON ¶
func (v EventDataReceived) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventDataReceived) UnmarshalEasyJSON ¶
func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventDataReceived) UnmarshalJSON ¶
func (v *EventDataReceived) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventEventSourceMessageReceived ¶
type EventEventSourceMessageReceived struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. EventName string `json:"eventName"` // Message type. EventID string `json:"eventId"` // Message identifier. Data string `json:"data"` // Message content. }
EventEventSourceMessageReceived fired when EventSource message is received.
func (EventEventSourceMessageReceived) MarshalEasyJSON ¶
func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventEventSourceMessageReceived) MarshalJSON ¶
func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventEventSourceMessageReceived) UnmarshalEasyJSON ¶
func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventEventSourceMessageReceived) UnmarshalJSON ¶
func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventLoadingFailed ¶
type EventLoadingFailed struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. Type ResourceType `json:"type"` // Resource type. ErrorText string `json:"errorText"` // 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. }
EventLoadingFailed fired when HTTP request has failed to load.
func (EventLoadingFailed) MarshalEasyJSON ¶
func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventLoadingFailed) MarshalJSON ¶
func (v EventLoadingFailed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventLoadingFailed) UnmarshalEasyJSON ¶
func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventLoadingFailed) UnmarshalJSON ¶
func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventLoadingFinished ¶
type EventLoadingFinished struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. EncodedDataLength float64 `json:"encodedDataLength"` // Total number of bytes received for this request. 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. }
EventLoadingFinished fired when HTTP request has finished loading.
func (EventLoadingFinished) MarshalEasyJSON ¶
func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventLoadingFinished) MarshalJSON ¶
func (v EventLoadingFinished) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventLoadingFinished) UnmarshalEasyJSON ¶
func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventLoadingFinished) UnmarshalJSON ¶
func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventRequestIntercepted ¶
type EventRequestIntercepted 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"` FrameID cdp.FrameID `json:"frameId"` // The id of the frame that initiated the request. ResourceType 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 int64 `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. }
EventRequestIntercepted details of an intercepted HTTP request, which must be either allowed, blocked, modified or mocked.
func (EventRequestIntercepted) MarshalEasyJSON ¶
func (v EventRequestIntercepted) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventRequestIntercepted) MarshalJSON ¶
func (v EventRequestIntercepted) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventRequestIntercepted) UnmarshalEasyJSON ¶
func (v *EventRequestIntercepted) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventRequestIntercepted) UnmarshalJSON ¶
func (v *EventRequestIntercepted) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventRequestServedFromCache ¶
type EventRequestServedFromCache struct {
RequestID RequestID `json:"requestId"` // Request identifier.
}
EventRequestServedFromCache fired if request ended up loading from cache.
func (EventRequestServedFromCache) MarshalEasyJSON ¶
func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventRequestServedFromCache) MarshalJSON ¶
func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventRequestServedFromCache) UnmarshalEasyJSON ¶
func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventRequestServedFromCache) UnmarshalJSON ¶
func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventRequestWillBeSent ¶
type EventRequestWillBeSent struct { RequestID RequestID `json:"requestId"` // Request identifier. LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker. DocumentURL string `json:"documentURL"` // URL of the document this request is loaded for. Request *Request `json:"request"` // Request data. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. WallTime *cdp.TimeSinceEpoch `json:"wallTime"` // Timestamp. Initiator *Initiator `json:"initiator"` // Request initiator. RedirectResponse *Response `json:"redirectResponse,omitempty"` // Redirect response data. Type ResourceType `json:"type,omitempty"` // Type of this resource. FrameID cdp.FrameID `json:"frameId,omitempty"` // Frame identifier. HasUserGesture bool `json:"hasUserGesture,omitempty"` // Whether the request is initiated by a user gesture. Defaults to false. }
EventRequestWillBeSent fired when page is about to send HTTP request.
func (EventRequestWillBeSent) MarshalEasyJSON ¶
func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventRequestWillBeSent) MarshalJSON ¶
func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventRequestWillBeSent) UnmarshalEasyJSON ¶
func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventRequestWillBeSent) UnmarshalJSON ¶
func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventResourceChangedPriority ¶
type EventResourceChangedPriority struct { RequestID RequestID `json:"requestId"` // Request identifier. NewPriority ResourcePriority `json:"newPriority"` // New priority Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. }
EventResourceChangedPriority fired when resource loading priority is changed.
func (EventResourceChangedPriority) MarshalEasyJSON ¶
func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventResourceChangedPriority) MarshalJSON ¶
func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventResourceChangedPriority) UnmarshalEasyJSON ¶
func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventResourceChangedPriority) UnmarshalJSON ¶
func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventResponseReceived ¶
type EventResponseReceived struct { RequestID RequestID `json:"requestId"` // Request identifier. LoaderID cdp.LoaderID `json:"loaderId"` // Loader identifier. Empty string if the request is fetched from worker. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. Type ResourceType `json:"type"` // Resource type. Response *Response `json:"response"` // Response data. FrameID cdp.FrameID `json:"frameId,omitempty"` // Frame identifier. }
EventResponseReceived fired when HTTP response is available.
func (EventResponseReceived) MarshalEasyJSON ¶
func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventResponseReceived) MarshalJSON ¶
func (v EventResponseReceived) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventResponseReceived) UnmarshalEasyJSON ¶
func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventResponseReceived) UnmarshalJSON ¶
func (v *EventResponseReceived) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventSignedExchangeReceived ¶
type EventSignedExchangeReceived struct { RequestID RequestID `json:"requestId"` // Request identifier. Info *SignedExchangeInfo `json:"info"` // Information about the signed exchange response. }
EventSignedExchangeReceived fired when a signed exchange was received over the network.
func (EventSignedExchangeReceived) MarshalEasyJSON ¶
func (v EventSignedExchangeReceived) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventSignedExchangeReceived) MarshalJSON ¶
func (v EventSignedExchangeReceived) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventSignedExchangeReceived) UnmarshalEasyJSON ¶
func (v *EventSignedExchangeReceived) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventSignedExchangeReceived) UnmarshalJSON ¶
func (v *EventSignedExchangeReceived) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWebSocketClosed ¶
type EventWebSocketClosed struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. }
EventWebSocketClosed fired when WebSocket is closed.
func (EventWebSocketClosed) MarshalEasyJSON ¶
func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWebSocketClosed) MarshalJSON ¶
func (v EventWebSocketClosed) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWebSocketClosed) UnmarshalEasyJSON ¶
func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWebSocketClosed) UnmarshalJSON ¶
func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWebSocketCreated ¶
type EventWebSocketCreated struct { RequestID RequestID `json:"requestId"` // Request identifier. URL string `json:"url"` // WebSocket request URL. Initiator *Initiator `json:"initiator,omitempty"` // Request initiator. }
EventWebSocketCreated fired upon WebSocket creation.
func (EventWebSocketCreated) MarshalEasyJSON ¶
func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWebSocketCreated) MarshalJSON ¶
func (v EventWebSocketCreated) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWebSocketCreated) UnmarshalEasyJSON ¶
func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWebSocketCreated) UnmarshalJSON ¶
func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWebSocketFrameError ¶
type EventWebSocketFrameError struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. ErrorMessage string `json:"errorMessage"` // WebSocket error message. }
EventWebSocketFrameError fired when WebSocket message error occurs.
func (EventWebSocketFrameError) MarshalEasyJSON ¶
func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWebSocketFrameError) MarshalJSON ¶
func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWebSocketFrameError) UnmarshalEasyJSON ¶
func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWebSocketFrameError) UnmarshalJSON ¶
func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWebSocketFrameReceived ¶
type EventWebSocketFrameReceived struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. Response *WebSocketFrame `json:"response"` // WebSocket response data. }
EventWebSocketFrameReceived fired when WebSocket message is received.
func (EventWebSocketFrameReceived) MarshalEasyJSON ¶
func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWebSocketFrameReceived) MarshalJSON ¶
func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWebSocketFrameReceived) UnmarshalEasyJSON ¶
func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWebSocketFrameReceived) UnmarshalJSON ¶
func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWebSocketFrameSent ¶
type EventWebSocketFrameSent struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. Response *WebSocketFrame `json:"response"` // WebSocket response data. }
EventWebSocketFrameSent fired when WebSocket message is sent.
func (EventWebSocketFrameSent) MarshalEasyJSON ¶
func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWebSocketFrameSent) MarshalJSON ¶
func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWebSocketFrameSent) UnmarshalEasyJSON ¶
func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWebSocketFrameSent) UnmarshalJSON ¶
func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWebSocketHandshakeResponseReceived ¶
type EventWebSocketHandshakeResponseReceived struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. Response *WebSocketResponse `json:"response"` // WebSocket response data. }
EventWebSocketHandshakeResponseReceived fired when WebSocket handshake response becomes available.
func (EventWebSocketHandshakeResponseReceived) MarshalEasyJSON ¶
func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWebSocketHandshakeResponseReceived) MarshalJSON ¶
func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON ¶
func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWebSocketHandshakeResponseReceived) UnmarshalJSON ¶
func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventWebSocketWillSendHandshakeRequest ¶
type EventWebSocketWillSendHandshakeRequest struct { RequestID RequestID `json:"requestId"` // Request identifier. Timestamp *cdp.MonotonicTime `json:"timestamp"` // Timestamp. WallTime *cdp.TimeSinceEpoch `json:"wallTime"` // UTC Timestamp. Request *WebSocketRequest `json:"request"` // WebSocket request data. }
EventWebSocketWillSendHandshakeRequest fired when WebSocket is about to initiate handshake.
func (EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON ¶
func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventWebSocketWillSendHandshakeRequest) MarshalJSON ¶
func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON ¶
func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventWebSocketWillSendHandshakeRequest) UnmarshalJSON ¶
func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetAllCookiesParams ¶
type GetAllCookiesParams struct{}
GetAllCookiesParams returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.
func GetAllCookies ¶
func GetAllCookies() *GetAllCookiesParams
GetAllCookies returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.
func (*GetAllCookiesParams) Do ¶
func (p *GetAllCookiesParams) Do(ctxt context.Context, h cdp.Executor) (cookies []*Cookie, err error)
Do executes Network.getAllCookies against the provided context.
returns:
cookies - Array of cookie objects.
func (GetAllCookiesParams) MarshalEasyJSON ¶
func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetAllCookiesParams) MarshalJSON ¶
func (v GetAllCookiesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetAllCookiesParams) UnmarshalEasyJSON ¶
func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetAllCookiesParams) UnmarshalJSON ¶
func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetAllCookiesReturns ¶
type GetAllCookiesReturns struct {
Cookies []*Cookie `json:"cookies,omitempty"` // Array of cookie objects.
}
GetAllCookiesReturns return values.
func (GetAllCookiesReturns) MarshalEasyJSON ¶
func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetAllCookiesReturns) MarshalJSON ¶
func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetAllCookiesReturns) UnmarshalEasyJSON ¶
func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetAllCookiesReturns) UnmarshalJSON ¶
func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetCertificateParams ¶
type GetCertificateParams struct {
Origin string `json:"origin"` // Origin to get certificate for.
}
GetCertificateParams returns the DER-encoded certificate.
func GetCertificate ¶
func GetCertificate(origin string) *GetCertificateParams
GetCertificate returns the DER-encoded certificate.
parameters:
origin - Origin to get certificate for.
func (*GetCertificateParams) Do ¶
func (p *GetCertificateParams) Do(ctxt context.Context, h cdp.Executor) (tableNames []string, err error)
Do executes Network.getCertificate against the provided context.
returns:
tableNames
func (GetCertificateParams) MarshalEasyJSON ¶
func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetCertificateParams) MarshalJSON ¶
func (v GetCertificateParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetCertificateParams) UnmarshalEasyJSON ¶
func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetCertificateParams) UnmarshalJSON ¶
func (v *GetCertificateParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetCertificateReturns ¶
type GetCertificateReturns struct {
TableNames []string `json:"tableNames,omitempty"`
}
GetCertificateReturns return values.
func (GetCertificateReturns) MarshalEasyJSON ¶
func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetCertificateReturns) MarshalJSON ¶
func (v GetCertificateReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetCertificateReturns) UnmarshalEasyJSON ¶
func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetCertificateReturns) UnmarshalJSON ¶
func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetCookiesParams ¶
type GetCookiesParams struct {
Urls []string `json:"urls,omitempty"` // The list of URLs for which applicable cookies will be fetched
}
GetCookiesParams returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.
func GetCookies ¶
func GetCookies() *GetCookiesParams
GetCookies returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.
parameters:
func (*GetCookiesParams) Do ¶
Do executes Network.getCookies against the provided context.
returns:
cookies - Array of cookie objects.
func (GetCookiesParams) MarshalEasyJSON ¶
func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetCookiesParams) MarshalJSON ¶
func (v GetCookiesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetCookiesParams) UnmarshalEasyJSON ¶
func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetCookiesParams) UnmarshalJSON ¶
func (v *GetCookiesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (GetCookiesParams) WithUrls ¶
func (p GetCookiesParams) WithUrls(urls []string) *GetCookiesParams
WithUrls the list of URLs for which applicable cookies will be fetched.
type GetCookiesReturns ¶
type GetCookiesReturns struct {
Cookies []*Cookie `json:"cookies,omitempty"` // Array of cookie objects.
}
GetCookiesReturns return values.
func (GetCookiesReturns) MarshalEasyJSON ¶
func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetCookiesReturns) MarshalJSON ¶
func (v GetCookiesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetCookiesReturns) UnmarshalEasyJSON ¶
func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetCookiesReturns) UnmarshalJSON ¶
func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetRequestPostDataParams ¶
type GetRequestPostDataParams struct {
RequestID RequestID `json:"requestId"` // Identifier of the network request to get content for.
}
GetRequestPostDataParams returns post data sent with the request. Returns an error when no data was sent with the request.
func GetRequestPostData ¶
func GetRequestPostData(requestID RequestID) *GetRequestPostDataParams
GetRequestPostData returns post data sent with the request. Returns an error when no data was sent with the request.
parameters:
requestID - Identifier of the network request to get content for.
func (*GetRequestPostDataParams) Do ¶
func (p *GetRequestPostDataParams) Do(ctxt context.Context, h cdp.Executor) (postData string, err error)
Do executes Network.getRequestPostData against the provided context.
returns:
postData - Request body string, omitting files from multipart requests
func (GetRequestPostDataParams) MarshalEasyJSON ¶
func (v GetRequestPostDataParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetRequestPostDataParams) MarshalJSON ¶
func (v GetRequestPostDataParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetRequestPostDataParams) UnmarshalEasyJSON ¶
func (v *GetRequestPostDataParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetRequestPostDataParams) UnmarshalJSON ¶
func (v *GetRequestPostDataParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetRequestPostDataReturns ¶
type GetRequestPostDataReturns struct {
PostData string `json:"postData,omitempty"` // Request body string, omitting files from multipart requests
}
GetRequestPostDataReturns return values.
func (GetRequestPostDataReturns) MarshalEasyJSON ¶
func (v GetRequestPostDataReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetRequestPostDataReturns) MarshalJSON ¶
func (v GetRequestPostDataReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetRequestPostDataReturns) UnmarshalEasyJSON ¶
func (v *GetRequestPostDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetRequestPostDataReturns) UnmarshalJSON ¶
func (v *GetRequestPostDataReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResponseBodyForInterceptionParams ¶
type GetResponseBodyForInterceptionParams struct {
InterceptionID InterceptionID `json:"interceptionId"` // Identifier for the intercepted request to get body for.
}
GetResponseBodyForInterceptionParams returns content served for the given currently intercepted request.
func GetResponseBodyForInterception ¶
func GetResponseBodyForInterception(interceptionID InterceptionID) *GetResponseBodyForInterceptionParams
GetResponseBodyForInterception returns content served for the given currently intercepted request.
parameters:
interceptionID - Identifier for the intercepted request to get body for.
func (*GetResponseBodyForInterceptionParams) Do ¶
func (p *GetResponseBodyForInterceptionParams) Do(ctxt context.Context, h cdp.Executor) (body []byte, err error)
Do executes Network.getResponseBodyForInterception against the provided context.
returns:
body - Response body.
func (GetResponseBodyForInterceptionParams) MarshalEasyJSON ¶
func (v GetResponseBodyForInterceptionParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResponseBodyForInterceptionParams) MarshalJSON ¶
func (v GetResponseBodyForInterceptionParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResponseBodyForInterceptionParams) UnmarshalEasyJSON ¶
func (v *GetResponseBodyForInterceptionParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResponseBodyForInterceptionParams) UnmarshalJSON ¶
func (v *GetResponseBodyForInterceptionParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResponseBodyForInterceptionReturns ¶
type GetResponseBodyForInterceptionReturns struct { Body string `json:"body,omitempty"` // Response body. Base64encoded bool `json:"base64Encoded,omitempty"` // True, if content was sent as base64. }
GetResponseBodyForInterceptionReturns return values.
func (GetResponseBodyForInterceptionReturns) MarshalEasyJSON ¶
func (v GetResponseBodyForInterceptionReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResponseBodyForInterceptionReturns) MarshalJSON ¶
func (v GetResponseBodyForInterceptionReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResponseBodyForInterceptionReturns) UnmarshalEasyJSON ¶
func (v *GetResponseBodyForInterceptionReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResponseBodyForInterceptionReturns) UnmarshalJSON ¶
func (v *GetResponseBodyForInterceptionReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResponseBodyParams ¶
type GetResponseBodyParams struct {
RequestID RequestID `json:"requestId"` // Identifier of the network request to get content for.
}
GetResponseBodyParams returns content served for the given request.
func GetResponseBody ¶
func GetResponseBody(requestID RequestID) *GetResponseBodyParams
GetResponseBody returns content served for the given request.
parameters:
requestID - Identifier of the network request to get content for.
func (*GetResponseBodyParams) Do ¶
Do executes Network.getResponseBody against the provided context.
returns:
body - Response body.
func (GetResponseBodyParams) MarshalEasyJSON ¶
func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResponseBodyParams) MarshalJSON ¶
func (v GetResponseBodyParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResponseBodyParams) UnmarshalEasyJSON ¶
func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResponseBodyParams) UnmarshalJSON ¶
func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetResponseBodyReturns ¶
type GetResponseBodyReturns struct { Body string `json:"body,omitempty"` // Response body. Base64encoded bool `json:"base64Encoded,omitempty"` // True, if content was sent as base64. }
GetResponseBodyReturns return values.
func (GetResponseBodyReturns) MarshalEasyJSON ¶
func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetResponseBodyReturns) MarshalJSON ¶
func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetResponseBodyReturns) UnmarshalEasyJSON ¶
func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetResponseBodyReturns) UnmarshalJSON ¶
func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Headers ¶
type Headers map[string]interface{}
Headers request / response headers as keys / values of JSON object.
type Initiator ¶
type Initiator struct { Type InitiatorType `json:"type"` // Type of this initiator. 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.
func (Initiator) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Initiator) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Initiator) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Initiator) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type InitiatorType ¶
type InitiatorType string
InitiatorType type of this initiator.
const ( InitiatorTypeParser InitiatorType = "parser" InitiatorTypeScript InitiatorType = "script" InitiatorTypePreload InitiatorType = "preload" InitiatorTypeSignedExchange InitiatorType = "SignedExchange" InitiatorTypeOther InitiatorType = "other" )
InitiatorType values.
func (InitiatorType) MarshalEasyJSON ¶
func (t InitiatorType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (InitiatorType) MarshalJSON ¶
func (t InitiatorType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (InitiatorType) String ¶
func (t InitiatorType) String() string
String returns the InitiatorType as string value.
func (*InitiatorType) UnmarshalEasyJSON ¶
func (t *InitiatorType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*InitiatorType) UnmarshalJSON ¶
func (t *InitiatorType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type InterceptionID ¶
type InterceptionID string
InterceptionID unique intercepted request identifier.
func (InterceptionID) String ¶
func (t InterceptionID) String() string
String returns the InterceptionID as string value.
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.
const ( InterceptionStageRequest InterceptionStage = "Request" InterceptionStageHeadersReceived InterceptionStage = "HeadersReceived" )
InterceptionStage values.
func (InterceptionStage) MarshalEasyJSON ¶
func (t InterceptionStage) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (InterceptionStage) MarshalJSON ¶
func (t InterceptionStage) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (InterceptionStage) String ¶
func (t InterceptionStage) String() string
String returns the InterceptionStage as string value.
func (*InterceptionStage) UnmarshalEasyJSON ¶
func (t *InterceptionStage) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*InterceptionStage) UnmarshalJSON ¶
func (t *InterceptionStage) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ReferrerPolicy ¶
type ReferrerPolicy string
ReferrerPolicy the referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/.
const ( ReferrerPolicyUnsafeURL ReferrerPolicy = "unsafe-url" ReferrerPolicyNoReferrerWhenDowngrade ReferrerPolicy = "no-referrer-when-downgrade" ReferrerPolicyNoReferrer ReferrerPolicy = "no-referrer" ReferrerPolicyOrigin ReferrerPolicy = "origin" ReferrerPolicyOriginWhenCrossOrigin ReferrerPolicy = "origin-when-cross-origin" ReferrerPolicySameOrigin ReferrerPolicy = "same-origin" ReferrerPolicyStrictOrigin ReferrerPolicy = "strict-origin" ReferrerPolicyStrictOriginWhenCrossOrigin ReferrerPolicy = "strict-origin-when-cross-origin" )
ReferrerPolicy values.
func (ReferrerPolicy) MarshalEasyJSON ¶
func (t ReferrerPolicy) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ReferrerPolicy) MarshalJSON ¶
func (t ReferrerPolicy) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ReferrerPolicy) String ¶
func (t ReferrerPolicy) String() string
String returns the ReferrerPolicy as string value.
func (*ReferrerPolicy) UnmarshalEasyJSON ¶
func (t *ReferrerPolicy) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ReferrerPolicy) UnmarshalJSON ¶
func (t *ReferrerPolicy) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ReplayXHRParams ¶
type ReplayXHRParams struct {
RequestID RequestID `json:"requestId"` // Identifier of XHR to replay.
}
ReplayXHRParams this method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.
func ReplayXHR ¶
func ReplayXHR(requestID RequestID) *ReplayXHRParams
ReplayXHR this method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.
parameters:
requestID - Identifier of XHR to replay.
func (ReplayXHRParams) MarshalEasyJSON ¶
func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ReplayXHRParams) MarshalJSON ¶
func (v ReplayXHRParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ReplayXHRParams) UnmarshalEasyJSON ¶
func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ReplayXHRParams) UnmarshalJSON ¶
func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 ReferrerPolicy `json:"referrerPolicy"` // The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ IsLinkPreload bool `json:"isLinkPreload,omitempty"` // Whether is loaded via link preload. }
Request HTTP request data.
func (Request) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Request) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Request) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Request) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
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 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.
func (RequestPattern) MarshalEasyJSON ¶
func (v RequestPattern) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (RequestPattern) MarshalJSON ¶
func (v RequestPattern) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*RequestPattern) UnmarshalEasyJSON ¶
func (v *RequestPattern) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*RequestPattern) UnmarshalJSON ¶
func (v *RequestPattern) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResourcePriority ¶
type ResourcePriority string
ResourcePriority loading priority of a resource request.
const ( ResourcePriorityVeryLow ResourcePriority = "VeryLow" ResourcePriorityLow ResourcePriority = "Low" ResourcePriorityMedium ResourcePriority = "Medium" ResourcePriorityHigh ResourcePriority = "High" ResourcePriorityVeryHigh ResourcePriority = "VeryHigh" )
ResourcePriority values.
func (ResourcePriority) MarshalEasyJSON ¶
func (t ResourcePriority) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ResourcePriority) MarshalJSON ¶
func (t ResourcePriority) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ResourcePriority) String ¶
func (t ResourcePriority) String() string
String returns the ResourcePriority as string value.
func (*ResourcePriority) UnmarshalEasyJSON ¶
func (t *ResourcePriority) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ResourcePriority) UnmarshalJSON ¶
func (t *ResourcePriority) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type ResourceTiming ¶
type ResourceTiming struct { RequestTime float64 `json:"requestTime"` // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime. ProxyStart float64 `json:"proxyStart"` // Started resolving proxy. ProxyEnd float64 `json:"proxyEnd"` // Finished resolving proxy. DNSStart float64 `json:"dnsStart"` // Started DNS address resolve. DNSEnd float64 `json:"dnsEnd"` // Finished DNS address resolve. ConnectStart float64 `json:"connectStart"` // Started connecting to the remote host. ConnectEnd float64 `json:"connectEnd"` // Connected to the remote host. SslStart float64 `json:"sslStart"` // Started SSL handshake. SslEnd float64 `json:"sslEnd"` // Finished SSL handshake. WorkerStart float64 `json:"workerStart"` // Started running ServiceWorker. WorkerReady float64 `json:"workerReady"` // Finished Starting ServiceWorker. SendStart float64 `json:"sendStart"` // Started sending request. SendEnd float64 `json:"sendEnd"` // Finished sending request. PushStart float64 `json:"pushStart"` // Time the server started pushing request. PushEnd float64 `json:"pushEnd"` // Time the server finished pushing request. ReceiveHeadersEnd float64 `json:"receiveHeadersEnd"` // Finished receiving response headers. }
ResourceTiming timing information for the request.
func (ResourceTiming) MarshalEasyJSON ¶
func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ResourceTiming) MarshalJSON ¶
func (v ResourceTiming) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ResourceTiming) UnmarshalEasyJSON ¶
func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ResourceTiming) UnmarshalJSON ¶
func (v *ResourceTiming) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ResourceType ¶
type ResourceType string
ResourceType resource type as it was perceived by the rendering engine.
const ( ResourceTypeDocument ResourceType = "Document" ResourceTypeStylesheet ResourceType = "Stylesheet" ResourceTypeImage ResourceType = "Image" ResourceTypeMedia ResourceType = "Media" ResourceTypeFont ResourceType = "Font" ResourceTypeScript ResourceType = "Script" ResourceTypeTextTrack ResourceType = "TextTrack" ResourceTypeXHR ResourceType = "XHR" ResourceTypeFetch ResourceType = "Fetch" ResourceTypeEventSource ResourceType = "EventSource" ResourceTypeWebSocket ResourceType = "WebSocket" ResourceTypeManifest ResourceType = "Manifest" ResourceTypeSignedExchange ResourceType = "SignedExchange" ResourceTypePing ResourceType = "Ping" ResourceTypeCSPViolationReport ResourceType = "CSPViolationReport" ResourceTypeOther ResourceType = "Other" )
ResourceType values.
func (ResourceType) MarshalEasyJSON ¶
func (t ResourceType) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (ResourceType) MarshalJSON ¶
func (t ResourceType) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (ResourceType) String ¶
func (t ResourceType) String() string
String returns the ResourceType as string value.
func (*ResourceType) UnmarshalEasyJSON ¶
func (t *ResourceType) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*ResourceType) UnmarshalJSON ¶
func (t *ResourceType) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type Response ¶
type Response struct { URL string `json:"url"` // Response URL. This URL can be different from CachedResource.url in case of redirect. Status int64 `json:"status"` // HTTP response status code. StatusText string `json:"statusText"` // HTTP response status text. Headers Headers `json:"headers"` // HTTP response headers. 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 int64 `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. 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.
func (Response) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Response) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Response) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Response) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type SearchInResponseBodyParams ¶
type SearchInResponseBodyParams struct { RequestID RequestID `json:"requestId"` // Identifier of the network response to search. Query string `json:"query"` // String to search for. CaseSensitive bool `json:"caseSensitive,omitempty"` // If true, search is case sensitive. IsRegex bool `json:"isRegex,omitempty"` // If true, treats string parameter as regex. }
SearchInResponseBodyParams searches for given string in response content.
func SearchInResponseBody ¶
func SearchInResponseBody(requestID RequestID, query string) *SearchInResponseBodyParams
SearchInResponseBody searches for given string in response content.
parameters:
requestID - Identifier of the network response to search. query - String to search for.
func (*SearchInResponseBodyParams) Do ¶
func (p *SearchInResponseBodyParams) Do(ctxt context.Context, h cdp.Executor) (result []*debugger.SearchMatch, err error)
Do executes Network.searchInResponseBody against the provided context.
returns:
result - List of search matches.
func (SearchInResponseBodyParams) MarshalEasyJSON ¶
func (v SearchInResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchInResponseBodyParams) MarshalJSON ¶
func (v SearchInResponseBodyParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SearchInResponseBodyParams) UnmarshalEasyJSON ¶
func (v *SearchInResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchInResponseBodyParams) UnmarshalJSON ¶
func (v *SearchInResponseBodyParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (SearchInResponseBodyParams) WithCaseSensitive ¶
func (p SearchInResponseBodyParams) WithCaseSensitive(caseSensitive bool) *SearchInResponseBodyParams
WithCaseSensitive if true, search is case sensitive.
func (SearchInResponseBodyParams) WithIsRegex ¶
func (p SearchInResponseBodyParams) WithIsRegex(isRegex bool) *SearchInResponseBodyParams
WithIsRegex if true, treats string parameter as regex.
type SearchInResponseBodyReturns ¶
type SearchInResponseBodyReturns struct {
Result []*debugger.SearchMatch `json:"result,omitempty"` // List of search matches.
}
SearchInResponseBodyReturns return values.
func (SearchInResponseBodyReturns) MarshalEasyJSON ¶
func (v SearchInResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SearchInResponseBodyReturns) MarshalJSON ¶
func (v SearchInResponseBodyReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SearchInResponseBodyReturns) UnmarshalEasyJSON ¶
func (v *SearchInResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SearchInResponseBodyReturns) UnmarshalJSON ¶
func (v *SearchInResponseBodyReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 *cdp.TimeSinceEpoch `json:"validFrom"` // Certificate valid from date. ValidTo *cdp.TimeSinceEpoch `json:"validTo"` // Certificate valid to (expiration) date SignedCertificateTimestampList []*SignedCertificateTimestamp `json:"signedCertificateTimestampList"` // List of signed certificate timestamps (SCTs). CertificateTransparencyCompliance CertificateTransparencyCompliance `json:"certificateTransparencyCompliance"` // Whether the request complied with Certificate Transparency policy }
SecurityDetails security details about a request.
func (SecurityDetails) MarshalEasyJSON ¶
func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SecurityDetails) MarshalJSON ¶
func (v SecurityDetails) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SecurityDetails) UnmarshalEasyJSON ¶
func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SecurityDetails) UnmarshalJSON ¶
func (v *SecurityDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetBlockedURLSParams ¶
type SetBlockedURLSParams struct {
Urls []string `json:"urls"` // URL patterns to block. Wildcards ('*') are allowed.
}
SetBlockedURLSParams blocks URLs from loading.
func SetBlockedURLS ¶
func SetBlockedURLS(urls []string) *SetBlockedURLSParams
SetBlockedURLS blocks URLs from loading.
parameters:
urls - URL patterns to block. Wildcards ('*') are allowed.
func (SetBlockedURLSParams) MarshalEasyJSON ¶
func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetBlockedURLSParams) MarshalJSON ¶
func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetBlockedURLSParams) UnmarshalEasyJSON ¶
func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetBlockedURLSParams) UnmarshalJSON ¶
func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetBypassServiceWorkerParams ¶
type SetBypassServiceWorkerParams struct {
Bypass bool `json:"bypass"` // Bypass service worker and load from network.
}
SetBypassServiceWorkerParams toggles ignoring of service worker for each request.
func SetBypassServiceWorker ¶
func SetBypassServiceWorker(bypass bool) *SetBypassServiceWorkerParams
SetBypassServiceWorker toggles ignoring of service worker for each request.
parameters:
bypass - Bypass service worker and load from network.
func (*SetBypassServiceWorkerParams) Do ¶
Do executes Network.setBypassServiceWorker against the provided context.
func (SetBypassServiceWorkerParams) MarshalEasyJSON ¶
func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetBypassServiceWorkerParams) MarshalJSON ¶
func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetBypassServiceWorkerParams) UnmarshalEasyJSON ¶
func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetBypassServiceWorkerParams) UnmarshalJSON ¶
func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetCacheDisabledParams ¶
type SetCacheDisabledParams struct {
CacheDisabled bool `json:"cacheDisabled"` // Cache disabled state.
}
SetCacheDisabledParams toggles ignoring cache for each request. If true, cache will not be used.
func SetCacheDisabled ¶
func SetCacheDisabled(cacheDisabled bool) *SetCacheDisabledParams
SetCacheDisabled toggles ignoring cache for each request. If true, cache will not be used.
parameters:
cacheDisabled - Cache disabled state.
func (*SetCacheDisabledParams) Do ¶
Do executes Network.setCacheDisabled against the provided context.
func (SetCacheDisabledParams) MarshalEasyJSON ¶
func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetCacheDisabledParams) MarshalJSON ¶
func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetCacheDisabledParams) UnmarshalEasyJSON ¶
func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetCacheDisabledParams) UnmarshalJSON ¶
func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetCookieParams ¶
type SetCookieParams 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 *cdp.TimeSinceEpoch `json:"expires,omitempty"` // Cookie expiration date, session cookie if not set }
SetCookieParams sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
func SetCookie ¶
func SetCookie(name string, value string) *SetCookieParams
SetCookie sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.
parameters:
name - Cookie name. value - Cookie value.
func (*SetCookieParams) Do ¶
Do executes Network.setCookie against the provided context.
returns:
success - True if successfully set cookie.
func (SetCookieParams) MarshalEasyJSON ¶
func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetCookieParams) MarshalJSON ¶
func (v SetCookieParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetCookieParams) UnmarshalEasyJSON ¶
func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetCookieParams) UnmarshalJSON ¶
func (v *SetCookieParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (SetCookieParams) WithDomain ¶
func (p SetCookieParams) WithDomain(domain string) *SetCookieParams
WithDomain cookie domain.
func (SetCookieParams) WithExpires ¶
func (p SetCookieParams) WithExpires(expires *cdp.TimeSinceEpoch) *SetCookieParams
WithExpires cookie expiration date, session cookie if not set.
func (SetCookieParams) WithHTTPOnly ¶
func (p SetCookieParams) WithHTTPOnly(httpOnly bool) *SetCookieParams
WithHTTPOnly true if cookie is http-only.
func (SetCookieParams) WithPath ¶
func (p SetCookieParams) WithPath(path string) *SetCookieParams
WithPath cookie path.
func (SetCookieParams) WithSameSite ¶
func (p SetCookieParams) WithSameSite(sameSite CookieSameSite) *SetCookieParams
WithSameSite cookie SameSite type.
func (SetCookieParams) WithSecure ¶
func (p SetCookieParams) WithSecure(secure bool) *SetCookieParams
WithSecure true if cookie is secure.
func (SetCookieParams) WithURL ¶
func (p SetCookieParams) WithURL(url string) *SetCookieParams
WithURL 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.
type SetCookieReturns ¶
type SetCookieReturns struct {
Success bool `json:"success,omitempty"` // True if successfully set cookie.
}
SetCookieReturns return values.
func (SetCookieReturns) MarshalEasyJSON ¶
func (v SetCookieReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetCookieReturns) MarshalJSON ¶
func (v SetCookieReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetCookieReturns) UnmarshalEasyJSON ¶
func (v *SetCookieReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetCookieReturns) UnmarshalJSON ¶
func (v *SetCookieReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetCookiesParams ¶
type SetCookiesParams struct {
Cookies []*CookieParam `json:"cookies"` // Cookies to be set.
}
SetCookiesParams sets given cookies.
func SetCookies ¶
func SetCookies(cookies []*CookieParam) *SetCookiesParams
SetCookies sets given cookies.
parameters:
cookies - Cookies to be set.
func (SetCookiesParams) MarshalEasyJSON ¶
func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetCookiesParams) MarshalJSON ¶
func (v SetCookiesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetCookiesParams) UnmarshalEasyJSON ¶
func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetCookiesParams) UnmarshalJSON ¶
func (v *SetCookiesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetDataSizeLimitsForTestParams ¶
type SetDataSizeLimitsForTestParams struct { MaxTotalSize int64 `json:"maxTotalSize"` // Maximum total buffer size. MaxResourceSize int64 `json:"maxResourceSize"` // Maximum per-resource size. }
SetDataSizeLimitsForTestParams for testing.
func SetDataSizeLimitsForTest ¶
func SetDataSizeLimitsForTest(maxTotalSize int64, maxResourceSize int64) *SetDataSizeLimitsForTestParams
SetDataSizeLimitsForTest for testing.
parameters:
maxTotalSize - Maximum total buffer size. maxResourceSize - Maximum per-resource size.
func (*SetDataSizeLimitsForTestParams) Do ¶
Do executes Network.setDataSizeLimitsForTest against the provided context.
func (SetDataSizeLimitsForTestParams) MarshalEasyJSON ¶
func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetDataSizeLimitsForTestParams) MarshalJSON ¶
func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetDataSizeLimitsForTestParams) UnmarshalEasyJSON ¶
func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetDataSizeLimitsForTestParams) UnmarshalJSON ¶
func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetExtraHTTPHeadersParams ¶
type SetExtraHTTPHeadersParams struct {
Headers Headers `json:"headers"` // Map with extra HTTP headers.
}
SetExtraHTTPHeadersParams specifies whether to always send extra HTTP headers with the requests from this page.
func SetExtraHTTPHeaders ¶
func SetExtraHTTPHeaders(headers Headers) *SetExtraHTTPHeadersParams
SetExtraHTTPHeaders specifies whether to always send extra HTTP headers with the requests from this page.
parameters:
headers - Map with extra HTTP headers.
func (*SetExtraHTTPHeadersParams) Do ¶
Do executes Network.setExtraHTTPHeaders against the provided context.
func (SetExtraHTTPHeadersParams) MarshalEasyJSON ¶
func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetExtraHTTPHeadersParams) MarshalJSON ¶
func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetExtraHTTPHeadersParams) UnmarshalEasyJSON ¶
func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetExtraHTTPHeadersParams) UnmarshalJSON ¶
func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SetRequestInterceptionParams ¶
type SetRequestInterceptionParams struct {
Patterns []*RequestPattern `json:"patterns"` // Requests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.
}
SetRequestInterceptionParams sets the requests to intercept that match a the provided patterns and optionally resource types.
func SetRequestInterception ¶
func SetRequestInterception(patterns []*RequestPattern) *SetRequestInterceptionParams
SetRequestInterception sets the requests to intercept that match a the provided patterns and optionally resource types.
parameters:
patterns - Requests matching any of these patterns will be forwarded and wait for the corresponding continueInterceptedRequest call.
func (*SetRequestInterceptionParams) Do ¶
Do executes Network.setRequestInterception against the provided context.
func (SetRequestInterceptionParams) MarshalEasyJSON ¶
func (v SetRequestInterceptionParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetRequestInterceptionParams) MarshalJSON ¶
func (v SetRequestInterceptionParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetRequestInterceptionParams) UnmarshalEasyJSON ¶
func (v *SetRequestInterceptionParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetRequestInterceptionParams) UnmarshalJSON ¶
func (v *SetRequestInterceptionParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 *cdp.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).
func (SignedCertificateTimestamp) MarshalEasyJSON ¶
func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SignedCertificateTimestamp) MarshalJSON ¶
func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SignedCertificateTimestamp) UnmarshalEasyJSON ¶
func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SignedCertificateTimestamp) UnmarshalJSON ¶
func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SignedExchangeError ¶
type SignedExchangeError struct { Message string `json:"message"` // Error message. SignatureIndex int64 `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.
func (SignedExchangeError) MarshalEasyJSON ¶
func (v SignedExchangeError) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SignedExchangeError) MarshalJSON ¶
func (v SignedExchangeError) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SignedExchangeError) UnmarshalEasyJSON ¶
func (v *SignedExchangeError) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SignedExchangeError) UnmarshalJSON ¶
func (v *SignedExchangeError) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SignedExchangeErrorField ¶
type SignedExchangeErrorField string
SignedExchangeErrorField field type for a signed exchange related error.
const ( SignedExchangeErrorFieldSignatureSig SignedExchangeErrorField = "signatureSig" SignedExchangeErrorFieldSignatureIntegrity SignedExchangeErrorField = "signatureIntegrity" SignedExchangeErrorFieldSignatureCertURL SignedExchangeErrorField = "signatureCertUrl" SignedExchangeErrorFieldSignatureCertSha256 SignedExchangeErrorField = "signatureCertSha256" SignedExchangeErrorFieldSignatureValidityURL SignedExchangeErrorField = "signatureValidityUrl" SignedExchangeErrorFieldSignatureTimestamps SignedExchangeErrorField = "signatureTimestamps" )
SignedExchangeErrorField values.
func (SignedExchangeErrorField) MarshalEasyJSON ¶
func (t SignedExchangeErrorField) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (SignedExchangeErrorField) MarshalJSON ¶
func (t SignedExchangeErrorField) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (SignedExchangeErrorField) String ¶
func (t SignedExchangeErrorField) String() string
String returns the SignedExchangeErrorField as string value.
func (*SignedExchangeErrorField) UnmarshalEasyJSON ¶
func (t *SignedExchangeErrorField) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*SignedExchangeErrorField) UnmarshalJSON ¶
func (t *SignedExchangeErrorField) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type SignedExchangeHeader ¶
type SignedExchangeHeader struct { RequestURL string `json:"requestUrl"` // Signed exchange request URL. ResponseCode int64 `json:"responseCode"` // Signed exchange response code. ResponseHeaders Headers `json:"responseHeaders"` // Signed exchange response headers. Signatures []*SignedExchangeSignature `json:"signatures"` // Signed exchange response signature. }
SignedExchangeHeader information about a signed exchange header. https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation.
func (SignedExchangeHeader) MarshalEasyJSON ¶
func (v SignedExchangeHeader) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SignedExchangeHeader) MarshalJSON ¶
func (v SignedExchangeHeader) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SignedExchangeHeader) UnmarshalEasyJSON ¶
func (v *SignedExchangeHeader) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SignedExchangeHeader) UnmarshalJSON ¶
func (v *SignedExchangeHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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.
func (SignedExchangeInfo) MarshalEasyJSON ¶
func (v SignedExchangeInfo) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SignedExchangeInfo) MarshalJSON ¶
func (v SignedExchangeInfo) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SignedExchangeInfo) UnmarshalEasyJSON ¶
func (v *SignedExchangeInfo) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SignedExchangeInfo) UnmarshalJSON ¶
func (v *SignedExchangeInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 int64 `json:"date"` // Signed exchange signature date. Expires int64 `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.
func (SignedExchangeSignature) MarshalEasyJSON ¶
func (v SignedExchangeSignature) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SignedExchangeSignature) MarshalJSON ¶
func (v SignedExchangeSignature) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SignedExchangeSignature) UnmarshalEasyJSON ¶
func (v *SignedExchangeSignature) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SignedExchangeSignature) UnmarshalJSON ¶
func (v *SignedExchangeSignature) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TakeResponseBodyForInterceptionAsStreamParams ¶
type TakeResponseBodyForInterceptionAsStreamParams struct {
InterceptionID InterceptionID `json:"interceptionId"`
}
TakeResponseBodyForInterceptionAsStreamParams returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.
func TakeResponseBodyForInterceptionAsStream ¶
func TakeResponseBodyForInterceptionAsStream(interceptionID InterceptionID) *TakeResponseBodyForInterceptionAsStreamParams
TakeResponseBodyForInterceptionAsStream returns a handle to the stream representing the response body. Note that after this command, the intercepted request can't be continued as is -- you either need to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified.
parameters:
interceptionID
func (*TakeResponseBodyForInterceptionAsStreamParams) Do ¶
func (p *TakeResponseBodyForInterceptionAsStreamParams) Do(ctxt context.Context, h cdp.Executor) (stream io.StreamHandle, err error)
Do executes Network.takeResponseBodyForInterceptionAsStream against the provided context.
returns:
stream
func (TakeResponseBodyForInterceptionAsStreamParams) MarshalEasyJSON ¶
func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TakeResponseBodyForInterceptionAsStreamParams) MarshalJSON ¶
func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TakeResponseBodyForInterceptionAsStreamParams) UnmarshalEasyJSON ¶
func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TakeResponseBodyForInterceptionAsStreamParams) UnmarshalJSON ¶
func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type TakeResponseBodyForInterceptionAsStreamReturns ¶
type TakeResponseBodyForInterceptionAsStreamReturns struct {
Stream io.StreamHandle `json:"stream,omitempty"`
}
TakeResponseBodyForInterceptionAsStreamReturns return values.
func (TakeResponseBodyForInterceptionAsStreamReturns) MarshalEasyJSON ¶
func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TakeResponseBodyForInterceptionAsStreamReturns) MarshalJSON ¶
func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalEasyJSON ¶
func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalJSON ¶
func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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.
func (WebSocketFrame) MarshalEasyJSON ¶
func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (WebSocketFrame) MarshalJSON ¶
func (v WebSocketFrame) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*WebSocketFrame) UnmarshalEasyJSON ¶
func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*WebSocketFrame) UnmarshalJSON ¶
func (v *WebSocketFrame) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type WebSocketRequest ¶
type WebSocketRequest struct {
Headers Headers `json:"headers"` // HTTP request headers.
}
WebSocketRequest webSocket request data.
func (WebSocketRequest) MarshalEasyJSON ¶
func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (WebSocketRequest) MarshalJSON ¶
func (v WebSocketRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*WebSocketRequest) UnmarshalEasyJSON ¶
func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*WebSocketRequest) UnmarshalJSON ¶
func (v *WebSocketRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type WebSocketResponse ¶
type WebSocketResponse struct { Status int64 `json:"status"` // HTTP response status code. StatusText string `json:"statusText"` // HTTP response status text. Headers Headers `json:"headers"` // HTTP response headers. HeadersText string `json:"headersText,omitempty"` // 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.
func (WebSocketResponse) MarshalEasyJSON ¶
func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (WebSocketResponse) MarshalJSON ¶
func (v WebSocketResponse) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*WebSocketResponse) UnmarshalEasyJSON ¶
func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*WebSocketResponse) UnmarshalJSON ¶
func (v *WebSocketResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface