network

package
v0.0.0-...-9e9a0cf Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package network provides the Chrome Debugging 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 chromedp-gen command.

Index

Constants

This section is empty.

Variables

EventTypes all event types in the domain.

Functions

This section is empty.

Types

type BlockedReason

type BlockedReason string

BlockedReason the reason why request was blocked.

const (
	BlockedReasonCsp               BlockedReason = "csp"
	BlockedReasonMixedContent      BlockedReason = "mixed-content"
	BlockedReasonOrigin            BlockedReason = "origin"
	BlockedReasonInspector         BlockedReason = "inspector"
	BlockedReasonSubresourceFilter BlockedReason = "subresource-filter"
	BlockedReasonOther             BlockedReason = "other"
)

BlockedReason values.

func (BlockedReason) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (BlockedReason) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (BlockedReason) String

func (t BlockedReason) String() string

String returns the BlockedReason as string value.

func (*BlockedReason) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*BlockedReason) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type CachedResource

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

CachedResource information about the cached resource.

func (CachedResource) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CachedResource) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CachedResource) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CachedResource) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CanClearBrowserCacheParams

type CanClearBrowserCacheParams struct{}

CanClearBrowserCacheParams tells whether clearing browser cache is supported.

func CanClearBrowserCache

func CanClearBrowserCache() *CanClearBrowserCacheParams

CanClearBrowserCache tells whether clearing browser cache is supported.

func (*CanClearBrowserCacheParams) Do

func (p *CanClearBrowserCacheParams) Do(ctxt context.Context, h cdp.Handler) (result bool, err error)

Do executes Network.canClearBrowserCache against the provided context and target handler.

returns:

result - True if browser cache can be cleared.

func (CanClearBrowserCacheParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CanClearBrowserCacheParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CanClearBrowserCacheParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CanClearBrowserCacheParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CanClearBrowserCacheReturns

type CanClearBrowserCacheReturns struct {
	Result bool `json:"result,omitempty"` // True if browser cache can be cleared.
}

CanClearBrowserCacheReturns return values.

func (CanClearBrowserCacheReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CanClearBrowserCacheReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CanClearBrowserCacheReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CanClearBrowserCacheReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CanClearBrowserCookiesParams

type CanClearBrowserCookiesParams struct{}

CanClearBrowserCookiesParams tells whether clearing browser cookies is supported.

func CanClearBrowserCookies

func CanClearBrowserCookies() *CanClearBrowserCookiesParams

CanClearBrowserCookies tells whether clearing browser cookies is supported.

func (*CanClearBrowserCookiesParams) Do

func (p *CanClearBrowserCookiesParams) Do(ctxt context.Context, h cdp.Handler) (result bool, err error)

Do executes Network.canClearBrowserCookies against the provided context and target handler.

returns:

result - True if browser cookies can be cleared.

func (CanClearBrowserCookiesParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CanClearBrowserCookiesParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CanClearBrowserCookiesParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CanClearBrowserCookiesParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CanClearBrowserCookiesReturns

type CanClearBrowserCookiesReturns struct {
	Result bool `json:"result,omitempty"` // True if browser cookies can be cleared.
}

CanClearBrowserCookiesReturns return values.

func (CanClearBrowserCookiesReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CanClearBrowserCookiesReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CanClearBrowserCookiesReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CanClearBrowserCookiesReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CanEmulateNetworkConditionsParams

type CanEmulateNetworkConditionsParams struct{}

CanEmulateNetworkConditionsParams tells whether emulation of network conditions is supported.

func CanEmulateNetworkConditions

func CanEmulateNetworkConditions() *CanEmulateNetworkConditionsParams

CanEmulateNetworkConditions tells whether emulation of network conditions is supported.

func (*CanEmulateNetworkConditionsParams) Do

func (p *CanEmulateNetworkConditionsParams) Do(ctxt context.Context, h cdp.Handler) (result bool, err error)

Do executes Network.canEmulateNetworkConditions against the provided context and target handler.

returns:

result - True if emulation of network conditions is supported.

func (CanEmulateNetworkConditionsParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CanEmulateNetworkConditionsParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CanEmulateNetworkConditionsParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CanEmulateNetworkConditionsParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CanEmulateNetworkConditionsReturns

type CanEmulateNetworkConditionsReturns struct {
	Result bool `json:"result,omitempty"` // True if emulation of network conditions is supported.
}

CanEmulateNetworkConditionsReturns return values.

func (CanEmulateNetworkConditionsReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CanEmulateNetworkConditionsReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CanEmulateNetworkConditionsReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CanEmulateNetworkConditionsReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ClearBrowserCacheParams

type ClearBrowserCacheParams struct{}

ClearBrowserCacheParams clears browser cache.

func ClearBrowserCache

func ClearBrowserCache() *ClearBrowserCacheParams

ClearBrowserCache clears browser cache.

func (*ClearBrowserCacheParams) Do

func (p *ClearBrowserCacheParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Network.clearBrowserCache against the provided context and target handler.

func (ClearBrowserCacheParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearBrowserCacheParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ClearBrowserCacheParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearBrowserCacheParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ClearBrowserCookiesParams

type ClearBrowserCookiesParams struct{}

ClearBrowserCookiesParams clears browser cookies.

func ClearBrowserCookies

func ClearBrowserCookies() *ClearBrowserCookiesParams

ClearBrowserCookies clears browser cookies.

func (*ClearBrowserCookiesParams) Do

Do executes Network.clearBrowserCookies against the provided context and target handler.

func (ClearBrowserCookiesParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearBrowserCookiesParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ClearBrowserCookiesParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearBrowserCookiesParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ConnectionType

type ConnectionType string

ConnectionType loading priority of a resource request.

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

ConnectionType values.

func (ConnectionType) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ConnectionType) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ConnectionType) String

func (t ConnectionType) String() string

String returns the ConnectionType as string value.

func (*ConnectionType) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ConnectionType) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type Cookie struct {
	Name     string         `json:"name,omitempty"`     // Cookie name.
	Value    string         `json:"value,omitempty"`    // Cookie value.
	Domain   string         `json:"domain,omitempty"`   // Cookie domain.
	Path     string         `json:"path,omitempty"`     // Cookie path.
	Expires  float64        `json:"expires,omitempty"`  // Cookie expiration date as the number of seconds since the UNIX epoch.
	Size     int64          `json:"size,omitempty"`     // Cookie size.
	HTTPOnly bool           `json:"httpOnly,omitempty"` // True if cookie is http-only.
	Secure   bool           `json:"secure,omitempty"`   // True if cookie is secure.
	Session  bool           `json:"session,omitempty"`  // True in case of session cookie.
	SameSite CookieSameSite `json:"sameSite,omitempty"` // Cookie SameSite type.
}

Cookie cookie object.

func (Cookie) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Cookie) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Cookie) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Cookie) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CookieSameSite

type CookieSameSite string

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

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

CookieSameSite values.

func (CookieSameSite) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CookieSameSite) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (CookieSameSite) String

func (t CookieSameSite) String() string

String returns the CookieSameSite as string value.

func (*CookieSameSite) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CookieSameSite) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type DeleteCookieParams

type DeleteCookieParams struct {
	CookieName string `json:"cookieName"` // Name of the cookie to remove.
	URL        string `json:"url"`        // URL to match cooke domain and path.
}

DeleteCookieParams deletes browser cookie with given name, domain and path.

func DeleteCookie

func DeleteCookie(cookieName string, url string) *DeleteCookieParams

DeleteCookie deletes browser cookie with given name, domain and path.

parameters:

cookieName - Name of the cookie to remove.
url - URL to match cooke domain and path.

func (*DeleteCookieParams) Do

func (p *DeleteCookieParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Network.deleteCookie against the provided context and target handler.

func (DeleteCookieParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DeleteCookieParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DeleteCookieParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DeleteCookieParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams

type DisableParams struct{}

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

func Disable

func Disable() *DisableParams

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

func (*DisableParams) Do

func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Network.disable against the provided context and target handler.

func (DisableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EmulateNetworkConditionsParams

type EmulateNetworkConditionsParams struct {
	Offline            bool           `json:"offline"`                  // True to emulate internet disconnection.
	Latency            float64        `json:"latency"`                  // Additional latency (ms).
	DownloadThroughput float64        `json:"downloadThroughput"`       // Maximal aggregated download throughput.
	UploadThroughput   float64        `json:"uploadThroughput"`         // Maximal aggregated upload throughput.
	ConnectionType     ConnectionType `json:"connectionType,omitempty"` // Connection type if known.
}

EmulateNetworkConditionsParams activates emulation of network conditions.

func EmulateNetworkConditions

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

EmulateNetworkConditions activates emulation of network conditions.

parameters:

offline - True to emulate internet disconnection.
latency - Additional latency (ms).
downloadThroughput - Maximal aggregated download throughput.
uploadThroughput - Maximal aggregated upload throughput.

func (*EmulateNetworkConditionsParams) Do

Do executes Network.emulateNetworkConditions against the provided context and target handler.

func (EmulateNetworkConditionsParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EmulateNetworkConditionsParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EmulateNetworkConditionsParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EmulateNetworkConditionsParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (EmulateNetworkConditionsParams) WithConnectionType

WithConnectionType connection type if known.

type EnableParams

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

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

func Enable

func Enable() *EnableParams

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

parameters:

func (*EnableParams) Do

func (p *EnableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Network.enable against the provided context and target handler.

func (EnableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (EnableParams) WithMaxResourceBufferSize

func (p EnableParams) WithMaxResourceBufferSize(maxResourceBufferSize int64) *EnableParams

WithMaxResourceBufferSize per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).

func (EnableParams) WithMaxTotalBufferSize

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

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

type EventDataReceived

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

EventDataReceived fired when data chunk was received over the network.

func (EventDataReceived) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDataReceived) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventDataReceived) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDataReceived) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventEventSourceMessageReceived

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

EventEventSourceMessageReceived fired when EventSource message is received.

func (EventEventSourceMessageReceived) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventEventSourceMessageReceived) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventEventSourceMessageReceived) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventEventSourceMessageReceived) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventLoadingFailed

type EventLoadingFailed struct {
	RequestID     RequestID         `json:"requestId,omitempty"`     // Request identifier.
	Timestamp     cdp.Timestamp     `json:"timestamp,omitempty"`     // Timestamp.
	Type          page.ResourceType `json:"type,omitempty"`          // Resource type.
	ErrorText     string            `json:"errorText,omitempty"`     // User friendly error message.
	Canceled      bool              `json:"canceled,omitempty"`      // True if loading was canceled.
	BlockedReason BlockedReason     `json:"blockedReason,omitempty"` // The reason why loading was blocked, if any.
}

EventLoadingFailed fired when HTTP request has failed to load.

func (EventLoadingFailed) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLoadingFailed) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventLoadingFailed) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLoadingFailed) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventLoadingFinished

type EventLoadingFinished struct {
	RequestID         RequestID     `json:"requestId,omitempty"`         // Request identifier.
	Timestamp         cdp.Timestamp `json:"timestamp,omitempty"`         // Timestamp.
	EncodedDataLength float64       `json:"encodedDataLength,omitempty"` // Total number of bytes received for this request.
}

EventLoadingFinished fired when HTTP request has finished loading.

func (EventLoadingFinished) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLoadingFinished) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventLoadingFinished) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLoadingFinished) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventRequestServedFromCache

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

EventRequestServedFromCache fired if request ended up loading from cache.

func (EventRequestServedFromCache) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventRequestServedFromCache) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventRequestServedFromCache) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventRequestServedFromCache) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventRequestWillBeSent

type EventRequestWillBeSent struct {
	RequestID        RequestID         `json:"requestId,omitempty"`        // Request identifier.
	FrameID          cdp.FrameID       `json:"frameId,omitempty"`          // Frame identifier.
	LoaderID         cdp.LoaderID      `json:"loaderId,omitempty"`         // Loader identifier.
	DocumentURL      string            `json:"documentURL,omitempty"`      // URL of the document this request is loaded for.
	Request          *Request          `json:"request,omitempty"`          // Request data.
	Timestamp        cdp.Timestamp     `json:"timestamp,omitempty"`        // Timestamp.
	WallTime         cdp.Timestamp     `json:"wallTime,omitempty"`         // UTC Timestamp.
	Initiator        *Initiator        `json:"initiator,omitempty"`        // Request initiator.
	RedirectResponse *Response         `json:"redirectResponse,omitempty"` // Redirect response data.
	Type             page.ResourceType `json:"type,omitempty"`             // Type of this resource.
}

EventRequestWillBeSent fired when page is about to send HTTP request.

func (EventRequestWillBeSent) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventRequestWillBeSent) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventRequestWillBeSent) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventRequestWillBeSent) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventResourceChangedPriority

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

EventResourceChangedPriority fired when resource loading priority is changed.

func (EventResourceChangedPriority) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResourceChangedPriority) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventResourceChangedPriority) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResourceChangedPriority) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventResponseReceived

type EventResponseReceived struct {
	RequestID RequestID         `json:"requestId,omitempty"` // Request identifier.
	FrameID   cdp.FrameID       `json:"frameId,omitempty"`   // Frame identifier.
	LoaderID  cdp.LoaderID      `json:"loaderId,omitempty"`  // Loader identifier.
	Timestamp cdp.Timestamp     `json:"timestamp,omitempty"` // Timestamp.
	Type      page.ResourceType `json:"type,omitempty"`      // Resource type.
	Response  *Response         `json:"response,omitempty"`  // Response data.
}

EventResponseReceived fired when HTTP response is available.

func (EventResponseReceived) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResponseReceived) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventResponseReceived) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResponseReceived) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketClosed

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

EventWebSocketClosed fired when WebSocket is closed.

func (EventWebSocketClosed) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketClosed) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketClosed) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketClosed) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketCreated

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

EventWebSocketCreated fired upon WebSocket creation.

func (EventWebSocketCreated) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketCreated) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketCreated) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketCreated) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketFrameError

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

EventWebSocketFrameError fired when WebSocket frame error occurs.

func (EventWebSocketFrameError) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketFrameError) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketFrameError) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketFrameError) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketFrameReceived

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

EventWebSocketFrameReceived fired when WebSocket frame is received.

func (EventWebSocketFrameReceived) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketFrameReceived) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketFrameReceived) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketFrameReceived) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketFrameSent

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

EventWebSocketFrameSent fired when WebSocket frame is sent.

func (EventWebSocketFrameSent) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketFrameSent) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketFrameSent) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketFrameSent) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketHandshakeResponseReceived

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

EventWebSocketHandshakeResponseReceived fired when WebSocket handshake response becomes available.

func (EventWebSocketHandshakeResponseReceived) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketHandshakeResponseReceived) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketHandshakeResponseReceived) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketHandshakeResponseReceived) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventWebSocketWillSendHandshakeRequest

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

EventWebSocketWillSendHandshakeRequest fired when WebSocket is about to initiate handshake.

func (EventWebSocketWillSendHandshakeRequest) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventWebSocketWillSendHandshakeRequest) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventWebSocketWillSendHandshakeRequest) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventWebSocketWillSendHandshakeRequest) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetAllCookiesParams

type GetAllCookiesParams struct{}

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

func GetAllCookies

func GetAllCookies() *GetAllCookiesParams

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

func (*GetAllCookiesParams) Do

func (p *GetAllCookiesParams) Do(ctxt context.Context, h cdp.Handler) (cookies []*Cookie, err error)

Do executes Network.getAllCookies against the provided context and target handler.

returns:

cookies - Array of cookie objects.

func (GetAllCookiesParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllCookiesParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetAllCookiesParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllCookiesParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetAllCookiesReturns

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

GetAllCookiesReturns return values.

func (GetAllCookiesReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllCookiesReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetAllCookiesReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllCookiesReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetCertificateParams

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

GetCertificateParams returns the DER-encoded certificate.

func GetCertificate

func GetCertificate(origin string) *GetCertificateParams

GetCertificate returns the DER-encoded certificate.

parameters:

origin - Origin to get certificate for.

func (*GetCertificateParams) Do

func (p *GetCertificateParams) Do(ctxt context.Context, h cdp.Handler) (tableNames []string, err error)

Do executes Network.getCertificate against the provided context and target handler.

returns:

tableNames

func (GetCertificateParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCertificateParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetCertificateParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCertificateParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetCertificateReturns

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

GetCertificateReturns return values.

func (GetCertificateReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCertificateReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetCertificateReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCertificateReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetCookiesParams

type GetCookiesParams struct {
	Urls []string `json:"urls,omitempty"` // The list of URLs for which applicable cookies will be fetched
}

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

func GetCookies

func GetCookies() *GetCookiesParams

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

parameters:

func (*GetCookiesParams) Do

func (p *GetCookiesParams) Do(ctxt context.Context, h cdp.Handler) (cookies []*Cookie, err error)

Do executes Network.getCookies against the provided context and target handler.

returns:

cookies - Array of cookie objects.

func (GetCookiesParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCookiesParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetCookiesParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCookiesParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (GetCookiesParams) WithUrls

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

WithUrls the list of URLs for which applicable cookies will be fetched.

type GetCookiesReturns

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

GetCookiesReturns return values.

func (GetCookiesReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCookiesReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetCookiesReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCookiesReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetResponseBodyParams

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

GetResponseBodyParams returns content served for the given request.

func GetResponseBody

func GetResponseBody(requestID RequestID) *GetResponseBodyParams

GetResponseBody returns content served for the given request.

parameters:

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

func (*GetResponseBodyParams) Do

func (p *GetResponseBodyParams) Do(ctxt context.Context, h cdp.Handler) (body []byte, err error)

Do executes Network.getResponseBody against the provided context and target handler.

returns:

body - Response body.

func (GetResponseBodyParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResponseBodyParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetResponseBodyParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResponseBodyParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetResponseBodyReturns

type GetResponseBodyReturns struct {
	Body          string `json:"body,omitempty"`          // Response body.
	Base64encoded bool   `json:"base64Encoded,omitempty"` // True, if content was sent as base64.
}

GetResponseBodyReturns return values.

func (GetResponseBodyReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetResponseBodyReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetResponseBodyReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetResponseBodyReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Headers

type Headers struct{}

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

func (Headers) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Headers) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Headers) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Headers) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Initiator

type Initiator struct {
	Type       InitiatorType       `json:"type,omitempty"`       // 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 only.
	LineNumber float64             `json:"lineNumber,omitempty"` // Initiator line number, set for Parser type only (0-based).
}

Initiator information about the request initiator.

func (Initiator) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Initiator) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Initiator) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Initiator) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type InitiatorType

type InitiatorType string

InitiatorType type of this initiator.

const (
	InitiatorTypeParser  InitiatorType = "parser"
	InitiatorTypeScript  InitiatorType = "script"
	InitiatorTypePreload InitiatorType = "preload"
	InitiatorTypeOther   InitiatorType = "other"
)

InitiatorType values.

func (InitiatorType) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (InitiatorType) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (InitiatorType) String

func (t InitiatorType) String() string

String returns the InitiatorType as string value.

func (*InitiatorType) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*InitiatorType) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type MixedContentType

type MixedContentType string

MixedContentType the mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/.

const (
	MixedContentTypeBlockable           MixedContentType = "blockable"
	MixedContentTypeOptionallyBlockable MixedContentType = "optionally-blockable"
	MixedContentTypeNone                MixedContentType = "none"
)

MixedContentType values.

func (MixedContentType) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (MixedContentType) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (MixedContentType) String

func (t MixedContentType) String() string

String returns the MixedContentType as string value.

func (*MixedContentType) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*MixedContentType) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type ReferrerPolicy

type ReferrerPolicy string

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

const (
	ReferrerPolicyUnsafeURL                                    ReferrerPolicy = "unsafe-url"
	ReferrerPolicyNoReferrerWhenDowngrade                      ReferrerPolicy = "no-referrer-when-downgrade"
	ReferrerPolicyNoReferrer                                   ReferrerPolicy = "no-referrer"
	ReferrerPolicyOrigin                                       ReferrerPolicy = "origin"
	ReferrerPolicyOriginWhenCrossOrigin                        ReferrerPolicy = "origin-when-cross-origin"
	ReferrerPolicyNoReferrerWhenDowngradeOriginWhenCrossOrigin ReferrerPolicy = "no-referrer-when-downgrade-origin-when-cross-origin"
)

ReferrerPolicy values.

func (ReferrerPolicy) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ReferrerPolicy) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ReferrerPolicy) String

func (t ReferrerPolicy) String() string

String returns the ReferrerPolicy as string value.

func (*ReferrerPolicy) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ReferrerPolicy) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type ReplayXHRParams

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

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

func ReplayXHR

func ReplayXHR(requestID RequestID) *ReplayXHRParams

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

parameters:

requestID - Identifier of XHR to replay.

func (*ReplayXHRParams) Do

func (p *ReplayXHRParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Network.replayXHR against the provided context and target handler.

func (ReplayXHRParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReplayXHRParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReplayXHRParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReplayXHRParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Request

type Request struct {
	URL              string           `json:"url,omitempty"`              // Request URL.
	Method           string           `json:"method,omitempty"`           // HTTP request method.
	Headers          *Headers         `json:"headers,omitempty"`          // HTTP request headers.
	PostData         string           `json:"postData,omitempty"`         // HTTP POST request data.
	MixedContentType MixedContentType `json:"mixedContentType,omitempty"` // The mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/
	InitialPriority  ResourcePriority `json:"initialPriority,omitempty"`  // Priority of the resource request at the time request is sent.
	ReferrerPolicy   ReferrerPolicy   `json:"referrerPolicy,omitempty"`   // The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
}

Request hTTP request data.

func (Request) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Request) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Request) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Request) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type RequestID

type RequestID string

RequestID unique request identifier.

func (RequestID) String

func (t RequestID) String() string

String returns the RequestID as string value.

type ResourcePriority

type ResourcePriority string

ResourcePriority loading priority of a resource request.

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

ResourcePriority values.

func (ResourcePriority) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ResourcePriority) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ResourcePriority) String

func (t ResourcePriority) String() string

String returns the ResourcePriority as string value.

func (*ResourcePriority) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ResourcePriority) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type ResourceTiming

type ResourceTiming struct {
	RequestTime       float64 `json:"requestTime,omitempty"`       // Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
	ProxyStart        float64 `json:"proxyStart,omitempty"`        // Started resolving proxy.
	ProxyEnd          float64 `json:"proxyEnd,omitempty"`          // Finished resolving proxy.
	DNSStart          float64 `json:"dnsStart,omitempty"`          // Started DNS address resolve.
	DNSEnd            float64 `json:"dnsEnd,omitempty"`            // Finished DNS address resolve.
	ConnectStart      float64 `json:"connectStart,omitempty"`      // Started connecting to the remote host.
	ConnectEnd        float64 `json:"connectEnd,omitempty"`        // Connected to the remote host.
	SslStart          float64 `json:"sslStart,omitempty"`          // Started SSL handshake.
	SslEnd            float64 `json:"sslEnd,omitempty"`            // Finished SSL handshake.
	WorkerStart       float64 `json:"workerStart,omitempty"`       // Started running ServiceWorker.
	WorkerReady       float64 `json:"workerReady,omitempty"`       // Finished Starting ServiceWorker.
	SendStart         float64 `json:"sendStart,omitempty"`         // Started sending request.
	SendEnd           float64 `json:"sendEnd,omitempty"`           // Finished sending request.
	PushStart         float64 `json:"pushStart,omitempty"`         // Time the server started pushing request.
	PushEnd           float64 `json:"pushEnd,omitempty"`           // Time the server finished pushing request.
	ReceiveHeadersEnd float64 `json:"receiveHeadersEnd,omitempty"` // Finished receiving response headers.
}

ResourceTiming timing information for the request.

func (ResourceTiming) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResourceTiming) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ResourceTiming) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResourceTiming) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Response

type Response struct {
	URL                string           `json:"url,omitempty"`                // Response URL. This URL can be different from CachedResource.url in case of redirect.
	Status             float64          `json:"status,omitempty"`             // HTTP response status code.
	StatusText         string           `json:"statusText,omitempty"`         // HTTP response status text.
	Headers            *Headers         `json:"headers,omitempty"`            // HTTP response headers.
	HeadersText        string           `json:"headersText,omitempty"`        // HTTP response headers text.
	MimeType           string           `json:"mimeType,omitempty"`           // 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,omitempty"`   // Specifies whether physical connection was actually reused for this request.
	ConnectionID       float64          `json:"connectionId,omitempty"`       // Physical connection id that was actually used for this request.
	RemoteIPAddress    string           `json:"remoteIPAddress,omitempty"`    // Remote IP address.
	RemotePort         int64            `json:"remotePort,omitempty"`         // Remote port.
	FromDiskCache      bool             `json:"fromDiskCache,omitempty"`      // Specifies that the request was served from the disk cache.
	FromServiceWorker  bool             `json:"fromServiceWorker,omitempty"`  // Specifies that the request was served from the ServiceWorker.
	EncodedDataLength  float64          `json:"encodedDataLength,omitempty"`  // Total number of bytes received for this request so far.
	Timing             *ResourceTiming  `json:"timing,omitempty"`             // Timing information for the given request.
	Protocol           string           `json:"protocol,omitempty"`           // Protocol used to fetch this request.
	SecurityState      security.State   `json:"securityState,omitempty"`      // Security state of the request resource.
	SecurityDetails    *SecurityDetails `json:"securityDetails,omitempty"`    // Security details for the request.
}

Response hTTP response data.

func (Response) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Response) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Response) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Response) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SecurityDetails

type SecurityDetails struct {
	Protocol                       string                        `json:"protocol,omitempty"`                       // Protocol name (e.g. "TLS 1.2" or "QUIC").
	KeyExchange                    string                        `json:"keyExchange,omitempty"`                    // 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,omitempty"`                         // Cipher name.
	Mac                            string                        `json:"mac,omitempty"`                            // TLS MAC. Note that AEAD ciphers do not have separate MACs.
	CertificateID                  security.CertificateID        `json:"certificateId,omitempty"`                  // Certificate ID value.
	SubjectName                    string                        `json:"subjectName,omitempty"`                    // Certificate subject name.
	SanList                        []string                      `json:"sanList,omitempty"`                        // Subject Alternative Name (SAN) DNS names and IP addresses.
	Issuer                         string                        `json:"issuer,omitempty"`                         // Name of the issuing CA.
	ValidFrom                      cdp.Timestamp                 `json:"validFrom,omitempty"`                      // Certificate valid from date.
	ValidTo                        cdp.Timestamp                 `json:"validTo,omitempty"`                        // Certificate valid to (expiration) date
	SignedCertificateTimestampList []*SignedCertificateTimestamp `json:"signedCertificateTimestampList,omitempty"` // List of signed certificate timestamps (SCTs).
}

SecurityDetails security details about a request.

func (SecurityDetails) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SecurityDetails) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SecurityDetails) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SecurityDetails) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBlockedURLSParams

type SetBlockedURLSParams struct {
	Urls []string `json:"urls"` // URLs to block.
}

SetBlockedURLSParams blocks specific URL from loading.

func SetBlockedURLS

func SetBlockedURLS(urls []string) *SetBlockedURLSParams

SetBlockedURLS blocks specific URL from loading.

parameters:

urls - URLs to block.

func (*SetBlockedURLSParams) Do

func (p *SetBlockedURLSParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Network.setBlockedURLs against the provided context and target handler.

func (SetBlockedURLSParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBlockedURLSParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetBlockedURLSParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBlockedURLSParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBypassServiceWorkerParams

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

SetBypassServiceWorkerParams toggles ignoring of service worker for each request.

func SetBypassServiceWorker

func SetBypassServiceWorker(bypass bool) *SetBypassServiceWorkerParams

SetBypassServiceWorker toggles ignoring of service worker for each request.

parameters:

bypass - Bypass service worker and load from network.

func (*SetBypassServiceWorkerParams) Do

Do executes Network.setBypassServiceWorker against the provided context and target handler.

func (SetBypassServiceWorkerParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBypassServiceWorkerParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetBypassServiceWorkerParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBypassServiceWorkerParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetCacheDisabledParams

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

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

func SetCacheDisabled

func SetCacheDisabled(cacheDisabled bool) *SetCacheDisabledParams

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

parameters:

cacheDisabled - Cache disabled state.

func (*SetCacheDisabledParams) Do

func (p *SetCacheDisabledParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Network.setCacheDisabled against the provided context and target handler.

func (SetCacheDisabledParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCacheDisabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetCacheDisabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCacheDisabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetCookieParams

type SetCookieParams struct {
	URL            string         `json:"url"`                      // 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.
	Name           string         `json:"name"`                     // The name of the cookie.
	Value          string         `json:"value"`                    // The value of the cookie.
	Domain         string         `json:"domain,omitempty"`         // If omitted, the cookie becomes a host-only cookie.
	Path           string         `json:"path,omitempty"`           // Defaults to the path portion of the url parameter.
	Secure         bool           `json:"secure,omitempty"`         // Defaults ot false.
	HTTPOnly       bool           `json:"httpOnly,omitempty"`       // Defaults to false.
	SameSite       CookieSameSite `json:"sameSite,omitempty"`       // Defaults to browser default behavior.
	ExpirationDate cdp.Timestamp  `json:"expirationDate,omitempty"` // If omitted, the cookie becomes a session cookie.
}

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

func SetCookie

func SetCookie(url string, name string, value string) *SetCookieParams

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

parameters:

url - 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.
name - The name of the cookie.
value - The value of the cookie.

func (*SetCookieParams) Do

func (p *SetCookieParams) Do(ctxt context.Context, h cdp.Handler) (success bool, err error)

Do executes Network.setCookie against the provided context and target handler.

returns:

success - True if successfully set cookie.

func (SetCookieParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCookieParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetCookieParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCookieParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetCookieParams) WithDomain

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

WithDomain if omitted, the cookie becomes a host-only cookie.

func (SetCookieParams) WithExpirationDate

func (p SetCookieParams) WithExpirationDate(expirationDate cdp.Timestamp) *SetCookieParams

WithExpirationDate if omitted, the cookie becomes a session cookie.

func (SetCookieParams) WithHTTPOnly

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

WithHTTPOnly defaults to false.

func (SetCookieParams) WithPath

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

WithPath defaults to the path portion of the url parameter.

func (SetCookieParams) WithSameSite

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

WithSameSite defaults to browser default behavior.

func (SetCookieParams) WithSecure

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

WithSecure defaults ot false.

type SetCookieReturns

type SetCookieReturns struct {
	Success bool `json:"success,omitempty"` // True if successfully set cookie.
}

SetCookieReturns return values.

func (SetCookieReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetCookieReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetCookieReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetCookieReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetDataSizeLimitsForTestParams

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

SetDataSizeLimitsForTestParams for testing.

func SetDataSizeLimitsForTest

func SetDataSizeLimitsForTest(maxTotalSize int64, maxResourceSize int64) *SetDataSizeLimitsForTestParams

SetDataSizeLimitsForTest for testing.

parameters:

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

func (*SetDataSizeLimitsForTestParams) Do

Do executes Network.setDataSizeLimitsForTest against the provided context and target handler.

func (SetDataSizeLimitsForTestParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDataSizeLimitsForTestParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetDataSizeLimitsForTestParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDataSizeLimitsForTestParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetExtraHTTPHeadersParams

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

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

func SetExtraHTTPHeaders

func SetExtraHTTPHeaders(headers *Headers) *SetExtraHTTPHeadersParams

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

parameters:

headers - Map with extra HTTP headers.

func (*SetExtraHTTPHeadersParams) Do

Do executes Network.setExtraHTTPHeaders against the provided context and target handler.

func (SetExtraHTTPHeadersParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetExtraHTTPHeadersParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetExtraHTTPHeadersParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetExtraHTTPHeadersParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetMonitoringXHREnabledParams

type SetMonitoringXHREnabledParams struct {
	Enabled bool `json:"enabled"` // Monitoring enabled state.
}

SetMonitoringXHREnabledParams toggles monitoring of XMLHttpRequest. If true, console will receive messages upon each XHR issued.

func SetMonitoringXHREnabled

func SetMonitoringXHREnabled(enabled bool) *SetMonitoringXHREnabledParams

SetMonitoringXHREnabled toggles monitoring of XMLHttpRequest. If true, console will receive messages upon each XHR issued.

parameters:

enabled - Monitoring enabled state.

func (*SetMonitoringXHREnabledParams) Do

Do executes Network.setMonitoringXHREnabled against the provided context and target handler.

func (SetMonitoringXHREnabledParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetMonitoringXHREnabledParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetMonitoringXHREnabledParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetMonitoringXHREnabledParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SetUserAgentOverrideParams

type SetUserAgentOverrideParams struct {
	UserAgent string `json:"userAgent"` // User agent to use.
}

SetUserAgentOverrideParams allows overriding user agent with the given string.

func SetUserAgentOverride

func SetUserAgentOverride(userAgent string) *SetUserAgentOverrideParams

SetUserAgentOverride allows overriding user agent with the given string.

parameters:

userAgent - User agent to use.

func (*SetUserAgentOverrideParams) Do

Do executes Network.setUserAgentOverride against the provided context and target handler.

func (SetUserAgentOverrideParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetUserAgentOverrideParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SetUserAgentOverrideParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetUserAgentOverrideParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SignedCertificateTimestamp

type SignedCertificateTimestamp struct {
	Status             string        `json:"status,omitempty"`             // Validation status.
	Origin             string        `json:"origin,omitempty"`             // Origin.
	LogDescription     string        `json:"logDescription,omitempty"`     // Log name / description.
	LogID              string        `json:"logId,omitempty"`              // Log ID.
	Timestamp          cdp.Timestamp `json:"timestamp,omitempty"`          // Issuance date.
	HashAlgorithm      string        `json:"hashAlgorithm,omitempty"`      // Hash algorithm.
	SignatureAlgorithm string        `json:"signatureAlgorithm,omitempty"` // Signature algorithm.
	SignatureData      string        `json:"signatureData,omitempty"`      // Signature data.
}

SignedCertificateTimestamp details of a signed certificate timestamp (SCT).

func (SignedCertificateTimestamp) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SignedCertificateTimestamp) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SignedCertificateTimestamp) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SignedCertificateTimestamp) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type WebSocketFrame

type WebSocketFrame struct {
	Opcode      float64 `json:"opcode,omitempty"`      // WebSocket frame opcode.
	Mask        bool    `json:"mask,omitempty"`        // WebSocke frame mask.
	PayloadData string  `json:"payloadData,omitempty"` // WebSocke frame payload data.
}

WebSocketFrame webSocket frame data.

func (WebSocketFrame) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebSocketFrame) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WebSocketFrame) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebSocketFrame) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type WebSocketRequest

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

WebSocketRequest webSocket request data.

func (WebSocketRequest) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebSocketRequest) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WebSocketRequest) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebSocketRequest) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type WebSocketResponse

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

WebSocketResponse webSocket response data.

func (WebSocketResponse) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebSocketResponse) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*WebSocketResponse) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebSocketResponse) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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