cdproto: github.com/chromedp/cdproto/network Index | Files

package network

import "github.com/chromedp/cdproto/network"

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

Package Files

easyjson.go events.go network.go types.go

Constants

const (
    CommandClearBrowserCache                       = "Network.clearBrowserCache"
    CommandClearBrowserCookies                     = "Network.clearBrowserCookies"
    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"
    CommandSetAttachDebugStack                     = "Network.setAttachDebugStack"
    CommandGetSecurityIsolationStatus              = "Network.getSecurityIsolationStatus"
    CommandLoadNetworkResource                     = "Network.loadNetworkResource"
)

Command names.

type AuthChallenge Uses

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.

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

func (AuthChallenge) MarshalEasyJSON Uses

func (v AuthChallenge) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuthChallenge) MarshalJSON Uses

func (v AuthChallenge) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuthChallenge) UnmarshalEasyJSON Uses

func (v *AuthChallenge) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuthChallenge) UnmarshalJSON Uses

func (v *AuthChallenge) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuthChallengeResponse Uses

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.

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

func (AuthChallengeResponse) MarshalEasyJSON Uses

func (v AuthChallengeResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuthChallengeResponse) MarshalJSON Uses

func (v AuthChallengeResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuthChallengeResponse) UnmarshalEasyJSON Uses

func (v *AuthChallengeResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuthChallengeResponse) UnmarshalJSON Uses

func (v *AuthChallengeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuthChallengeResponseResponse Uses

type AuthChallengeResponseResponse string

AuthChallengeResponseResponse the decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box.

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

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

AuthChallengeResponseResponse values.

func (AuthChallengeResponseResponse) MarshalEasyJSON Uses

func (t AuthChallengeResponseResponse) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (AuthChallengeResponseResponse) MarshalJSON Uses

func (t AuthChallengeResponseResponse) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (AuthChallengeResponseResponse) String Uses

func (t AuthChallengeResponseResponse) String() string

String returns the AuthChallengeResponseResponse as string value.

func (*AuthChallengeResponseResponse) UnmarshalEasyJSON Uses

func (t *AuthChallengeResponseResponse) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*AuthChallengeResponseResponse) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type AuthChallengeSource Uses

type AuthChallengeSource string

AuthChallengeSource source of the authentication challenge.

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

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

AuthChallengeSource values.

func (AuthChallengeSource) MarshalEasyJSON Uses

func (t AuthChallengeSource) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (AuthChallengeSource) MarshalJSON Uses

func (t AuthChallengeSource) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (AuthChallengeSource) String Uses

func (t AuthChallengeSource) String() string

String returns the AuthChallengeSource as string value.

func (*AuthChallengeSource) UnmarshalEasyJSON Uses

func (t *AuthChallengeSource) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*AuthChallengeSource) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type BlockedCookieWithReason Uses

type BlockedCookieWithReason struct {
    BlockedReasons []CookieBlockedReason `json:"blockedReasons"` // The reason(s) the cookie was blocked.
    Cookie         *Cookie               `json:"cookie"`         // The cookie object representing the cookie which was not sent.
}

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

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

func (BlockedCookieWithReason) MarshalEasyJSON Uses

func (v BlockedCookieWithReason) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BlockedCookieWithReason) MarshalJSON Uses

func (v BlockedCookieWithReason) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BlockedCookieWithReason) UnmarshalEasyJSON Uses

func (v *BlockedCookieWithReason) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BlockedCookieWithReason) UnmarshalJSON Uses

func (v *BlockedCookieWithReason) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type BlockedReason Uses

type BlockedReason string

BlockedReason the reason why request was blocked.

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

const (
    BlockedReasonOther                                             BlockedReason = "other"
    BlockedReasonCsp                                               BlockedReason = "csp"
    BlockedReasonMixedContent                                      BlockedReason = "mixed-content"
    BlockedReasonOrigin                                            BlockedReason = "origin"
    BlockedReasonInspector                                         BlockedReason = "inspector"
    BlockedReasonSubresourceFilter                                 BlockedReason = "subresource-filter"
    BlockedReasonContentType                                       BlockedReason = "content-type"
    BlockedReasonCollapsedByClient                                 BlockedReason = "collapsed-by-client"
    BlockedReasonCoepFrameResourceNeedsCoepHeader                  BlockedReason = "coep-frame-resource-needs-coep-header"
    BlockedReasonCoopSandboxedIframeCannotNavigateToCoopPage       BlockedReason = "coop-sandboxed-iframe-cannot-navigate-to-coop-page"
    BlockedReasonCorpNotSameOrigin                                 BlockedReason = "corp-not-same-origin"
    BlockedReasonCorpNotSameOriginAfterDefaultedToSameOriginByCoep BlockedReason = "corp-not-same-origin-after-defaulted-to-same-origin-by-coep"
    BlockedReasonCorpNotSameSite                                   BlockedReason = "corp-not-same-site"
)

BlockedReason values.

func (BlockedReason) MarshalEasyJSON Uses

func (t BlockedReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (BlockedReason) MarshalJSON Uses

func (t BlockedReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (BlockedReason) String Uses

func (t BlockedReason) String() string

String returns the BlockedReason as string value.

func (*BlockedReason) UnmarshalEasyJSON Uses

func (t *BlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*BlockedReason) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type BlockedSetCookieWithReason Uses

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

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

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

func (BlockedSetCookieWithReason) MarshalEasyJSON Uses

func (v BlockedSetCookieWithReason) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BlockedSetCookieWithReason) MarshalJSON Uses

func (v BlockedSetCookieWithReason) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BlockedSetCookieWithReason) UnmarshalEasyJSON Uses

func (v *BlockedSetCookieWithReason) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BlockedSetCookieWithReason) UnmarshalJSON Uses

func (v *BlockedSetCookieWithReason) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CachedResource Uses

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.

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

func (CachedResource) MarshalEasyJSON Uses

func (v CachedResource) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CachedResource) MarshalJSON Uses

func (v CachedResource) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CachedResource) UnmarshalEasyJSON Uses

func (v *CachedResource) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CachedResource) UnmarshalJSON Uses

func (v *CachedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CertificateTransparencyCompliance Uses

type CertificateTransparencyCompliance string

CertificateTransparencyCompliance whether the request complied with Certificate Transparency policy.

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

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

CertificateTransparencyCompliance values.

func (CertificateTransparencyCompliance) MarshalEasyJSON Uses

func (t CertificateTransparencyCompliance) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CertificateTransparencyCompliance) MarshalJSON Uses

func (t CertificateTransparencyCompliance) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CertificateTransparencyCompliance) String Uses

func (t CertificateTransparencyCompliance) String() string

String returns the CertificateTransparencyCompliance as string value.

func (*CertificateTransparencyCompliance) UnmarshalEasyJSON Uses

func (t *CertificateTransparencyCompliance) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CertificateTransparencyCompliance) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ClearBrowserCacheParams Uses

type ClearBrowserCacheParams struct{}

ClearBrowserCacheParams clears browser cache.

func ClearBrowserCache Uses

func ClearBrowserCache() *ClearBrowserCacheParams

ClearBrowserCache clears browser cache.

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

func (*ClearBrowserCacheParams) Do Uses

func (p *ClearBrowserCacheParams) Do(ctx context.Context) (err error)

Do executes Network.clearBrowserCache against the provided context.

func (ClearBrowserCacheParams) MarshalEasyJSON Uses

func (v ClearBrowserCacheParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearBrowserCacheParams) MarshalJSON Uses

func (v ClearBrowserCacheParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearBrowserCacheParams) UnmarshalEasyJSON Uses

func (v *ClearBrowserCacheParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearBrowserCacheParams) UnmarshalJSON Uses

func (v *ClearBrowserCacheParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ClearBrowserCookiesParams Uses

type ClearBrowserCookiesParams struct{}

ClearBrowserCookiesParams clears browser cookies.

func ClearBrowserCookies Uses

func ClearBrowserCookies() *ClearBrowserCookiesParams

ClearBrowserCookies clears browser cookies.

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

func (*ClearBrowserCookiesParams) Do Uses

func (p *ClearBrowserCookiesParams) Do(ctx context.Context) (err error)

Do executes Network.clearBrowserCookies against the provided context.

func (ClearBrowserCookiesParams) MarshalEasyJSON Uses

func (v ClearBrowserCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearBrowserCookiesParams) MarshalJSON Uses

func (v ClearBrowserCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearBrowserCookiesParams) UnmarshalEasyJSON Uses

func (v *ClearBrowserCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearBrowserCookiesParams) UnmarshalJSON Uses

func (v *ClearBrowserCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ClientSecurityState Uses

type ClientSecurityState struct {
    InitiatorIsSecureContext    bool                        `json:"initiatorIsSecureContext"`
    InitiatorIPAddressSpace     IPAddressSpace              `json:"initiatorIPAddressSpace"`
    PrivateNetworkRequestPolicy PrivateNetworkRequestPolicy `json:"privateNetworkRequestPolicy"`
}

ClientSecurityState [no description].

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

func (ClientSecurityState) MarshalEasyJSON Uses

func (v ClientSecurityState) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClientSecurityState) MarshalJSON Uses

func (v ClientSecurityState) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClientSecurityState) UnmarshalEasyJSON Uses

func (v *ClientSecurityState) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClientSecurityState) UnmarshalJSON Uses

func (v *ClientSecurityState) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ConnectionType Uses

type ConnectionType string

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

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

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

ConnectionType values.

func (ConnectionType) MarshalEasyJSON Uses

func (t ConnectionType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ConnectionType) MarshalJSON Uses

func (t ConnectionType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ConnectionType) String Uses

func (t ConnectionType) String() string

String returns the ConnectionType as string value.

func (*ConnectionType) UnmarshalEasyJSON Uses

func (t *ConnectionType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ConnectionType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

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.
    Priority  CookiePriority `json:"priority"`           // Cookie Priority
    SameParty bool           `json:"sameParty"`          // True if cookie is SameParty.
}

Cookie cookie object.

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

func (Cookie) MarshalEasyJSON Uses

func (v Cookie) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Cookie) MarshalJSON Uses

func (v Cookie) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Cookie) UnmarshalEasyJSON Uses

func (v *Cookie) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Cookie) UnmarshalJSON Uses

func (v *Cookie) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CookieBlockedReason Uses

type CookieBlockedReason string

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

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

const (
    CookieBlockedReasonSecureOnly                               CookieBlockedReason = "SecureOnly"
    CookieBlockedReasonNotOnPath                                CookieBlockedReason = "NotOnPath"
    CookieBlockedReasonDomainMismatch                           CookieBlockedReason = "DomainMismatch"
    CookieBlockedReasonSameSiteStrict                           CookieBlockedReason = "SameSiteStrict"
    CookieBlockedReasonSameSiteLax                              CookieBlockedReason = "SameSiteLax"
    CookieBlockedReasonSameSiteUnspecifiedTreatedAsLax          CookieBlockedReason = "SameSiteUnspecifiedTreatedAsLax"
    CookieBlockedReasonSameSiteNoneInsecure                     CookieBlockedReason = "SameSiteNoneInsecure"
    CookieBlockedReasonUserPreferences                          CookieBlockedReason = "UserPreferences"
    CookieBlockedReasonUnknownError                             CookieBlockedReason = "UnknownError"
    CookieBlockedReasonSchemefulSameSiteStrict                  CookieBlockedReason = "SchemefulSameSiteStrict"
    CookieBlockedReasonSchemefulSameSiteLax                     CookieBlockedReason = "SchemefulSameSiteLax"
    CookieBlockedReasonSchemefulSameSiteUnspecifiedTreatedAsLax CookieBlockedReason = "SchemefulSameSiteUnspecifiedTreatedAsLax"
)

CookieBlockedReason values.

func (CookieBlockedReason) MarshalEasyJSON Uses

func (t CookieBlockedReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CookieBlockedReason) MarshalJSON Uses

func (t CookieBlockedReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CookieBlockedReason) String Uses

func (t CookieBlockedReason) String() string

String returns the CookieBlockedReason as string value.

func (*CookieBlockedReason) UnmarshalEasyJSON Uses

func (t *CookieBlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CookieBlockedReason) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CookieParam Uses

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
    Priority CookiePriority      `json:"priority,omitempty"` // Cookie Priority.
}

CookieParam cookie parameter object.

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

func (CookieParam) MarshalEasyJSON Uses

func (v CookieParam) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CookieParam) MarshalJSON Uses

func (v CookieParam) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CookieParam) UnmarshalEasyJSON Uses

func (v *CookieParam) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CookieParam) UnmarshalJSON Uses

func (v *CookieParam) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CookiePriority Uses

type CookiePriority string

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

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

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

CookiePriority values.

func (CookiePriority) MarshalEasyJSON Uses

func (t CookiePriority) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CookiePriority) MarshalJSON Uses

func (t CookiePriority) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CookiePriority) String Uses

func (t CookiePriority) String() string

String returns the CookiePriority as string value.

func (*CookiePriority) UnmarshalEasyJSON Uses

func (t *CookiePriority) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CookiePriority) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CookieSameSite Uses

type CookieSameSite string

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

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

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

CookieSameSite values.

func (CookieSameSite) MarshalEasyJSON Uses

func (t CookieSameSite) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CookieSameSite) MarshalJSON Uses

func (t CookieSameSite) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CookieSameSite) String Uses

func (t CookieSameSite) String() string

String returns the CookieSameSite as string value.

func (*CookieSameSite) UnmarshalEasyJSON Uses

func (t *CookieSameSite) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CookieSameSite) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CorsError Uses

type CorsError string

CorsError the reason why request was blocked.

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

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

CorsError values.

func (CorsError) MarshalEasyJSON Uses

func (t CorsError) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CorsError) MarshalJSON Uses

func (t CorsError) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CorsError) String Uses

func (t CorsError) String() string

String returns the CorsError as string value.

func (*CorsError) UnmarshalEasyJSON Uses

func (t *CorsError) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CorsError) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CorsErrorStatus Uses

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

CorsErrorStatus [no description].

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

func (CorsErrorStatus) MarshalEasyJSON Uses

func (v CorsErrorStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CorsErrorStatus) MarshalJSON Uses

func (v CorsErrorStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CorsErrorStatus) UnmarshalEasyJSON Uses

func (v *CorsErrorStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CorsErrorStatus) UnmarshalJSON Uses

func (v *CorsErrorStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CrossOriginEmbedderPolicyStatus Uses

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

CrossOriginEmbedderPolicyStatus [no description].

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

func (CrossOriginEmbedderPolicyStatus) MarshalEasyJSON Uses

func (v CrossOriginEmbedderPolicyStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CrossOriginEmbedderPolicyStatus) MarshalJSON Uses

func (v CrossOriginEmbedderPolicyStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CrossOriginEmbedderPolicyStatus) UnmarshalEasyJSON Uses

func (v *CrossOriginEmbedderPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CrossOriginEmbedderPolicyStatus) UnmarshalJSON Uses

func (v *CrossOriginEmbedderPolicyStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CrossOriginEmbedderPolicyValue Uses

type CrossOriginEmbedderPolicyValue string

CrossOriginEmbedderPolicyValue [no description].

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

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

CrossOriginEmbedderPolicyValue values.

func (CrossOriginEmbedderPolicyValue) MarshalEasyJSON Uses

func (t CrossOriginEmbedderPolicyValue) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CrossOriginEmbedderPolicyValue) MarshalJSON Uses

func (t CrossOriginEmbedderPolicyValue) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CrossOriginEmbedderPolicyValue) String Uses

func (t CrossOriginEmbedderPolicyValue) String() string

String returns the CrossOriginEmbedderPolicyValue as string value.

func (*CrossOriginEmbedderPolicyValue) UnmarshalEasyJSON Uses

func (t *CrossOriginEmbedderPolicyValue) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CrossOriginEmbedderPolicyValue) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type CrossOriginOpenerPolicyStatus Uses

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

CrossOriginOpenerPolicyStatus [no description].

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

func (CrossOriginOpenerPolicyStatus) MarshalEasyJSON Uses

func (v CrossOriginOpenerPolicyStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CrossOriginOpenerPolicyStatus) MarshalJSON Uses

func (v CrossOriginOpenerPolicyStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CrossOriginOpenerPolicyStatus) UnmarshalEasyJSON Uses

func (v *CrossOriginOpenerPolicyStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CrossOriginOpenerPolicyStatus) UnmarshalJSON Uses

func (v *CrossOriginOpenerPolicyStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CrossOriginOpenerPolicyValue Uses

type CrossOriginOpenerPolicyValue string

CrossOriginOpenerPolicyValue [no description].

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

const (
    CrossOriginOpenerPolicyValueSameOrigin            CrossOriginOpenerPolicyValue = "SameOrigin"
    CrossOriginOpenerPolicyValueSameOriginAllowPopups CrossOriginOpenerPolicyValue = "SameOriginAllowPopups"
    CrossOriginOpenerPolicyValueUnsafeNone            CrossOriginOpenerPolicyValue = "UnsafeNone"
    CrossOriginOpenerPolicyValueSameOriginPlusCoep    CrossOriginOpenerPolicyValue = "SameOriginPlusCoep"
)

CrossOriginOpenerPolicyValue values.

func (CrossOriginOpenerPolicyValue) MarshalEasyJSON Uses

func (t CrossOriginOpenerPolicyValue) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CrossOriginOpenerPolicyValue) MarshalJSON Uses

func (t CrossOriginOpenerPolicyValue) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (CrossOriginOpenerPolicyValue) String Uses

func (t CrossOriginOpenerPolicyValue) String() string

String returns the CrossOriginOpenerPolicyValue as string value.

func (*CrossOriginOpenerPolicyValue) UnmarshalEasyJSON Uses

func (t *CrossOriginOpenerPolicyValue) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CrossOriginOpenerPolicyValue) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type DeleteCookiesParams Uses

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 Uses

func DeleteCookies(name string) *DeleteCookiesParams

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

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

parameters:

name - Name of the cookies to remove.

func (*DeleteCookiesParams) Do Uses

func (p *DeleteCookiesParams) Do(ctx context.Context) (err error)

Do executes Network.deleteCookies against the provided context.

func (DeleteCookiesParams) MarshalEasyJSON Uses

func (v DeleteCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DeleteCookiesParams) MarshalJSON Uses

func (v DeleteCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DeleteCookiesParams) UnmarshalEasyJSON Uses

func (v *DeleteCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DeleteCookiesParams) UnmarshalJSON Uses

func (v *DeleteCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (DeleteCookiesParams) WithDomain Uses

func (p DeleteCookiesParams) WithDomain(domain string) *DeleteCookiesParams

WithDomain if specified, deletes only cookies with the exact domain.

func (DeleteCookiesParams) WithPath Uses

func (p DeleteCookiesParams) WithPath(path string) *DeleteCookiesParams

WithPath if specified, deletes only cookies with the exact path.

func (DeleteCookiesParams) WithURL Uses

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 Uses

type DisableParams struct{}

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

func Disable Uses

func Disable() *DisableParams

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

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

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Network.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EmulateNetworkConditionsParams Uses

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 Uses

func EmulateNetworkConditions(offline bool, latency float64, downloadThroughput float64, uploadThroughput float64) *EmulateNetworkConditionsParams

EmulateNetworkConditions activates emulation of network conditions.

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

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 Uses

func (p *EmulateNetworkConditionsParams) Do(ctx context.Context) (err error)

Do executes Network.emulateNetworkConditions against the provided context.

func (EmulateNetworkConditionsParams) MarshalEasyJSON Uses

func (v EmulateNetworkConditionsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EmulateNetworkConditionsParams) MarshalJSON Uses

func (v EmulateNetworkConditionsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EmulateNetworkConditionsParams) UnmarshalEasyJSON Uses

func (v *EmulateNetworkConditionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EmulateNetworkConditionsParams) UnmarshalJSON Uses

func (v *EmulateNetworkConditionsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (EmulateNetworkConditionsParams) WithConnectionType Uses

func (p EmulateNetworkConditionsParams) WithConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsParams

WithConnectionType connection type if known.

type EnableParams Uses

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 Uses

func Enable() *EnableParams

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

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

parameters:

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Network.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (EnableParams) WithMaxPostDataSize Uses

func (p EnableParams) WithMaxPostDataSize(maxPostDataSize int64) *EnableParams

WithMaxPostDataSize longest post body size (in bytes) that would be included in requestWillBeSent notification.

func (EnableParams) WithMaxResourceBufferSize Uses

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 Uses

func (p EnableParams) WithMaxTotalBufferSize(maxTotalBufferSize int64) *EnableParams

WithMaxTotalBufferSize buffer size in bytes to use when preserving network payloads (XHRs, etc).

type ErrorReason Uses

type ErrorReason string

ErrorReason network level fetch failure reason.

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

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

ErrorReason values.

func (ErrorReason) MarshalEasyJSON Uses

func (t ErrorReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ErrorReason) MarshalJSON Uses

func (t ErrorReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ErrorReason) String Uses

func (t ErrorReason) String() string

String returns the ErrorReason as string value.

func (*ErrorReason) UnmarshalEasyJSON Uses

func (t *ErrorReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ErrorReason) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type EventDataReceived Uses

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.

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

func (EventDataReceived) MarshalEasyJSON Uses

func (v EventDataReceived) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDataReceived) MarshalJSON Uses

func (v EventDataReceived) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDataReceived) UnmarshalEasyJSON Uses

func (v *EventDataReceived) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDataReceived) UnmarshalJSON Uses

func (v *EventDataReceived) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventEventSourceMessageReceived Uses

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

EventEventSourceMessageReceived fired when EventSource message is received.

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

func (EventEventSourceMessageReceived) MarshalEasyJSON Uses

func (v EventEventSourceMessageReceived) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventEventSourceMessageReceived) MarshalJSON Uses

func (v EventEventSourceMessageReceived) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventEventSourceMessageReceived) UnmarshalEasyJSON Uses

func (v *EventEventSourceMessageReceived) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventEventSourceMessageReceived) UnmarshalJSON Uses

func (v *EventEventSourceMessageReceived) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventLoadingFailed Uses

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.
    CorsErrorStatus *CorsErrorStatus   `json:"corsErrorStatus,omitempty"` // The reason why loading was blocked by CORS, if any.
}

EventLoadingFailed fired when HTTP request has failed to load.

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

func (EventLoadingFailed) MarshalEasyJSON Uses

func (v EventLoadingFailed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLoadingFailed) MarshalJSON Uses

func (v EventLoadingFailed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventLoadingFailed) UnmarshalEasyJSON Uses

func (v *EventLoadingFailed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLoadingFailed) UnmarshalJSON Uses

func (v *EventLoadingFailed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventLoadingFinished Uses

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.

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

func (EventLoadingFinished) MarshalEasyJSON Uses

func (v EventLoadingFinished) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLoadingFinished) MarshalJSON Uses

func (v EventLoadingFinished) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventLoadingFinished) UnmarshalEasyJSON Uses

func (v *EventLoadingFinished) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLoadingFinished) UnmarshalJSON Uses

func (v *EventLoadingFinished) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventRequestServedFromCache Uses

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

EventRequestServedFromCache fired if request ended up loading from cache.

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

func (EventRequestServedFromCache) MarshalEasyJSON Uses

func (v EventRequestServedFromCache) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventRequestServedFromCache) MarshalJSON Uses

func (v EventRequestServedFromCache) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventRequestServedFromCache) UnmarshalEasyJSON Uses

func (v *EventRequestServedFromCache) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventRequestServedFromCache) UnmarshalJSON Uses

func (v *EventRequestServedFromCache) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventRequestWillBeSent Uses

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.

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

func (EventRequestWillBeSent) MarshalEasyJSON Uses

func (v EventRequestWillBeSent) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventRequestWillBeSent) MarshalJSON Uses

func (v EventRequestWillBeSent) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventRequestWillBeSent) UnmarshalEasyJSON Uses

func (v *EventRequestWillBeSent) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventRequestWillBeSent) UnmarshalJSON Uses

func (v *EventRequestWillBeSent) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventRequestWillBeSentExtraInfo Uses

type EventRequestWillBeSentExtraInfo struct {
    RequestID           RequestID                  `json:"requestId"`                     // Request identifier. Used to match this information to an existing requestWillBeSent event.
    AssociatedCookies   []*BlockedCookieWithReason `json:"associatedCookies"`             // A list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReason field set.
    Headers             Headers                    `json:"headers"`                       // Raw request headers as they will be sent over the wire.
    ClientSecurityState *ClientSecurityState       `json:"clientSecurityState,omitempty"` // The client security state set for the request.
}

EventRequestWillBeSentExtraInfo fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.

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

func (EventRequestWillBeSentExtraInfo) MarshalEasyJSON Uses

func (v EventRequestWillBeSentExtraInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventRequestWillBeSentExtraInfo) MarshalJSON Uses

func (v EventRequestWillBeSentExtraInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventRequestWillBeSentExtraInfo) UnmarshalEasyJSON Uses

func (v *EventRequestWillBeSentExtraInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventRequestWillBeSentExtraInfo) UnmarshalJSON Uses

func (v *EventRequestWillBeSentExtraInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventResourceChangedPriority Uses

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

EventResourceChangedPriority fired when resource loading priority is changed.

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

func (EventResourceChangedPriority) MarshalEasyJSON Uses

func (v EventResourceChangedPriority) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResourceChangedPriority) MarshalJSON Uses

func (v EventResourceChangedPriority) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventResourceChangedPriority) UnmarshalEasyJSON Uses

func (v *EventResourceChangedPriority) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResourceChangedPriority) UnmarshalJSON Uses

func (v *EventResourceChangedPriority) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventResponseReceived Uses

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.

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

func (EventResponseReceived) MarshalEasyJSON Uses

func (v EventResponseReceived) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResponseReceived) MarshalJSON Uses

func (v EventResponseReceived) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventResponseReceived) UnmarshalEasyJSON Uses

func (v *EventResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResponseReceived) UnmarshalJSON Uses

func (v *EventResponseReceived) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventResponseReceivedExtraInfo Uses

type EventResponseReceivedExtraInfo struct {
    RequestID      RequestID                     `json:"requestId"`             // Request identifier. Used to match this information to another responseReceived event.
    BlockedCookies []*BlockedSetCookieWithReason `json:"blockedCookies"`        // A list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.
    Headers        Headers                       `json:"headers"`               // Raw response headers as they were received over the wire.
    HeadersText    string                        `json:"headersText,omitempty"` // Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.
}

EventResponseReceivedExtraInfo fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.

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

func (EventResponseReceivedExtraInfo) MarshalEasyJSON Uses

func (v EventResponseReceivedExtraInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResponseReceivedExtraInfo) MarshalJSON Uses

func (v EventResponseReceivedExtraInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventResponseReceivedExtraInfo) UnmarshalEasyJSON Uses

func (v *EventResponseReceivedExtraInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResponseReceivedExtraInfo) UnmarshalJSON Uses

func (v *EventResponseReceivedExtraInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventSignedExchangeReceived Uses

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

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

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

func (EventSignedExchangeReceived) MarshalEasyJSON Uses

func (v EventSignedExchangeReceived) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventSignedExchangeReceived) MarshalJSON Uses

func (v EventSignedExchangeReceived) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventSignedExchangeReceived) UnmarshalEasyJSON Uses

func (v *EventSignedExchangeReceived) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventSignedExchangeReceived) UnmarshalJSON Uses

func (v *EventSignedExchangeReceived) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventTrustTokenOperationDone Uses

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

EventTrustTokenOperationDone fired exactly once for each Trust Token operation. Depending on the type of the operation and whether the operation succeeded or failed, the event is fired before the corresponding request was sent or after the response was received.

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

func (EventTrustTokenOperationDone) MarshalEasyJSON Uses

func (v EventTrustTokenOperationDone) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventTrustTokenOperationDone) MarshalJSON Uses

func (v EventTrustTokenOperationDone) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventTrustTokenOperationDone) UnmarshalEasyJSON Uses

func (v *EventTrustTokenOperationDone) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventTrustTokenOperationDone) UnmarshalJSON Uses

func (v *EventTrustTokenOperationDone) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketClosed Uses

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

EventWebSocketClosed fired when WebSocket is closed.

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

func (EventWebSocketClosed) MarshalEasyJSON Uses

func (v EventWebSocketClosed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketClosed) MarshalJSON Uses

func (v EventWebSocketClosed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketClosed) UnmarshalEasyJSON Uses

func (v *EventWebSocketClosed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketClosed) UnmarshalJSON Uses

func (v *EventWebSocketClosed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketCreated Uses

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.

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

func (EventWebSocketCreated) MarshalEasyJSON Uses

func (v EventWebSocketCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketCreated) MarshalJSON Uses

func (v EventWebSocketCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketCreated) UnmarshalEasyJSON Uses

func (v *EventWebSocketCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketCreated) UnmarshalJSON Uses

func (v *EventWebSocketCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketFrameError Uses

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

EventWebSocketFrameError fired when WebSocket message error occurs.

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

func (EventWebSocketFrameError) MarshalEasyJSON Uses

func (v EventWebSocketFrameError) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketFrameError) MarshalJSON Uses

func (v EventWebSocketFrameError) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketFrameError) UnmarshalEasyJSON Uses

func (v *EventWebSocketFrameError) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketFrameError) UnmarshalJSON Uses

func (v *EventWebSocketFrameError) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketFrameReceived Uses

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

EventWebSocketFrameReceived fired when WebSocket message is received.

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

func (EventWebSocketFrameReceived) MarshalEasyJSON Uses

func (v EventWebSocketFrameReceived) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketFrameReceived) MarshalJSON Uses

func (v EventWebSocketFrameReceived) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketFrameReceived) UnmarshalEasyJSON Uses

func (v *EventWebSocketFrameReceived) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketFrameReceived) UnmarshalJSON Uses

func (v *EventWebSocketFrameReceived) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketFrameSent Uses

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

EventWebSocketFrameSent fired when WebSocket message is sent.

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

func (EventWebSocketFrameSent) MarshalEasyJSON Uses

func (v EventWebSocketFrameSent) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketFrameSent) MarshalJSON Uses

func (v EventWebSocketFrameSent) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketFrameSent) UnmarshalEasyJSON Uses

func (v *EventWebSocketFrameSent) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketFrameSent) UnmarshalJSON Uses

func (v *EventWebSocketFrameSent) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketHandshakeResponseReceived Uses

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

EventWebSocketHandshakeResponseReceived fired when WebSocket handshake response becomes available.

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

func (EventWebSocketHandshakeResponseReceived) MarshalEasyJSON Uses

func (v EventWebSocketHandshakeResponseReceived) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketHandshakeResponseReceived) MarshalJSON Uses

func (v EventWebSocketHandshakeResponseReceived) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON Uses

func (v *EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketHandshakeResponseReceived) UnmarshalJSON Uses

func (v *EventWebSocketHandshakeResponseReceived) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketWillSendHandshakeRequest Uses

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

EventWebSocketWillSendHandshakeRequest fired when WebSocket is about to initiate handshake.

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

func (EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON Uses

func (v EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketWillSendHandshakeRequest) MarshalJSON Uses

func (v EventWebSocketWillSendHandshakeRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON Uses

func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketWillSendHandshakeRequest) UnmarshalJSON Uses

func (v *EventWebSocketWillSendHandshakeRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebTransportClosed Uses

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

EventWebTransportClosed [no description].

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

func (EventWebTransportClosed) MarshalEasyJSON Uses

func (v EventWebTransportClosed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebTransportClosed) MarshalJSON Uses

func (v EventWebTransportClosed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebTransportClosed) UnmarshalEasyJSON Uses

func (v *EventWebTransportClosed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebTransportClosed) UnmarshalJSON Uses

func (v *EventWebTransportClosed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventWebTransportCreated Uses

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

EventWebTransportCreated fired upon WebTransport creation.

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

func (EventWebTransportCreated) MarshalEasyJSON Uses

func (v EventWebTransportCreated) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebTransportCreated) MarshalJSON Uses

func (v EventWebTransportCreated) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventWebTransportCreated) UnmarshalEasyJSON Uses

func (v *EventWebTransportCreated) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebTransportCreated) UnmarshalJSON Uses

func (v *EventWebTransportCreated) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetAllCookiesParams Uses

type GetAllCookiesParams struct{}

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

func GetAllCookies Uses

func GetAllCookies() *GetAllCookiesParams

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

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

func (*GetAllCookiesParams) Do Uses

func (p *GetAllCookiesParams) Do(ctx context.Context) (cookies []*Cookie, err error)

Do executes Network.getAllCookies against the provided context.

returns:

cookies - Array of cookie objects.

func (GetAllCookiesParams) MarshalEasyJSON Uses

func (v GetAllCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllCookiesParams) MarshalJSON Uses

func (v GetAllCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAllCookiesParams) UnmarshalEasyJSON Uses

func (v *GetAllCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllCookiesParams) UnmarshalJSON Uses

func (v *GetAllCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetAllCookiesReturns Uses

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

GetAllCookiesReturns return values.

func (GetAllCookiesReturns) MarshalEasyJSON Uses

func (v GetAllCookiesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllCookiesReturns) MarshalJSON Uses

func (v GetAllCookiesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetAllCookiesReturns) UnmarshalEasyJSON Uses

func (v *GetAllCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllCookiesReturns) UnmarshalJSON Uses

func (v *GetAllCookiesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCertificateParams Uses

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

GetCertificateParams returns the DER-encoded certificate.

func GetCertificate Uses

func GetCertificate(origin string) *GetCertificateParams

GetCertificate returns the DER-encoded certificate.

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

parameters:

origin - Origin to get certificate for.

func (*GetCertificateParams) Do Uses

func (p *GetCertificateParams) Do(ctx context.Context) (tableNames []string, err error)

Do executes Network.getCertificate against the provided context.

returns:

tableNames

func (GetCertificateParams) MarshalEasyJSON Uses

func (v GetCertificateParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCertificateParams) MarshalJSON Uses

func (v GetCertificateParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCertificateParams) UnmarshalEasyJSON Uses

func (v *GetCertificateParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCertificateParams) UnmarshalJSON Uses

func (v *GetCertificateParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCertificateReturns Uses

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

GetCertificateReturns return values.

func (GetCertificateReturns) MarshalEasyJSON Uses

func (v GetCertificateReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCertificateReturns) MarshalJSON Uses

func (v GetCertificateReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCertificateReturns) UnmarshalEasyJSON Uses

func (v *GetCertificateReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCertificateReturns) UnmarshalJSON Uses

func (v *GetCertificateReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCookiesParams Uses

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

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

func GetCookies Uses

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.

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

parameters:

func (*GetCookiesParams) Do Uses

func (p *GetCookiesParams) Do(ctx context.Context) (cookies []*Cookie, err error)

Do executes Network.getCookies against the provided context.

returns:

cookies - Array of cookie objects.

func (GetCookiesParams) MarshalEasyJSON Uses

func (v GetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCookiesParams) MarshalJSON Uses

func (v GetCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCookiesParams) UnmarshalEasyJSON Uses

func (v *GetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCookiesParams) UnmarshalJSON Uses

func (v *GetCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetCookiesParams) WithUrls Uses

func (p GetCookiesParams) WithUrls(urls []string) *GetCookiesParams

WithUrls the list of URLs for which applicable cookies will be fetched. If not specified, it's assumed to be set to the list containing the URLs of the page and all of its subframes.

type GetCookiesReturns Uses

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

GetCookiesReturns return values.

func (GetCookiesReturns) MarshalEasyJSON Uses

func (v GetCookiesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCookiesReturns) MarshalJSON Uses

func (v GetCookiesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCookiesReturns) UnmarshalEasyJSON Uses

func (v *GetCookiesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCookiesReturns) UnmarshalJSON Uses

func (v *GetCookiesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRequestPostDataParams Uses

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 Uses

func GetRequestPostData(requestID RequestID) *GetRequestPostDataParams

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

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

parameters:

requestID - Identifier of the network request to get content for.

func (*GetRequestPostDataParams) Do Uses

func (p *GetRequestPostDataParams) Do(ctx context.Context) (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 Uses

func (v GetRequestPostDataParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRequestPostDataParams) MarshalJSON Uses

func (v GetRequestPostDataParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRequestPostDataParams) UnmarshalEasyJSON Uses

func (v *GetRequestPostDataParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRequestPostDataParams) UnmarshalJSON Uses

func (v *GetRequestPostDataParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetRequestPostDataReturns Uses

type GetRequestPostDataReturns struct {
    PostData string `json:"postData,omitempty"` // Request body string, omitting files from multipart requests
}

GetRequestPostDataReturns return values.

func (GetRequestPostDataReturns) MarshalEasyJSON Uses

func (v GetRequestPostDataReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetRequestPostDataReturns) MarshalJSON Uses

func (v GetRequestPostDataReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetRequestPostDataReturns) UnmarshalEasyJSON Uses

func (v *GetRequestPostDataReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetRequestPostDataReturns) UnmarshalJSON Uses

func (v *GetRequestPostDataReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetResponseBodyForInterceptionParams Uses

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 Uses

func GetResponseBodyForInterception(interceptionID InterceptionID) *GetResponseBodyForInterceptionParams

GetResponseBodyForInterception returns content served for the given currently intercepted request.

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

parameters:

interceptionID - Identifier for the intercepted request to get body for.

func (*GetResponseBodyForInterceptionParams) Do Uses

func (p *GetResponseBodyForInterceptionParams) Do(ctx context.Context) (body []byte, err error)

Do executes Network.getResponseBodyForInterception against the provided context.

returns:

body - Response body.

func (GetResponseBodyForInterceptionParams) MarshalEasyJSON Uses

func (v GetResponseBodyForInterceptionParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResponseBodyForInterceptionParams) MarshalJSON Uses

func (v GetResponseBodyForInterceptionParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResponseBodyForInterceptionParams) UnmarshalEasyJSON Uses

func (v *GetResponseBodyForInterceptionParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResponseBodyForInterceptionParams) UnmarshalJSON Uses

func (v *GetResponseBodyForInterceptionParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetResponseBodyForInterceptionReturns Uses

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 Uses

func (v GetResponseBodyForInterceptionReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResponseBodyForInterceptionReturns) MarshalJSON Uses

func (v GetResponseBodyForInterceptionReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResponseBodyForInterceptionReturns) UnmarshalEasyJSON Uses

func (v *GetResponseBodyForInterceptionReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResponseBodyForInterceptionReturns) UnmarshalJSON Uses

func (v *GetResponseBodyForInterceptionReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetResponseBodyParams Uses

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 Uses

func GetResponseBody(requestID RequestID) *GetResponseBodyParams

GetResponseBody returns content served for the given request.

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

parameters:

requestID - Identifier of the network request to get content for.

func (*GetResponseBodyParams) Do Uses

func (p *GetResponseBodyParams) Do(ctx context.Context) (body []byte, err error)

Do executes Network.getResponseBody against the provided context.

returns:

body - Response body.

func (GetResponseBodyParams) MarshalEasyJSON Uses

func (v GetResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResponseBodyParams) MarshalJSON Uses

func (v GetResponseBodyParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResponseBodyParams) UnmarshalEasyJSON Uses

func (v *GetResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResponseBodyParams) UnmarshalJSON Uses

func (v *GetResponseBodyParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetResponseBodyReturns Uses

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 Uses

func (v GetResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResponseBodyReturns) MarshalJSON Uses

func (v GetResponseBodyReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetResponseBodyReturns) UnmarshalEasyJSON Uses

func (v *GetResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResponseBodyReturns) UnmarshalJSON Uses

func (v *GetResponseBodyReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetSecurityIsolationStatusParams Uses

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

GetSecurityIsolationStatusParams returns information about the COEP/COOP isolation status.

func GetSecurityIsolationStatus Uses

func GetSecurityIsolationStatus() *GetSecurityIsolationStatusParams

GetSecurityIsolationStatus returns information about the COEP/COOP isolation status.

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

parameters:

func (*GetSecurityIsolationStatusParams) Do Uses

func (p *GetSecurityIsolationStatusParams) Do(ctx context.Context) (status *SecurityIsolationStatus, err error)

Do executes Network.getSecurityIsolationStatus against the provided context.

returns:

status

func (GetSecurityIsolationStatusParams) MarshalEasyJSON Uses

func (v GetSecurityIsolationStatusParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSecurityIsolationStatusParams) MarshalJSON Uses

func (v GetSecurityIsolationStatusParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetSecurityIsolationStatusParams) UnmarshalEasyJSON Uses

func (v *GetSecurityIsolationStatusParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSecurityIsolationStatusParams) UnmarshalJSON Uses

func (v *GetSecurityIsolationStatusParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetSecurityIsolationStatusParams) WithFrameID Uses

func (p GetSecurityIsolationStatusParams) WithFrameID(frameID cdp.FrameID) *GetSecurityIsolationStatusParams

WithFrameID if no frameId is provided, the status of the target is provided.

type GetSecurityIsolationStatusReturns Uses

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

GetSecurityIsolationStatusReturns return values.

func (GetSecurityIsolationStatusReturns) MarshalEasyJSON Uses

func (v GetSecurityIsolationStatusReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSecurityIsolationStatusReturns) MarshalJSON Uses

func (v GetSecurityIsolationStatusReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetSecurityIsolationStatusReturns) UnmarshalEasyJSON Uses

func (v *GetSecurityIsolationStatusReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSecurityIsolationStatusReturns) UnmarshalJSON Uses

func (v *GetSecurityIsolationStatusReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Headers Uses

type Headers map[string]interface{}

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

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

type IPAddressSpace Uses

type IPAddressSpace string

IPAddressSpace [no description].

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

const (
    IPAddressSpaceLocal   IPAddressSpace = "Local"
    IPAddressSpacePrivate IPAddressSpace = "Private"
    IPAddressSpacePublic  IPAddressSpace = "Public"
    IPAddressSpaceUnknown IPAddressSpace = "Unknown"
)

IPAddressSpace values.

func (IPAddressSpace) MarshalEasyJSON Uses

func (t IPAddressSpace) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (IPAddressSpace) MarshalJSON Uses

func (t IPAddressSpace) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (IPAddressSpace) String Uses

func (t IPAddressSpace) String() string

String returns the IPAddressSpace as string value.

func (*IPAddressSpace) UnmarshalEasyJSON Uses

func (t *IPAddressSpace) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*IPAddressSpace) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type Initiator Uses

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).
    ColumnNumber float64             `json:"columnNumber,omitempty"` // Initiator column number, set for Parser type or for Script type (when script is importing module) (0-based).
    RequestID    RequestID           `json:"requestId,omitempty"`    // Set if another request triggered this request (e.g. preflight).
}

Initiator information about the request initiator.

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

func (Initiator) MarshalEasyJSON Uses

func (v Initiator) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Initiator) MarshalJSON Uses

func (v Initiator) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Initiator) UnmarshalEasyJSON Uses

func (v *Initiator) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Initiator) UnmarshalJSON Uses

func (v *Initiator) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type InitiatorType Uses

type InitiatorType string

InitiatorType type of this initiator.

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

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

InitiatorType values.

func (InitiatorType) MarshalEasyJSON Uses

func (t InitiatorType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (InitiatorType) MarshalJSON Uses

func (t InitiatorType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (InitiatorType) String Uses

func (t InitiatorType) String() string

String returns the InitiatorType as string value.

func (*InitiatorType) UnmarshalEasyJSON Uses

func (t *InitiatorType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*InitiatorType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type InterceptionID Uses

type InterceptionID string

InterceptionID unique intercepted request identifier.

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

func (InterceptionID) String Uses

func (t InterceptionID) String() string

String returns the InterceptionID as string value.

type InterceptionStage Uses

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.

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

const (
    InterceptionStageRequest         InterceptionStage = "Request"
    InterceptionStageHeadersReceived InterceptionStage = "HeadersReceived"
)

InterceptionStage values.

func (InterceptionStage) MarshalEasyJSON Uses

func (t InterceptionStage) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (InterceptionStage) MarshalJSON Uses

func (t InterceptionStage) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (InterceptionStage) String Uses

func (t InterceptionStage) String() string

String returns the InterceptionStage as string value.

func (*InterceptionStage) UnmarshalEasyJSON Uses

func (t *InterceptionStage) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*InterceptionStage) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type LoadNetworkResourceOptions Uses

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

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

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

func (LoadNetworkResourceOptions) MarshalEasyJSON Uses

func (v LoadNetworkResourceOptions) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadNetworkResourceOptions) MarshalJSON Uses

func (v LoadNetworkResourceOptions) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadNetworkResourceOptions) UnmarshalEasyJSON Uses

func (v *LoadNetworkResourceOptions) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadNetworkResourceOptions) UnmarshalJSON Uses

func (v *LoadNetworkResourceOptions) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LoadNetworkResourcePageResult Uses

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

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

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

func (LoadNetworkResourcePageResult) MarshalEasyJSON Uses

func (v LoadNetworkResourcePageResult) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadNetworkResourcePageResult) MarshalJSON Uses

func (v LoadNetworkResourcePageResult) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadNetworkResourcePageResult) UnmarshalEasyJSON Uses

func (v *LoadNetworkResourcePageResult) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadNetworkResourcePageResult) UnmarshalJSON Uses

func (v *LoadNetworkResourcePageResult) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LoadNetworkResourceParams Uses

type LoadNetworkResourceParams struct {
    FrameID cdp.FrameID                 `json:"frameId"` // Frame id to get the resource for.
    URL     string                      `json:"url"`     // URL of the resource to get content for.
    Options *LoadNetworkResourceOptions `json:"options"` // Options for the request.
}

LoadNetworkResourceParams fetches the resource and returns the content.

func LoadNetworkResource Uses

func LoadNetworkResource(frameID cdp.FrameID, url string, options *LoadNetworkResourceOptions) *LoadNetworkResourceParams

LoadNetworkResource fetches the resource and returns the content.

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

parameters:

frameID - Frame id to get the resource for.
url - URL of the resource to get content for.
options - Options for the request.

func (*LoadNetworkResourceParams) Do Uses

func (p *LoadNetworkResourceParams) Do(ctx context.Context) (resource *LoadNetworkResourcePageResult, err error)

Do executes Network.loadNetworkResource against the provided context.

returns:

resource

func (LoadNetworkResourceParams) MarshalEasyJSON Uses

func (v LoadNetworkResourceParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadNetworkResourceParams) MarshalJSON Uses

func (v LoadNetworkResourceParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadNetworkResourceParams) UnmarshalEasyJSON Uses

func (v *LoadNetworkResourceParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadNetworkResourceParams) UnmarshalJSON Uses

func (v *LoadNetworkResourceParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LoadNetworkResourceReturns Uses

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

LoadNetworkResourceReturns return values.

func (LoadNetworkResourceReturns) MarshalEasyJSON Uses

func (v LoadNetworkResourceReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadNetworkResourceReturns) MarshalJSON Uses

func (v LoadNetworkResourceReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadNetworkResourceReturns) UnmarshalEasyJSON Uses

func (v *LoadNetworkResourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadNetworkResourceReturns) UnmarshalJSON Uses

func (v *LoadNetworkResourceReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PostDataEntry Uses

type PostDataEntry struct {
    Bytes string `json:"bytes,omitempty"`
}

PostDataEntry post data entry for HTTP request.

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

func (PostDataEntry) MarshalEasyJSON Uses

func (v PostDataEntry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PostDataEntry) MarshalJSON Uses

func (v PostDataEntry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PostDataEntry) UnmarshalEasyJSON Uses

func (v *PostDataEntry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PostDataEntry) UnmarshalJSON Uses

func (v *PostDataEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PrivateNetworkRequestPolicy Uses

type PrivateNetworkRequestPolicy string

PrivateNetworkRequestPolicy [no description].

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

const (
    PrivateNetworkRequestPolicyAllow                          PrivateNetworkRequestPolicy = "Allow"
    PrivateNetworkRequestPolicyBlockFromInsecureToMorePrivate PrivateNetworkRequestPolicy = "BlockFromInsecureToMorePrivate"
)

PrivateNetworkRequestPolicy values.

func (PrivateNetworkRequestPolicy) MarshalEasyJSON Uses

func (t PrivateNetworkRequestPolicy) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PrivateNetworkRequestPolicy) MarshalJSON Uses

func (t PrivateNetworkRequestPolicy) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PrivateNetworkRequestPolicy) String Uses

func (t PrivateNetworkRequestPolicy) String() string

String returns the PrivateNetworkRequestPolicy as string value.

func (*PrivateNetworkRequestPolicy) UnmarshalEasyJSON Uses

func (t *PrivateNetworkRequestPolicy) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PrivateNetworkRequestPolicy) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ReferrerPolicy Uses

type ReferrerPolicy string

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

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

const (
    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 Uses

func (t ReferrerPolicy) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ReferrerPolicy) MarshalJSON Uses

func (t ReferrerPolicy) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ReferrerPolicy) String Uses

func (t ReferrerPolicy) String() string

String returns the ReferrerPolicy as string value.

func (*ReferrerPolicy) UnmarshalEasyJSON Uses

func (t *ReferrerPolicy) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ReferrerPolicy) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ReplayXHRParams Uses

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 Uses

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.

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

parameters:

requestID - Identifier of XHR to replay.

func (*ReplayXHRParams) Do Uses

func (p *ReplayXHRParams) Do(ctx context.Context) (err error)

Do executes Network.replayXHR against the provided context.

func (ReplayXHRParams) MarshalEasyJSON Uses

func (v ReplayXHRParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReplayXHRParams) MarshalJSON Uses

func (v ReplayXHRParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReplayXHRParams) UnmarshalEasyJSON Uses

func (v *ReplayXHRParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReplayXHRParams) UnmarshalJSON Uses

func (v *ReplayXHRParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Request Uses

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.
    PostDataEntries  []*PostDataEntry          `json:"postDataEntries,omitempty"`  // Request body elements. This will be converted from base64 to binary
    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.
    TrustTokenParams *TrustTokenParams         `json:"trustTokenParams,omitempty"` // Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.
}

Request HTTP request data.

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

func (Request) MarshalEasyJSON Uses

func (v Request) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Request) MarshalJSON Uses

func (v Request) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Request) UnmarshalEasyJSON Uses

func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Request) UnmarshalJSON Uses

func (v *Request) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RequestID Uses

type RequestID string

RequestID unique request identifier.

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

func (RequestID) String Uses

func (t RequestID) String() string

String returns the RequestID as string value.

type RequestPattern Uses

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.

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

func (RequestPattern) MarshalEasyJSON Uses

func (v RequestPattern) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestPattern) MarshalJSON Uses

func (v RequestPattern) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestPattern) UnmarshalEasyJSON Uses

func (v *RequestPattern) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestPattern) UnmarshalJSON Uses

func (v *RequestPattern) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResourcePriority Uses

type ResourcePriority string

ResourcePriority loading priority of a resource request.

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

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

ResourcePriority values.

func (ResourcePriority) MarshalEasyJSON Uses

func (t ResourcePriority) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ResourcePriority) MarshalJSON Uses

func (t ResourcePriority) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ResourcePriority) String Uses

func (t ResourcePriority) String() string

String returns the ResourcePriority as string value.

func (*ResourcePriority) UnmarshalEasyJSON Uses

func (t *ResourcePriority) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ResourcePriority) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ResourceTiming Uses

type ResourceTiming struct {
    RequestTime              float64 `json:"requestTime"`              // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
    ProxyStart               float64 `json:"proxyStart"`               // Started resolving proxy.
    ProxyEnd                 float64 `json:"proxyEnd"`                 // Finished resolving proxy.
    DNSStart                 float64 `json:"dnsStart"`                 // Started DNS address resolve.
    DNSEnd                   float64 `json:"dnsEnd"`                   // Finished DNS address resolve.
    ConnectStart             float64 `json:"connectStart"`             // Started connecting to the remote host.
    ConnectEnd               float64 `json:"connectEnd"`               // Connected to the remote host.
    SslStart                 float64 `json:"sslStart"`                 // Started SSL handshake.
    SslEnd                   float64 `json:"sslEnd"`                   // Finished SSL handshake.
    WorkerStart              float64 `json:"workerStart"`              // Started running ServiceWorker.
    WorkerReady              float64 `json:"workerReady"`              // Finished Starting ServiceWorker.
    WorkerFetchStart         float64 `json:"workerFetchStart"`         // Started fetch event.
    WorkerRespondWithSettled float64 `json:"workerRespondWithSettled"` // Settled fetch event respondWith promise.
    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.

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

func (ResourceTiming) MarshalEasyJSON Uses

func (v ResourceTiming) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResourceTiming) MarshalJSON Uses

func (v ResourceTiming) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResourceTiming) UnmarshalEasyJSON Uses

func (v *ResourceTiming) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResourceTiming) UnmarshalJSON Uses

func (v *ResourceTiming) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResourceType Uses

type ResourceType string

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

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

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

ResourceType values.

func (ResourceType) MarshalEasyJSON Uses

func (t ResourceType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ResourceType) MarshalJSON Uses

func (t ResourceType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ResourceType) String Uses

func (t ResourceType) String() string

String returns the ResourceType as string value.

func (*ResourceType) UnmarshalEasyJSON Uses

func (t *ResourceType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ResourceType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type Response Uses

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.
    FromPrefetchCache           bool                        `json:"fromPrefetchCache,omitempty"`           // Specifies that the request was served from the prefetch cache.
    EncodedDataLength           float64                     `json:"encodedDataLength"`                     // Total number of bytes received for this request so far.
    Timing                      *ResourceTiming             `json:"timing,omitempty"`                      // Timing information for the given request.
    ServiceWorkerResponseSource ServiceWorkerResponseSource `json:"serviceWorkerResponseSource,omitempty"` // Response source of response from ServiceWorker.
    ResponseTime                *cdp.TimeSinceEpoch         `json:"responseTime,omitempty"`                // The time at which the returned response was generated.
    CacheStorageCacheName       string                      `json:"cacheStorageCacheName,omitempty"`       // Cache Storage Cache Name.
    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.

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

func (Response) MarshalEasyJSON Uses

func (v Response) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Response) MarshalJSON Uses

func (v Response) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Response) UnmarshalEasyJSON Uses

func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Response) UnmarshalJSON Uses

func (v *Response) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SearchInResponseBodyParams Uses

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 Uses

func SearchInResponseBody(requestID RequestID, query string) *SearchInResponseBodyParams

SearchInResponseBody searches for given string in response content.

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

parameters:

requestID - Identifier of the network response to search.
query - String to search for.

func (*SearchInResponseBodyParams) Do Uses

func (p *SearchInResponseBodyParams) Do(ctx context.Context) (result []*debugger.SearchMatch, err error)

Do executes Network.searchInResponseBody against the provided context.

returns:

result - List of search matches.

func (SearchInResponseBodyParams) MarshalEasyJSON Uses

func (v SearchInResponseBodyParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInResponseBodyParams) MarshalJSON Uses

func (v SearchInResponseBodyParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SearchInResponseBodyParams) UnmarshalEasyJSON Uses

func (v *SearchInResponseBodyParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInResponseBodyParams) UnmarshalJSON Uses

func (v *SearchInResponseBodyParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SearchInResponseBodyParams) WithCaseSensitive Uses

func (p SearchInResponseBodyParams) WithCaseSensitive(caseSensitive bool) *SearchInResponseBodyParams

WithCaseSensitive if true, search is case sensitive.

func (SearchInResponseBodyParams) WithIsRegex Uses

func (p SearchInResponseBodyParams) WithIsRegex(isRegex bool) *SearchInResponseBodyParams

WithIsRegex if true, treats string parameter as regex.

type SearchInResponseBodyReturns Uses

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

SearchInResponseBodyReturns return values.

func (SearchInResponseBodyReturns) MarshalEasyJSON Uses

func (v SearchInResponseBodyReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInResponseBodyReturns) MarshalJSON Uses

func (v SearchInResponseBodyReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SearchInResponseBodyReturns) UnmarshalEasyJSON Uses

func (v *SearchInResponseBodyReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInResponseBodyReturns) UnmarshalJSON Uses

func (v *SearchInResponseBodyReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SecurityDetails Uses

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.

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

func (SecurityDetails) MarshalEasyJSON Uses

func (v SecurityDetails) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SecurityDetails) MarshalJSON Uses

func (v SecurityDetails) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SecurityDetails) UnmarshalEasyJSON Uses

func (v *SecurityDetails) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SecurityDetails) UnmarshalJSON Uses

func (v *SecurityDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SecurityIsolationStatus Uses

type SecurityIsolationStatus struct {
    Coop *CrossOriginOpenerPolicyStatus   `json:"coop,omitempty"`
    Coep *CrossOriginEmbedderPolicyStatus `json:"coep,omitempty"`
}

SecurityIsolationStatus [no description].

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

func (SecurityIsolationStatus) MarshalEasyJSON Uses

func (v SecurityIsolationStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SecurityIsolationStatus) MarshalJSON Uses

func (v SecurityIsolationStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SecurityIsolationStatus) UnmarshalEasyJSON Uses

func (v *SecurityIsolationStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SecurityIsolationStatus) UnmarshalJSON Uses

func (v *SecurityIsolationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceWorkerResponseSource Uses

type ServiceWorkerResponseSource string

ServiceWorkerResponseSource source of serviceworker response.

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

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

ServiceWorkerResponseSource values.

func (ServiceWorkerResponseSource) MarshalEasyJSON Uses

func (t ServiceWorkerResponseSource) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ServiceWorkerResponseSource) MarshalJSON Uses

func (t ServiceWorkerResponseSource) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ServiceWorkerResponseSource) String Uses

func (t ServiceWorkerResponseSource) String() string

String returns the ServiceWorkerResponseSource as string value.

func (*ServiceWorkerResponseSource) UnmarshalEasyJSON Uses

func (t *ServiceWorkerResponseSource) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ServiceWorkerResponseSource) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type SetAttachDebugStackParams Uses

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

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

func SetAttachDebugStack Uses

func SetAttachDebugStack(enabled bool) *SetAttachDebugStackParams

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

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

parameters:

enabled - Whether to attach a page script stack for debugging purpose.

func (*SetAttachDebugStackParams) Do Uses

func (p *SetAttachDebugStackParams) Do(ctx context.Context) (err error)

Do executes Network.setAttachDebugStack against the provided context.

func (SetAttachDebugStackParams) MarshalEasyJSON Uses

func (v SetAttachDebugStackParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAttachDebugStackParams) MarshalJSON Uses

func (v SetAttachDebugStackParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetAttachDebugStackParams) UnmarshalEasyJSON Uses

func (v *SetAttachDebugStackParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAttachDebugStackParams) UnmarshalJSON Uses

func (v *SetAttachDebugStackParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetBlockedURLSParams Uses

type SetBlockedURLSParams struct {
    Urls []string `json:"urls"` // URL patterns to block. Wildcards ('*') are allowed.
}

SetBlockedURLSParams blocks URLs from loading.

func SetBlockedURLS Uses

func SetBlockedURLS(urls []string) *SetBlockedURLSParams

SetBlockedURLS blocks URLs from loading.

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

parameters:

urls - URL patterns to block. Wildcards ('*') are allowed.

func (*SetBlockedURLSParams) Do Uses

func (p *SetBlockedURLSParams) Do(ctx context.Context) (err error)

Do executes Network.setBlockedURLs against the provided context.

func (SetBlockedURLSParams) MarshalEasyJSON Uses

func (v SetBlockedURLSParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBlockedURLSParams) MarshalJSON Uses

func (v SetBlockedURLSParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBlockedURLSParams) UnmarshalEasyJSON Uses

func (v *SetBlockedURLSParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBlockedURLSParams) UnmarshalJSON Uses

func (v *SetBlockedURLSParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetBypassServiceWorkerParams Uses

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 Uses

func SetBypassServiceWorker(bypass bool) *SetBypassServiceWorkerParams

SetBypassServiceWorker toggles ignoring of service worker for each request.

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

parameters:

bypass - Bypass service worker and load from network.

func (*SetBypassServiceWorkerParams) Do Uses

func (p *SetBypassServiceWorkerParams) Do(ctx context.Context) (err error)

Do executes Network.setBypassServiceWorker against the provided context.

func (SetBypassServiceWorkerParams) MarshalEasyJSON Uses

func (v SetBypassServiceWorkerParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBypassServiceWorkerParams) MarshalJSON Uses

func (v SetBypassServiceWorkerParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBypassServiceWorkerParams) UnmarshalEasyJSON Uses

func (v *SetBypassServiceWorkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBypassServiceWorkerParams) UnmarshalJSON Uses

func (v *SetBypassServiceWorkerParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetCacheDisabledParams Uses

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 Uses

func SetCacheDisabled(cacheDisabled bool) *SetCacheDisabledParams

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

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

parameters:

cacheDisabled - Cache disabled state.

func (*SetCacheDisabledParams) Do Uses

func (p *SetCacheDisabledParams) Do(ctx context.Context) (err error)

Do executes Network.setCacheDisabled against the provided context.

func (SetCacheDisabledParams) MarshalEasyJSON Uses

func (v SetCacheDisabledParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCacheDisabledParams) MarshalJSON Uses

func (v SetCacheDisabledParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetCacheDisabledParams) UnmarshalEasyJSON Uses

func (v *SetCacheDisabledParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCacheDisabledParams) UnmarshalJSON Uses

func (v *SetCacheDisabledParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetCookieBlockedReason Uses

type SetCookieBlockedReason string

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

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

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

SetCookieBlockedReason values.

func (SetCookieBlockedReason) MarshalEasyJSON Uses

func (t SetCookieBlockedReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SetCookieBlockedReason) MarshalJSON Uses

func (t SetCookieBlockedReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SetCookieBlockedReason) String Uses

func (t SetCookieBlockedReason) String() string

String returns the SetCookieBlockedReason as string value.

func (*SetCookieBlockedReason) UnmarshalEasyJSON Uses

func (t *SetCookieBlockedReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SetCookieBlockedReason) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type SetCookieParams Uses

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
    Priority CookiePriority      `json:"priority,omitempty"` // Cookie Priority type.
}

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

func SetCookie Uses

func SetCookie(name string, value string) *SetCookieParams

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

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

parameters:

name - Cookie name.
value - Cookie value.

func (*SetCookieParams) Do Uses

func (p *SetCookieParams) Do(ctx context.Context) (err error)

Do executes Network.setCookie against the provided context.

func (SetCookieParams) MarshalEasyJSON Uses

func (v SetCookieParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCookieParams) MarshalJSON Uses

func (v SetCookieParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetCookieParams) UnmarshalEasyJSON Uses

func (v *SetCookieParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCookieParams) UnmarshalJSON Uses

func (v *SetCookieParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetCookieParams) WithDomain Uses

func (p SetCookieParams) WithDomain(domain string) *SetCookieParams

WithDomain cookie domain.

func (SetCookieParams) WithExpires Uses

func (p SetCookieParams) WithExpires(expires *cdp.TimeSinceEpoch) *SetCookieParams

WithExpires cookie expiration date, session cookie if not set.

func (SetCookieParams) WithHTTPOnly Uses

func (p SetCookieParams) WithHTTPOnly(httpOnly bool) *SetCookieParams

WithHTTPOnly true if cookie is http-only.

func (SetCookieParams) WithPath Uses

func (p SetCookieParams) WithPath(path string) *SetCookieParams

WithPath cookie path.

func (SetCookieParams) WithPriority Uses

func (p SetCookieParams) WithPriority(priority CookiePriority) *SetCookieParams

WithPriority cookie Priority type.

func (SetCookieParams) WithSameSite Uses

func (p SetCookieParams) WithSameSite(sameSite CookieSameSite) *SetCookieParams

WithSameSite cookie SameSite type.

func (SetCookieParams) WithSecure Uses

func (p SetCookieParams) WithSecure(secure bool) *SetCookieParams

WithSecure true if cookie is secure.

func (SetCookieParams) WithURL Uses

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 SetCookiesParams Uses

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

SetCookiesParams sets given cookies.

func SetCookies Uses

func SetCookies(cookies []*CookieParam) *SetCookiesParams

SetCookies sets given cookies.

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

parameters:

cookies - Cookies to be set.

func (*SetCookiesParams) Do Uses

func (p *SetCookiesParams) Do(ctx context.Context) (err error)

Do executes Network.setCookies against the provided context.

func (SetCookiesParams) MarshalEasyJSON Uses

func (v SetCookiesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCookiesParams) MarshalJSON Uses

func (v SetCookiesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetCookiesParams) UnmarshalEasyJSON Uses

func (v *SetCookiesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCookiesParams) UnmarshalJSON Uses

func (v *SetCookiesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetDataSizeLimitsForTestParams Uses

type SetDataSizeLimitsForTestParams struct {
    MaxTotalSize    int64 `json:"maxTotalSize"`    // Maximum total buffer size.
    MaxResourceSize int64 `json:"maxResourceSize"` // Maximum per-resource size.
}

SetDataSizeLimitsForTestParams for testing.

func SetDataSizeLimitsForTest Uses

func SetDataSizeLimitsForTest(maxTotalSize int64, maxResourceSize int64) *SetDataSizeLimitsForTestParams

SetDataSizeLimitsForTest for testing.

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

parameters:

maxTotalSize - Maximum total buffer size.
maxResourceSize - Maximum per-resource size.

func (*SetDataSizeLimitsForTestParams) Do Uses

func (p *SetDataSizeLimitsForTestParams) Do(ctx context.Context) (err error)

Do executes Network.setDataSizeLimitsForTest against the provided context.

func (SetDataSizeLimitsForTestParams) MarshalEasyJSON Uses

func (v SetDataSizeLimitsForTestParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDataSizeLimitsForTestParams) MarshalJSON Uses

func (v SetDataSizeLimitsForTestParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetDataSizeLimitsForTestParams) UnmarshalEasyJSON Uses

func (v *SetDataSizeLimitsForTestParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDataSizeLimitsForTestParams) UnmarshalJSON Uses

func (v *SetDataSizeLimitsForTestParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetExtraHTTPHeadersParams Uses

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 Uses

func SetExtraHTTPHeaders(headers Headers) *SetExtraHTTPHeadersParams

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

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

parameters:

headers - Map with extra HTTP headers.

func (*SetExtraHTTPHeadersParams) Do Uses

func (p *SetExtraHTTPHeadersParams) Do(ctx context.Context) (err error)

Do executes Network.setExtraHTTPHeaders against the provided context.

func (SetExtraHTTPHeadersParams) MarshalEasyJSON Uses

func (v SetExtraHTTPHeadersParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetExtraHTTPHeadersParams) MarshalJSON Uses

func (v SetExtraHTTPHeadersParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetExtraHTTPHeadersParams) UnmarshalEasyJSON Uses

func (v *SetExtraHTTPHeadersParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetExtraHTTPHeadersParams) UnmarshalJSON Uses

func (v *SetExtraHTTPHeadersParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SignedCertificateTimestamp Uses

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

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

func (SignedCertificateTimestamp) MarshalEasyJSON Uses

func (v SignedCertificateTimestamp) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SignedCertificateTimestamp) MarshalJSON Uses

func (v SignedCertificateTimestamp) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SignedCertificateTimestamp) UnmarshalEasyJSON Uses

func (v *SignedCertificateTimestamp) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SignedCertificateTimestamp) UnmarshalJSON Uses

func (v *SignedCertificateTimestamp) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SignedExchangeError Uses

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.

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

func (SignedExchangeError) MarshalEasyJSON Uses

func (v SignedExchangeError) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SignedExchangeError) MarshalJSON Uses

func (v SignedExchangeError) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SignedExchangeError) UnmarshalEasyJSON Uses

func (v *SignedExchangeError) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SignedExchangeError) UnmarshalJSON Uses

func (v *SignedExchangeError) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SignedExchangeErrorField Uses

type SignedExchangeErrorField string

SignedExchangeErrorField field type for a signed exchange related error.

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

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

SignedExchangeErrorField values.

func (SignedExchangeErrorField) MarshalEasyJSON Uses

func (t SignedExchangeErrorField) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SignedExchangeErrorField) MarshalJSON Uses

func (t SignedExchangeErrorField) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (SignedExchangeErrorField) String Uses

func (t SignedExchangeErrorField) String() string

String returns the SignedExchangeErrorField as string value.

func (*SignedExchangeErrorField) UnmarshalEasyJSON Uses

func (t *SignedExchangeErrorField) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SignedExchangeErrorField) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type SignedExchangeHeader Uses

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

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

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

func (SignedExchangeHeader) MarshalEasyJSON Uses

func (v SignedExchangeHeader) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SignedExchangeHeader) MarshalJSON Uses

func (v SignedExchangeHeader) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SignedExchangeHeader) UnmarshalEasyJSON Uses

func (v *SignedExchangeHeader) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SignedExchangeHeader) UnmarshalJSON Uses

func (v *SignedExchangeHeader) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SignedExchangeInfo Uses

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.

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

func (SignedExchangeInfo) MarshalEasyJSON Uses

func (v SignedExchangeInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SignedExchangeInfo) MarshalJSON Uses

func (v SignedExchangeInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SignedExchangeInfo) UnmarshalEasyJSON Uses

func (v *SignedExchangeInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SignedExchangeInfo) UnmarshalJSON Uses

func (v *SignedExchangeInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SignedExchangeSignature Uses

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.

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

func (SignedExchangeSignature) MarshalEasyJSON Uses

func (v SignedExchangeSignature) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SignedExchangeSignature) MarshalJSON Uses

func (v SignedExchangeSignature) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SignedExchangeSignature) UnmarshalEasyJSON Uses

func (v *SignedExchangeSignature) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SignedExchangeSignature) UnmarshalJSON Uses

func (v *SignedExchangeSignature) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakeResponseBodyForInterceptionAsStreamParams Uses

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 Uses

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.

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

parameters:

interceptionID

func (*TakeResponseBodyForInterceptionAsStreamParams) Do Uses

func (p *TakeResponseBodyForInterceptionAsStreamParams) Do(ctx context.Context) (stream io.StreamHandle, err error)

Do executes Network.takeResponseBodyForInterceptionAsStream against the provided context.

returns:

stream

func (TakeResponseBodyForInterceptionAsStreamParams) MarshalEasyJSON Uses

func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeResponseBodyForInterceptionAsStreamParams) MarshalJSON Uses

func (v TakeResponseBodyForInterceptionAsStreamParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeResponseBodyForInterceptionAsStreamParams) UnmarshalEasyJSON Uses

func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeResponseBodyForInterceptionAsStreamParams) UnmarshalJSON Uses

func (v *TakeResponseBodyForInterceptionAsStreamParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TakeResponseBodyForInterceptionAsStreamReturns Uses

type TakeResponseBodyForInterceptionAsStreamReturns struct {
    Stream io.StreamHandle `json:"stream,omitempty"`
}

TakeResponseBodyForInterceptionAsStreamReturns return values.

func (TakeResponseBodyForInterceptionAsStreamReturns) MarshalEasyJSON Uses

func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeResponseBodyForInterceptionAsStreamReturns) MarshalJSON Uses

func (v TakeResponseBodyForInterceptionAsStreamReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalEasyJSON Uses

func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalJSON Uses

func (v *TakeResponseBodyForInterceptionAsStreamReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TrustTokenOperationDoneStatus Uses

type TrustTokenOperationDoneStatus string

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

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

const (
    TrustTokenOperationDoneStatusOk                 TrustTokenOperationDoneStatus = "Ok"
    TrustTokenOperationDoneStatusInvalidArgument    TrustTokenOperationDoneStatus = "InvalidArgument"
    TrustTokenOperationDoneStatusFailedPrecondition TrustTokenOperationDoneStatus = "FailedPrecondition"
    TrustTokenOperationDoneStatusResourceExhausted  TrustTokenOperationDoneStatus = "ResourceExhausted"
    TrustTokenOperationDoneStatusAlreadyExists      TrustTokenOperationDoneStatus = "AlreadyExists"
    TrustTokenOperationDoneStatusUnavailable        TrustTokenOperationDoneStatus = "Unavailable"
    TrustTokenOperationDoneStatusBadResponse        TrustTokenOperationDoneStatus = "BadResponse"
    TrustTokenOperationDoneStatusInternalError      TrustTokenOperationDoneStatus = "InternalError"
    TrustTokenOperationDoneStatusUnknownError       TrustTokenOperationDoneStatus = "UnknownError"
    TrustTokenOperationDoneStatusFulfilledLocally   TrustTokenOperationDoneStatus = "FulfilledLocally"
)

TrustTokenOperationDoneStatus values.

func (TrustTokenOperationDoneStatus) MarshalEasyJSON Uses

func (t TrustTokenOperationDoneStatus) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (TrustTokenOperationDoneStatus) MarshalJSON Uses

func (t TrustTokenOperationDoneStatus) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (TrustTokenOperationDoneStatus) String Uses

func (t TrustTokenOperationDoneStatus) String() string

String returns the TrustTokenOperationDoneStatus as string value.

func (*TrustTokenOperationDoneStatus) UnmarshalEasyJSON Uses

func (t *TrustTokenOperationDoneStatus) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*TrustTokenOperationDoneStatus) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type TrustTokenOperationType Uses

type TrustTokenOperationType string

TrustTokenOperationType [no description].

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

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

TrustTokenOperationType values.

func (TrustTokenOperationType) MarshalEasyJSON Uses

func (t TrustTokenOperationType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (TrustTokenOperationType) MarshalJSON Uses

func (t TrustTokenOperationType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (TrustTokenOperationType) String Uses

func (t TrustTokenOperationType) String() string

String returns the TrustTokenOperationType as string value.

func (*TrustTokenOperationType) UnmarshalEasyJSON Uses

func (t *TrustTokenOperationType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*TrustTokenOperationType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type TrustTokenParams Uses

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

TrustTokenParams determines what type of Trust Token operation is executed and depending on the type, some additional parameters. The values are specified in third_party/blink/renderer/core/fetch/trust_token.idl.

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

func (TrustTokenParams) MarshalEasyJSON Uses

func (v TrustTokenParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TrustTokenParams) MarshalJSON Uses

func (v TrustTokenParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TrustTokenParams) UnmarshalEasyJSON Uses

func (v *TrustTokenParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TrustTokenParams) UnmarshalJSON Uses

func (v *TrustTokenParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TrustTokenParamsRefreshPolicy Uses

type TrustTokenParamsRefreshPolicy string

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

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

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

TrustTokenParamsRefreshPolicy values.

func (TrustTokenParamsRefreshPolicy) MarshalEasyJSON Uses

func (t TrustTokenParamsRefreshPolicy) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (TrustTokenParamsRefreshPolicy) MarshalJSON Uses

func (t TrustTokenParamsRefreshPolicy) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (TrustTokenParamsRefreshPolicy) String Uses

func (t TrustTokenParamsRefreshPolicy) String() string

String returns the TrustTokenParamsRefreshPolicy as string value.

func (*TrustTokenParamsRefreshPolicy) UnmarshalEasyJSON Uses

func (t *TrustTokenParamsRefreshPolicy) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*TrustTokenParamsRefreshPolicy) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type WebSocketFrame Uses

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.

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

func (WebSocketFrame) MarshalEasyJSON Uses

func (v WebSocketFrame) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebSocketFrame) MarshalJSON Uses

func (v WebSocketFrame) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WebSocketFrame) UnmarshalEasyJSON Uses

func (v *WebSocketFrame) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebSocketFrame) UnmarshalJSON Uses

func (v *WebSocketFrame) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WebSocketRequest Uses

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

WebSocketRequest webSocket request data.

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

func (WebSocketRequest) MarshalEasyJSON Uses

func (v WebSocketRequest) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebSocketRequest) MarshalJSON Uses

func (v WebSocketRequest) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WebSocketRequest) UnmarshalEasyJSON Uses

func (v *WebSocketRequest) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebSocketRequest) UnmarshalJSON Uses

func (v *WebSocketRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WebSocketResponse Uses

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.

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

func (WebSocketResponse) MarshalEasyJSON Uses

func (v WebSocketResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebSocketResponse) MarshalJSON Uses

func (v WebSocketResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WebSocketResponse) UnmarshalEasyJSON Uses

func (v *WebSocketResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebSocketResponse) UnmarshalJSON Uses

func (v *WebSocketResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package network imports 12 packages (graph) and is imported by 38 packages. Updated 2021-01-17. Refresh now. Tools for package owners.