network

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddBlockedURLCommand

type AddBlockedURLCommand struct {
	DestinationTargetID string

	Url string `json:"url"` // URL to block.
	// contains filtered or unexported fields
}

func (*AddBlockedURLCommand) Initalize

func (c *AddBlockedURLCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*AddBlockedURLCommand) Respond

func (c *AddBlockedURLCommand) Respond()

func (*AddBlockedURLCommand) RespondWithError

func (c *AddBlockedURLCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type AddBlockedURLCommandFn

type AddBlockedURLCommandFn struct {
	// contains filtered or unexported fields
}

func (*AddBlockedURLCommandFn) Load

func (*AddBlockedURLCommandFn) Store

func (a *AddBlockedURLCommandFn) Store(fn func(AddBlockedURLCommand))

type AddBlockedURLReturn

type AddBlockedURLReturn struct {
}

type BlockedReason

type BlockedReason string
const (
	BlockedReasonCsp                   BlockedReason = "csp"
	BlockedReasonMixedDashcontent      BlockedReason = "mixed-content"
	BlockedReasonOrigin                BlockedReason = "origin"
	BlockedReasonInspector             BlockedReason = "inspector"
	BlockedReasonSubresourceDashfilter BlockedReason = "subresource-filter"
	BlockedReasonOther                 BlockedReason = "other"
)

type CachedResource

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

type CanClearBrowserCacheCommand

type CanClearBrowserCacheCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*CanClearBrowserCacheCommand) Initalize

func (c *CanClearBrowserCacheCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CanClearBrowserCacheCommand) Respond

func (*CanClearBrowserCacheCommand) RespondWithError

func (c *CanClearBrowserCacheCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CanClearBrowserCacheCommandFn

type CanClearBrowserCacheCommandFn struct {
	// contains filtered or unexported fields
}

func (*CanClearBrowserCacheCommandFn) Load

func (*CanClearBrowserCacheCommandFn) Store

type CanClearBrowserCacheReturn

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

type CanClearBrowserCookiesCommand

type CanClearBrowserCookiesCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*CanClearBrowserCookiesCommand) Initalize

func (c *CanClearBrowserCookiesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CanClearBrowserCookiesCommand) Respond

func (*CanClearBrowserCookiesCommand) RespondWithError

func (c *CanClearBrowserCookiesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CanClearBrowserCookiesCommandFn

type CanClearBrowserCookiesCommandFn struct {
	// contains filtered or unexported fields
}

func (*CanClearBrowserCookiesCommandFn) Load

func (*CanClearBrowserCookiesCommandFn) Store

type CanClearBrowserCookiesReturn

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

type CanEmulateNetworkConditionsCommand

type CanEmulateNetworkConditionsCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*CanEmulateNetworkConditionsCommand) Initalize

func (c *CanEmulateNetworkConditionsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*CanEmulateNetworkConditionsCommand) Respond

func (*CanEmulateNetworkConditionsCommand) RespondWithError

func (c *CanEmulateNetworkConditionsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type CanEmulateNetworkConditionsCommandFn

type CanEmulateNetworkConditionsCommandFn struct {
	// contains filtered or unexported fields
}

func (*CanEmulateNetworkConditionsCommandFn) Load

func (*CanEmulateNetworkConditionsCommandFn) Store

type CanEmulateNetworkConditionsReturn

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

type ClearBrowserCacheCommand

type ClearBrowserCacheCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*ClearBrowserCacheCommand) Initalize

func (c *ClearBrowserCacheCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ClearBrowserCacheCommand) Respond

func (c *ClearBrowserCacheCommand) Respond()

func (*ClearBrowserCacheCommand) RespondWithError

func (c *ClearBrowserCacheCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ClearBrowserCacheCommandFn

type ClearBrowserCacheCommandFn struct {
	// contains filtered or unexported fields
}

func (*ClearBrowserCacheCommandFn) Load

func (*ClearBrowserCacheCommandFn) Store

type ClearBrowserCacheReturn

type ClearBrowserCacheReturn struct {
}

type ClearBrowserCookiesCommand

type ClearBrowserCookiesCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*ClearBrowserCookiesCommand) Initalize

func (c *ClearBrowserCookiesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ClearBrowserCookiesCommand) Respond

func (c *ClearBrowserCookiesCommand) Respond()

func (*ClearBrowserCookiesCommand) RespondWithError

func (c *ClearBrowserCookiesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ClearBrowserCookiesCommandFn

type ClearBrowserCookiesCommandFn struct {
	// contains filtered or unexported fields
}

func (*ClearBrowserCookiesCommandFn) Load

func (*ClearBrowserCookiesCommandFn) Store

type ClearBrowserCookiesReturn

type ClearBrowserCookiesReturn struct {
}

type ConnectionType

type ConnectionType string
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"
)
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.
}

type CookieSameSite

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

type DataReceivedEvent

type DataReceivedEvent struct {
	RequestId         RequestId `json:"requestId"`         // Request identifier.
	Timestamp         Timestamp `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).
}

type DeleteCookieCommand

type DeleteCookieCommand struct {
	DestinationTargetID string

	CookieName string `json:"cookieName"` // Name of the cookie to remove.
	Url        string `json:"url"`        // URL to match cooke domain and path.
	// contains filtered or unexported fields
}

func (*DeleteCookieCommand) Initalize

func (c *DeleteCookieCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DeleteCookieCommand) Respond

func (c *DeleteCookieCommand) Respond()

func (*DeleteCookieCommand) RespondWithError

func (c *DeleteCookieCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DeleteCookieCommandFn

type DeleteCookieCommandFn struct {
	// contains filtered or unexported fields
}

func (*DeleteCookieCommandFn) Load

func (*DeleteCookieCommandFn) Store

func (a *DeleteCookieCommandFn) Store(fn func(DeleteCookieCommand))

type DeleteCookieReturn

type DeleteCookieReturn struct {
}

type DisableCommand

type DisableCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*DisableCommand) Initalize

func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*DisableCommand) Respond

func (c *DisableCommand) Respond()

func (*DisableCommand) RespondWithError

func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type DisableCommandFn

type DisableCommandFn struct {
	// contains filtered or unexported fields
}

func (*DisableCommandFn) Load

func (a *DisableCommandFn) Load() func(DisableCommand)

func (*DisableCommandFn) Store

func (a *DisableCommandFn) Store(fn func(DisableCommand))

type DisableReturn

type DisableReturn struct {
}

type EmulateNetworkConditionsCommand

type EmulateNetworkConditionsCommand struct {
	DestinationTargetID string

	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.
	// contains filtered or unexported fields
}

func (*EmulateNetworkConditionsCommand) Initalize

func (c *EmulateNetworkConditionsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EmulateNetworkConditionsCommand) Respond

func (c *EmulateNetworkConditionsCommand) Respond()

func (*EmulateNetworkConditionsCommand) RespondWithError

func (c *EmulateNetworkConditionsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EmulateNetworkConditionsCommandFn

type EmulateNetworkConditionsCommandFn struct {
	// contains filtered or unexported fields
}

func (*EmulateNetworkConditionsCommandFn) Load

func (*EmulateNetworkConditionsCommandFn) Store

type EmulateNetworkConditionsReturn

type EmulateNetworkConditionsReturn struct {
}

type EnableCommand

type EnableCommand struct {
	DestinationTargetID string

	MaxTotalBufferSize    *int64 `json:"maxTotalBufferSize,omitempty"`    // [Experimental] Buffer size in bytes to use when preserving network payloads (XHRs, etc).
	MaxResourceBufferSize *int64 `json:"maxResourceBufferSize,omitempty"` // [Experimental] Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).
	// contains filtered or unexported fields
}

func (*EnableCommand) Initalize

func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type EnableCommandFn

type EnableCommandFn struct {
	// contains filtered or unexported fields
}

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

type EventSourceMessageReceivedEvent

type EventSourceMessageReceivedEvent struct {
	RequestId RequestId `json:"requestId"` // Request identifier.
	Timestamp Timestamp `json:"timestamp"` // Timestamp.
	EventName string    `json:"eventName"` // Message type.
	EventId   string    `json:"eventId"`   // Message identifier.
	Data      string    `json:"data"`      // Message content.
}

type GetAllCookiesCommand

type GetAllCookiesCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetAllCookiesCommand) Initalize

func (c *GetAllCookiesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetAllCookiesCommand) Respond

func (*GetAllCookiesCommand) RespondWithError

func (c *GetAllCookiesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetAllCookiesCommandFn

type GetAllCookiesCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetAllCookiesCommandFn) Load

func (*GetAllCookiesCommandFn) Store

func (a *GetAllCookiesCommandFn) Store(fn func(GetAllCookiesCommand))

type GetAllCookiesReturn

type GetAllCookiesReturn struct {
	Cookies []Cookie `json:"cookies"` // Array of cookie objects.
}

type GetCertificateCommand

type GetCertificateCommand struct {
	DestinationTargetID string

	Origin string `json:"origin"` // Origin to get certificate for.
	// contains filtered or unexported fields
}

func (*GetCertificateCommand) Initalize

func (c *GetCertificateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetCertificateCommand) Respond

func (*GetCertificateCommand) RespondWithError

func (c *GetCertificateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetCertificateCommandFn

type GetCertificateCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetCertificateCommandFn) Load

func (*GetCertificateCommandFn) Store

type GetCertificateReturn

type GetCertificateReturn struct {
	TableNames []string `json:"tableNames"`
}

type GetCookiesCommand

type GetCookiesCommand struct {
	DestinationTargetID string

	Urls *[]string `json:"urls,omitempty"` // The list of URLs for which applicable cookies will be fetched
	// contains filtered or unexported fields
}

func (*GetCookiesCommand) Initalize

func (c *GetCookiesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetCookiesCommand) Respond

func (c *GetCookiesCommand) Respond(r *GetCookiesReturn)

func (*GetCookiesCommand) RespondWithError

func (c *GetCookiesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetCookiesCommandFn

type GetCookiesCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetCookiesCommandFn) Load

func (a *GetCookiesCommandFn) Load() func(GetCookiesCommand)

func (*GetCookiesCommandFn) Store

func (a *GetCookiesCommandFn) Store(fn func(GetCookiesCommand))

type GetCookiesReturn

type GetCookiesReturn struct {
	Cookies []Cookie `json:"cookies"` // Array of cookie objects.
}

type GetResponseBodyCommand

type GetResponseBodyCommand struct {
	DestinationTargetID string

	RequestId RequestId `json:"requestId"` // Identifier of the network request to get content for.
	// contains filtered or unexported fields
}

func (*GetResponseBodyCommand) Initalize

func (c *GetResponseBodyCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetResponseBodyCommand) Respond

func (*GetResponseBodyCommand) RespondWithError

func (c *GetResponseBodyCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetResponseBodyCommandFn

type GetResponseBodyCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetResponseBodyCommandFn) Load

func (*GetResponseBodyCommandFn) Store

type GetResponseBodyReturn

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

type Headers

type Headers map[string]string

type Initiator

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

type InitiatorTypeEnum

type InitiatorTypeEnum string
const (
	InitiatorTypeParser  InitiatorTypeEnum = "parser"
	InitiatorTypeScript  InitiatorTypeEnum = "script"
	InitiatorTypePreload InitiatorTypeEnum = "preload"
	InitiatorTypeOther   InitiatorTypeEnum = "other"
)

type LoaderId

type LoaderId string

type LoadingFailedEvent

type LoadingFailedEvent struct {
	RequestId     RequestId            `json:"requestId"`               // Request identifier.
	Timestamp     Timestamp            `json:"timestamp"`               // Timestamp.
	Type          runtime.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"` // [Experimental] The reason why loading was blocked, if any.
}

type LoadingFinishedEvent

type LoadingFinishedEvent struct {
	RequestId         RequestId `json:"requestId"`         // Request identifier.
	Timestamp         Timestamp `json:"timestamp"`         // Timestamp.
	EncodedDataLength float64   `json:"encodedDataLength"` // Total number of bytes received for this request.
}

type NetworkAgent

type NetworkAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *NetworkAgent

func (*NetworkAgent) FireDataReceived

func (agent *NetworkAgent) FireDataReceived(event DataReceivedEvent)

func (*NetworkAgent) FireDataReceivedOnTarget

func (agent *NetworkAgent) FireDataReceivedOnTarget(targetId string, event DataReceivedEvent)

func (*NetworkAgent) FireEventSourceMessageReceived

func (agent *NetworkAgent) FireEventSourceMessageReceived(event EventSourceMessageReceivedEvent)

func (*NetworkAgent) FireEventSourceMessageReceivedOnTarget

func (agent *NetworkAgent) FireEventSourceMessageReceivedOnTarget(targetId string, event EventSourceMessageReceivedEvent)

func (*NetworkAgent) FireLoadingFailed

func (agent *NetworkAgent) FireLoadingFailed(event LoadingFailedEvent)

func (*NetworkAgent) FireLoadingFailedOnTarget

func (agent *NetworkAgent) FireLoadingFailedOnTarget(targetId string, event LoadingFailedEvent)

func (*NetworkAgent) FireLoadingFinished

func (agent *NetworkAgent) FireLoadingFinished(event LoadingFinishedEvent)

func (*NetworkAgent) FireLoadingFinishedOnTarget

func (agent *NetworkAgent) FireLoadingFinishedOnTarget(targetId string, event LoadingFinishedEvent)

func (*NetworkAgent) FireRequestServedFromCache

func (agent *NetworkAgent) FireRequestServedFromCache(event RequestServedFromCacheEvent)

func (*NetworkAgent) FireRequestServedFromCacheOnTarget

func (agent *NetworkAgent) FireRequestServedFromCacheOnTarget(targetId string, event RequestServedFromCacheEvent)

func (*NetworkAgent) FireRequestWillBeSent

func (agent *NetworkAgent) FireRequestWillBeSent(event RequestWillBeSentEvent)

func (*NetworkAgent) FireRequestWillBeSentOnTarget

func (agent *NetworkAgent) FireRequestWillBeSentOnTarget(targetId string, event RequestWillBeSentEvent)

func (*NetworkAgent) FireResourceChangedPriority

func (agent *NetworkAgent) FireResourceChangedPriority(event ResourceChangedPriorityEvent)

Dispatchable Events

func (*NetworkAgent) FireResourceChangedPriorityOnTarget

func (agent *NetworkAgent) FireResourceChangedPriorityOnTarget(targetId string, event ResourceChangedPriorityEvent)

func (*NetworkAgent) FireResponseReceived

func (agent *NetworkAgent) FireResponseReceived(event ResponseReceivedEvent)

func (*NetworkAgent) FireResponseReceivedOnTarget

func (agent *NetworkAgent) FireResponseReceivedOnTarget(targetId string, event ResponseReceivedEvent)

func (*NetworkAgent) FireWebSocketClosed

func (agent *NetworkAgent) FireWebSocketClosed(event WebSocketClosedEvent)

func (*NetworkAgent) FireWebSocketClosedOnTarget

func (agent *NetworkAgent) FireWebSocketClosedOnTarget(targetId string, event WebSocketClosedEvent)

func (*NetworkAgent) FireWebSocketCreated

func (agent *NetworkAgent) FireWebSocketCreated(event WebSocketCreatedEvent)

func (*NetworkAgent) FireWebSocketCreatedOnTarget

func (agent *NetworkAgent) FireWebSocketCreatedOnTarget(targetId string, event WebSocketCreatedEvent)

func (*NetworkAgent) FireWebSocketFrameError

func (agent *NetworkAgent) FireWebSocketFrameError(event WebSocketFrameErrorEvent)

func (*NetworkAgent) FireWebSocketFrameErrorOnTarget

func (agent *NetworkAgent) FireWebSocketFrameErrorOnTarget(targetId string, event WebSocketFrameErrorEvent)

func (*NetworkAgent) FireWebSocketFrameReceived

func (agent *NetworkAgent) FireWebSocketFrameReceived(event WebSocketFrameReceivedEvent)

func (*NetworkAgent) FireWebSocketFrameReceivedOnTarget

func (agent *NetworkAgent) FireWebSocketFrameReceivedOnTarget(targetId string, event WebSocketFrameReceivedEvent)

func (*NetworkAgent) FireWebSocketFrameSent

func (agent *NetworkAgent) FireWebSocketFrameSent(event WebSocketFrameSentEvent)

func (*NetworkAgent) FireWebSocketFrameSentOnTarget

func (agent *NetworkAgent) FireWebSocketFrameSentOnTarget(targetId string, event WebSocketFrameSentEvent)

func (*NetworkAgent) FireWebSocketHandshakeResponseReceived

func (agent *NetworkAgent) FireWebSocketHandshakeResponseReceived(event WebSocketHandshakeResponseReceivedEvent)

func (*NetworkAgent) FireWebSocketHandshakeResponseReceivedOnTarget

func (agent *NetworkAgent) FireWebSocketHandshakeResponseReceivedOnTarget(targetId string, event WebSocketHandshakeResponseReceivedEvent)

func (*NetworkAgent) FireWebSocketWillSendHandshakeRequest

func (agent *NetworkAgent) FireWebSocketWillSendHandshakeRequest(event WebSocketWillSendHandshakeRequestEvent)

func (*NetworkAgent) FireWebSocketWillSendHandshakeRequestOnTarget

func (agent *NetworkAgent) FireWebSocketWillSendHandshakeRequestOnTarget(targetId string, event WebSocketWillSendHandshakeRequestEvent)

func (*NetworkAgent) Name

func (agent *NetworkAgent) Name() string

func (*NetworkAgent) ProcessCommand

func (agent *NetworkAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*NetworkAgent) SetAddBlockedURLHandler

func (agent *NetworkAgent) SetAddBlockedURLHandler(handler func(AddBlockedURLCommand))

func (*NetworkAgent) SetCanClearBrowserCacheHandler

func (agent *NetworkAgent) SetCanClearBrowserCacheHandler(handler func(CanClearBrowserCacheCommand))

func (*NetworkAgent) SetCanClearBrowserCookiesHandler

func (agent *NetworkAgent) SetCanClearBrowserCookiesHandler(handler func(CanClearBrowserCookiesCommand))

func (*NetworkAgent) SetCanEmulateNetworkConditionsHandler

func (agent *NetworkAgent) SetCanEmulateNetworkConditionsHandler(handler func(CanEmulateNetworkConditionsCommand))

func (*NetworkAgent) SetClearBrowserCacheHandler

func (agent *NetworkAgent) SetClearBrowserCacheHandler(handler func(ClearBrowserCacheCommand))

func (*NetworkAgent) SetClearBrowserCookiesHandler

func (agent *NetworkAgent) SetClearBrowserCookiesHandler(handler func(ClearBrowserCookiesCommand))

func (*NetworkAgent) SetDeleteCookieHandler

func (agent *NetworkAgent) SetDeleteCookieHandler(handler func(DeleteCookieCommand))

func (*NetworkAgent) SetDisableHandler

func (agent *NetworkAgent) SetDisableHandler(handler func(DisableCommand))

func (*NetworkAgent) SetEmulateNetworkConditionsHandler

func (agent *NetworkAgent) SetEmulateNetworkConditionsHandler(handler func(EmulateNetworkConditionsCommand))

func (*NetworkAgent) SetEnableHandler

func (agent *NetworkAgent) SetEnableHandler(handler func(EnableCommand))

Commands Sent From Frontend

func (*NetworkAgent) SetGetAllCookiesHandler

func (agent *NetworkAgent) SetGetAllCookiesHandler(handler func(GetAllCookiesCommand))

func (*NetworkAgent) SetGetCertificateHandler

func (agent *NetworkAgent) SetGetCertificateHandler(handler func(GetCertificateCommand))

func (*NetworkAgent) SetGetCookiesHandler

func (agent *NetworkAgent) SetGetCookiesHandler(handler func(GetCookiesCommand))

func (*NetworkAgent) SetGetResponseBodyHandler

func (agent *NetworkAgent) SetGetResponseBodyHandler(handler func(GetResponseBodyCommand))

func (*NetworkAgent) SetRemoveBlockedURLHandler

func (agent *NetworkAgent) SetRemoveBlockedURLHandler(handler func(RemoveBlockedURLCommand))

func (*NetworkAgent) SetReplayXHRHandler

func (agent *NetworkAgent) SetReplayXHRHandler(handler func(ReplayXHRCommand))

func (*NetworkAgent) SetSetBypassServiceWorkerHandler

func (agent *NetworkAgent) SetSetBypassServiceWorkerHandler(handler func(SetBypassServiceWorkerCommand))

func (*NetworkAgent) SetSetCacheDisabledHandler

func (agent *NetworkAgent) SetSetCacheDisabledHandler(handler func(SetCacheDisabledCommand))

func (*NetworkAgent) SetSetCookieHandler

func (agent *NetworkAgent) SetSetCookieHandler(handler func(SetCookieCommand))

func (*NetworkAgent) SetSetDataSizeLimitsForTestHandler

func (agent *NetworkAgent) SetSetDataSizeLimitsForTestHandler(handler func(SetDataSizeLimitsForTestCommand))

func (*NetworkAgent) SetSetExtraHTTPHeadersHandler

func (agent *NetworkAgent) SetSetExtraHTTPHeadersHandler(handler func(SetExtraHTTPHeadersCommand))

func (*NetworkAgent) SetSetMonitoringXHREnabledHandler

func (agent *NetworkAgent) SetSetMonitoringXHREnabledHandler(handler func(SetMonitoringXHREnabledCommand))

func (*NetworkAgent) SetSetUserAgentOverrideHandler

func (agent *NetworkAgent) SetSetUserAgentOverrideHandler(handler func(SetUserAgentOverrideCommand))

type RemoveBlockedURLCommand

type RemoveBlockedURLCommand struct {
	DestinationTargetID string

	Url string `json:"url"` // URL to stop blocking.
	// contains filtered or unexported fields
}

func (*RemoveBlockedURLCommand) Initalize

func (c *RemoveBlockedURLCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*RemoveBlockedURLCommand) Respond

func (c *RemoveBlockedURLCommand) Respond()

func (*RemoveBlockedURLCommand) RespondWithError

func (c *RemoveBlockedURLCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type RemoveBlockedURLCommandFn

type RemoveBlockedURLCommandFn struct {
	// contains filtered or unexported fields
}

func (*RemoveBlockedURLCommandFn) Load

func (*RemoveBlockedURLCommandFn) Store

type RemoveBlockedURLReturn

type RemoveBlockedURLReturn struct {
}

type ReplayXHRCommand

type ReplayXHRCommand struct {
	DestinationTargetID string

	RequestId RequestId `json:"requestId"` // Identifier of XHR to replay.
	// contains filtered or unexported fields
}

func (*ReplayXHRCommand) Initalize

func (c *ReplayXHRCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*ReplayXHRCommand) Respond

func (c *ReplayXHRCommand) Respond()

func (*ReplayXHRCommand) RespondWithError

func (c *ReplayXHRCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type ReplayXHRCommandFn

type ReplayXHRCommandFn struct {
	// contains filtered or unexported fields
}

func (*ReplayXHRCommandFn) Load

func (a *ReplayXHRCommandFn) Load() func(ReplayXHRCommand)

func (*ReplayXHRCommandFn) Store

func (a *ReplayXHRCommandFn) Store(fn func(ReplayXHRCommand))

type ReplayXHRReturn

type ReplayXHRReturn struct {
}

type Request

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

type RequestId

type RequestId string

type RequestMixedContentTypeEnum

type RequestMixedContentTypeEnum string
const (
	RequestMixedContentTypeBlockable               RequestMixedContentTypeEnum = "blockable"
	RequestMixedContentTypeOptionallyDashblockable RequestMixedContentTypeEnum = "optionally-blockable"
	RequestMixedContentTypeNone                    RequestMixedContentTypeEnum = "none"
)

type RequestReferrerPolicyEnum

type RequestReferrerPolicyEnum string
const (
	RequestReferrerPolicyUnsafeDashurl                                    RequestReferrerPolicyEnum = "unsafe-url"
	RequestReferrerPolicyNoDashreferrerwhendowngrade                      RequestReferrerPolicyEnum = "no-referrer-when-downgrade"
	RequestReferrerPolicyNoDashreferrer                                   RequestReferrerPolicyEnum = "no-referrer"
	RequestReferrerPolicyOrigin                                           RequestReferrerPolicyEnum = "origin"
	RequestReferrerPolicyOriginDashwhencrossorigin                        RequestReferrerPolicyEnum = "origin-when-cross-origin"
	RequestReferrerPolicyNoDashreferrerwhendowngradeoriginwhencrossorigin RequestReferrerPolicyEnum = "no-referrer-when-downgrade-origin-when-cross-origin"
)

type RequestServedFromCacheEvent

type RequestServedFromCacheEvent struct {
	RequestId RequestId `json:"requestId"` // Request identifier.
}

type RequestWillBeSentEvent

type RequestWillBeSentEvent struct {
	RequestId        RequestId             `json:"requestId"`                  // Request identifier.
	FrameId          page.FrameId          `json:"frameId"`                    // [Experimental] Frame identifier.
	LoaderId         LoaderId              `json:"loaderId"`                   // Loader identifier.
	DocumentURL      string                `json:"documentURL"`                // URL of the document this request is loaded for.
	Request          Request               `json:"request"`                    // Request data.
	Timestamp        Timestamp             `json:"timestamp"`                  // Timestamp.
	WallTime         Timestamp             `json:"wallTime"`                   // [Experimental] UTC Timestamp.
	Initiator        Initiator             `json:"initiator"`                  // Request initiator.
	RedirectResponse *Response             `json:"redirectResponse,omitempty"` // Redirect response data.
	Type             *runtime.ResourceType `json:"type,omitempty"`             // [Experimental] Type of this resource.
}

type ResourceChangedPriorityEvent

type ResourceChangedPriorityEvent struct {
	RequestId   RequestId        `json:"requestId"`   // Request identifier.
	NewPriority ResourcePriority `json:"newPriority"` // New priority
	Timestamp   Timestamp        `json:"timestamp"`   // Timestamp.
}

type ResourcePriority

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

type ResourceTiming

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

type Response

type Response struct {
	Url                string                 `json:"url"`                          // Response URL. This URL can be different from CachedResource.url in case of redirect.
	Status             float64                `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"`    // [Experimental] Remote IP address.
	RemotePort         *int64                 `json:"remotePort,omitempty"`         // [Experimental] Remote port.
	FromDiskCache      *bool                  `json:"fromDiskCache,omitempty"`      // Specifies that the request was served from the disk cache.
	FromServiceWorker  *bool                  `json:"fromServiceWorker,omitempty"`  // Specifies that the request was served from the ServiceWorker.
	EncodedDataLength  float64                `json:"encodedDataLength"`            // Total number of bytes received for this request so far.
	Timing             *ResourceTiming        `json:"timing,omitempty"`             // Timing information for the given request.
	Protocol           *string                `json:"protocol,omitempty"`           // Protocol used to fetch this request.
	SecurityState      security.SecurityState `json:"securityState"`                // Security state of the request resource.
	SecurityDetails    *SecurityDetails       `json:"securityDetails,omitempty"`    // Security details for the request.
}

type ResponseReceivedEvent

type ResponseReceivedEvent struct {
	RequestId RequestId            `json:"requestId"` // Request identifier.
	FrameId   page.FrameId         `json:"frameId"`   // [Experimental] Frame identifier.
	LoaderId  LoaderId             `json:"loaderId"`  // Loader identifier.
	Timestamp Timestamp            `json:"timestamp"` // Timestamp.
	Type      runtime.ResourceType `json:"type"`      // Resource type.
	Response  Response             `json:"response"`  // Response data.
}

type SecurityDetails

type SecurityDetails struct {
	Protocol                       string                       `json:"protocol"`                       // Protocol name (e.g. "TLS 1.2" or "QUIC").
	KeyExchange                    string                       `json:"keyExchange"`                    // Key Exchange used by the connection, or the empty string if not applicable.
	KeyExchangeGroup               *string                      `json:"keyExchangeGroup,omitempty"`     // (EC)DH group used by the connection, if applicable.
	Cipher                         string                       `json:"cipher"`                         // Cipher name.
	Mac                            *string                      `json:"mac,omitempty"`                  // TLS MAC. Note that AEAD ciphers do not have separate MACs.
	CertificateId                  security.CertificateId       `json:"certificateId"`                  // Certificate ID value.
	SubjectName                    string                       `json:"subjectName"`                    // Certificate subject name.
	SanList                        []string                     `json:"sanList"`                        // Subject Alternative Name (SAN) DNS names and IP addresses.
	Issuer                         string                       `json:"issuer"`                         // Name of the issuing CA.
	ValidFrom                      Timestamp                    `json:"validFrom"`                      // Certificate valid from date.
	ValidTo                        Timestamp                    `json:"validTo"`                        // Certificate valid to (expiration) date
	SignedCertificateTimestampList []SignedCertificateTimestamp `json:"signedCertificateTimestampList"` // List of signed certificate timestamps (SCTs).
}

type SetBypassServiceWorkerCommand

type SetBypassServiceWorkerCommand struct {
	DestinationTargetID string

	Bypass bool `json:"bypass"` // Bypass service worker and load from network.
	// contains filtered or unexported fields
}

func (*SetBypassServiceWorkerCommand) Initalize

func (c *SetBypassServiceWorkerCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetBypassServiceWorkerCommand) Respond

func (c *SetBypassServiceWorkerCommand) Respond()

func (*SetBypassServiceWorkerCommand) RespondWithError

func (c *SetBypassServiceWorkerCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetBypassServiceWorkerCommandFn

type SetBypassServiceWorkerCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetBypassServiceWorkerCommandFn) Load

func (*SetBypassServiceWorkerCommandFn) Store

type SetBypassServiceWorkerReturn

type SetBypassServiceWorkerReturn struct {
}

type SetCacheDisabledCommand

type SetCacheDisabledCommand struct {
	DestinationTargetID string

	CacheDisabled bool `json:"cacheDisabled"` // Cache disabled state.
	// contains filtered or unexported fields
}

func (*SetCacheDisabledCommand) Initalize

func (c *SetCacheDisabledCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetCacheDisabledCommand) Respond

func (c *SetCacheDisabledCommand) Respond()

func (*SetCacheDisabledCommand) RespondWithError

func (c *SetCacheDisabledCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetCacheDisabledCommandFn

type SetCacheDisabledCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetCacheDisabledCommandFn) Load

func (*SetCacheDisabledCommandFn) Store

type SetCacheDisabledReturn

type SetCacheDisabledReturn struct {
}

type SetCookieCommand

type SetCookieCommand struct {
	DestinationTargetID string

	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 *Timestamp      `json:"expirationDate,omitempty"` // If omitted, the cookie becomes a session cookie.
	// contains filtered or unexported fields
}

func (*SetCookieCommand) Initalize

func (c *SetCookieCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetCookieCommand) Respond

func (c *SetCookieCommand) Respond(r *SetCookieReturn)

func (*SetCookieCommand) RespondWithError

func (c *SetCookieCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetCookieCommandFn

type SetCookieCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetCookieCommandFn) Load

func (a *SetCookieCommandFn) Load() func(SetCookieCommand)

func (*SetCookieCommandFn) Store

func (a *SetCookieCommandFn) Store(fn func(SetCookieCommand))

type SetCookieReturn

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

type SetDataSizeLimitsForTestCommand

type SetDataSizeLimitsForTestCommand struct {
	DestinationTargetID string

	MaxTotalSize    int64 `json:"maxTotalSize"`    // Maximum total buffer size.
	MaxResourceSize int64 `json:"maxResourceSize"` // Maximum per-resource size.
	// contains filtered or unexported fields
}

func (*SetDataSizeLimitsForTestCommand) Initalize

func (c *SetDataSizeLimitsForTestCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetDataSizeLimitsForTestCommand) Respond

func (c *SetDataSizeLimitsForTestCommand) Respond()

func (*SetDataSizeLimitsForTestCommand) RespondWithError

func (c *SetDataSizeLimitsForTestCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetDataSizeLimitsForTestCommandFn

type SetDataSizeLimitsForTestCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetDataSizeLimitsForTestCommandFn) Load

func (*SetDataSizeLimitsForTestCommandFn) Store

type SetDataSizeLimitsForTestReturn

type SetDataSizeLimitsForTestReturn struct {
}

type SetExtraHTTPHeadersCommand

type SetExtraHTTPHeadersCommand struct {
	DestinationTargetID string

	Headers Headers `json:"headers"` // Map with extra HTTP headers.
	// contains filtered or unexported fields
}

func (*SetExtraHTTPHeadersCommand) Initalize

func (c *SetExtraHTTPHeadersCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetExtraHTTPHeadersCommand) Respond

func (c *SetExtraHTTPHeadersCommand) Respond()

func (*SetExtraHTTPHeadersCommand) RespondWithError

func (c *SetExtraHTTPHeadersCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetExtraHTTPHeadersCommandFn

type SetExtraHTTPHeadersCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetExtraHTTPHeadersCommandFn) Load

func (*SetExtraHTTPHeadersCommandFn) Store

type SetExtraHTTPHeadersReturn

type SetExtraHTTPHeadersReturn struct {
}

type SetMonitoringXHREnabledCommand

type SetMonitoringXHREnabledCommand struct {
	DestinationTargetID string

	Enabled bool `json:"enabled"` // Monitoring enabled state.
	// contains filtered or unexported fields
}

func (*SetMonitoringXHREnabledCommand) Initalize

func (c *SetMonitoringXHREnabledCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetMonitoringXHREnabledCommand) Respond

func (c *SetMonitoringXHREnabledCommand) Respond()

func (*SetMonitoringXHREnabledCommand) RespondWithError

func (c *SetMonitoringXHREnabledCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetMonitoringXHREnabledCommandFn

type SetMonitoringXHREnabledCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetMonitoringXHREnabledCommandFn) Load

func (*SetMonitoringXHREnabledCommandFn) Store

type SetMonitoringXHREnabledReturn

type SetMonitoringXHREnabledReturn struct {
}

type SetUserAgentOverrideCommand

type SetUserAgentOverrideCommand struct {
	DestinationTargetID string

	UserAgent string `json:"userAgent"` // User agent to use.
	// contains filtered or unexported fields
}

func (*SetUserAgentOverrideCommand) Initalize

func (c *SetUserAgentOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetUserAgentOverrideCommand) Respond

func (c *SetUserAgentOverrideCommand) Respond()

func (*SetUserAgentOverrideCommand) RespondWithError

func (c *SetUserAgentOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SetUserAgentOverrideCommandFn

type SetUserAgentOverrideCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetUserAgentOverrideCommandFn) Load

func (*SetUserAgentOverrideCommandFn) Store

type SetUserAgentOverrideReturn

type SetUserAgentOverrideReturn struct {
}

type SignedCertificateTimestamp

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

type Timestamp

type Timestamp float64

type WebSocketClosedEvent

type WebSocketClosedEvent struct {
	RequestId RequestId `json:"requestId"` // Request identifier.
	Timestamp Timestamp `json:"timestamp"` // Timestamp.
}

type WebSocketCreatedEvent

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

type WebSocketFrame

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

type WebSocketFrameErrorEvent

type WebSocketFrameErrorEvent struct {
	RequestId    RequestId `json:"requestId"`    // Request identifier.
	Timestamp    Timestamp `json:"timestamp"`    // Timestamp.
	ErrorMessage string    `json:"errorMessage"` // WebSocket frame error message.
}

type WebSocketFrameReceivedEvent

type WebSocketFrameReceivedEvent struct {
	RequestId RequestId      `json:"requestId"` // Request identifier.
	Timestamp Timestamp      `json:"timestamp"` // Timestamp.
	Response  WebSocketFrame `json:"response"`  // WebSocket response data.
}

type WebSocketFrameSentEvent

type WebSocketFrameSentEvent struct {
	RequestId RequestId      `json:"requestId"` // Request identifier.
	Timestamp Timestamp      `json:"timestamp"` // Timestamp.
	Response  WebSocketFrame `json:"response"`  // WebSocket response data.
}

type WebSocketHandshakeResponseReceivedEvent

type WebSocketHandshakeResponseReceivedEvent struct {
	RequestId RequestId         `json:"requestId"` // Request identifier.
	Timestamp Timestamp         `json:"timestamp"` // Timestamp.
	Response  WebSocketResponse `json:"response"`  // WebSocket response data.
}

type WebSocketRequest

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

type WebSocketResponse

type WebSocketResponse struct {
	Status             float64  `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.
}

type WebSocketWillSendHandshakeRequestEvent

type WebSocketWillSendHandshakeRequestEvent struct {
	RequestId RequestId        `json:"requestId"` // Request identifier.
	Timestamp Timestamp        `json:"timestamp"` // Timestamp.
	WallTime  Timestamp        `json:"wallTime"`  // [Experimental] UTC Timestamp.
	Request   WebSocketRequest `json:"request"`   // WebSocket request data.
}

Jump to

Keyboard shortcuts

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