package fetch

Import Path
	github.com/chromedp/cdproto/fetch (on go.dev)

Dependency Relation
	imports 10 packages, and imported by one package

Involved Source Files easyjson.go events.go Package fetch provides the Chrome DevTools Protocol commands, types, and events for the Fetch domain. A domain for letting clients substitute browser's network layer with client code. Generated by the cdproto-gen command. types.go
Package-Level Type Names (total 21)
/* sort by: | */
AuthChallenge authorization challenge for HTTP status code 401 or 407. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-AuthChallenge // Origin of the challenger. // The realm of the challenge. May be empty. // The authentication scheme used, such as basic or digest // Source of the authentication challenge. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface AuthChallenge : github.com/goccy/go-json.Marshaler *AuthChallenge : github.com/goccy/go-json.Unmarshaler AuthChallenge : github.com/mailru/easyjson.Marshaler *AuthChallenge : github.com/mailru/easyjson.MarshalerUnmarshaler *AuthChallenge : github.com/mailru/easyjson.Unmarshaler AuthChallenge : encoding/json.Marshaler *AuthChallenge : encoding/json.Unmarshaler
AuthChallengeResponse response to an AuthChallenge. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-AuthChallengeResponse // The password to provide, possibly empty. Should only be set if response is ProvideCredentials. // The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box. // The username to provide, possibly empty. Should only be set if response is ProvideCredentials. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface AuthChallengeResponse : github.com/goccy/go-json.Marshaler *AuthChallengeResponse : github.com/goccy/go-json.Unmarshaler AuthChallengeResponse : github.com/mailru/easyjson.Marshaler *AuthChallengeResponse : github.com/mailru/easyjson.MarshalerUnmarshaler *AuthChallengeResponse : github.com/mailru/easyjson.Unmarshaler AuthChallengeResponse : encoding/json.Marshaler *AuthChallengeResponse : encoding/json.Unmarshaler func ContinueWithAuth(requestID RequestID, authChallengeResponse *AuthChallengeResponse) *ContinueWithAuthParams
AuthChallengeResponseResponse the decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-AuthChallengeResponse MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the AuthChallengeResponseResponse as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. AuthChallengeResponseResponse : github.com/goccy/go-json.Marshaler *AuthChallengeResponseResponse : github.com/goccy/go-json.Unmarshaler AuthChallengeResponseResponse : github.com/mailru/easyjson.Marshaler *AuthChallengeResponseResponse : github.com/mailru/easyjson.MarshalerUnmarshaler *AuthChallengeResponseResponse : github.com/mailru/easyjson.Unmarshaler AuthChallengeResponseResponse : encoding/json.Marshaler *AuthChallengeResponseResponse : encoding/json.Unmarshaler AuthChallengeResponseResponse : expvar.Var AuthChallengeResponseResponse : fmt.Stringer const AuthChallengeResponseResponseCancelAuth const AuthChallengeResponseResponseDefault const AuthChallengeResponseResponseProvideCredentials
AuthChallengeSource source of the authentication challenge. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-AuthChallenge MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the AuthChallengeSource as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. AuthChallengeSource : github.com/goccy/go-json.Marshaler *AuthChallengeSource : github.com/goccy/go-json.Unmarshaler AuthChallengeSource : github.com/mailru/easyjson.Marshaler *AuthChallengeSource : github.com/mailru/easyjson.MarshalerUnmarshaler *AuthChallengeSource : github.com/mailru/easyjson.Unmarshaler AuthChallengeSource : encoding/json.Marshaler *AuthChallengeSource : encoding/json.Unmarshaler AuthChallengeSource : expvar.Var AuthChallengeSource : fmt.Stringer const AuthChallengeSourceProxy const AuthChallengeSourceServer
ContinueRequestParams continues the request, optionally modifying some of its parameters. // If set, overrides the request headers. Note that the overrides do not extend to subsequent redirect hops, if a redirect happens. Another override may be applied to a different request produced by a redirect. // If set, overrides response interception behavior for this request. // If set, the request method is overridden. // If set, overrides the post data in the request. // An id the client received in requestPaused event. // If set, the request url will be modified in a way that's not observable by page. Do executes Fetch.continueRequest against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithHeaders if set, overrides the request headers. Note that the overrides do not extend to subsequent redirect hops, if a redirect happens. Another override may be applied to a different request produced by a redirect. WithInterceptResponse if set, overrides response interception behavior for this request. WithMethod if set, the request method is overridden. WithPostData if set, overrides the post data in the request. WithURL if set, the request url will be modified in a way that's not observable by page. *ContinueRequestParams : github.com/chromedp/chromedp.Action *ContinueRequestParams : github.com/chromedp/chromedp.CallAction *ContinueRequestParams : github.com/chromedp/chromedp.EmulateAction *ContinueRequestParams : github.com/chromedp/chromedp.EvaluateAction *ContinueRequestParams : github.com/chromedp/chromedp.KeyAction *ContinueRequestParams : github.com/chromedp/chromedp.MouseAction *ContinueRequestParams : github.com/chromedp/chromedp.NavigateAction *ContinueRequestParams : github.com/chromedp/chromedp.PollAction *ContinueRequestParams : github.com/chromedp/chromedp.QueryAction ContinueRequestParams : github.com/goccy/go-json.Marshaler *ContinueRequestParams : github.com/goccy/go-json.Unmarshaler ContinueRequestParams : github.com/mailru/easyjson.Marshaler *ContinueRequestParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ContinueRequestParams : github.com/mailru/easyjson.Unmarshaler ContinueRequestParams : encoding/json.Marshaler *ContinueRequestParams : encoding/json.Unmarshaler func ContinueRequest(requestID RequestID) *ContinueRequestParams func ContinueRequestParams.WithHeaders(headers []*HeaderEntry) *ContinueRequestParams func ContinueRequestParams.WithInterceptResponse(interceptResponse bool) *ContinueRequestParams func ContinueRequestParams.WithMethod(method string) *ContinueRequestParams func ContinueRequestParams.WithPostData(postData string) *ContinueRequestParams func ContinueRequestParams.WithURL(url string) *ContinueRequestParams
ContinueResponseParams continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present. // Alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. // An id the client received in requestPaused event. // An HTTP response code. If absent, original response code will be used. // Response headers. If absent, original response headers will be used. // A textual representation of responseCode. If absent, a standard phrase matching responseCode is used. Do executes Fetch.continueResponse against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBinaryResponseHeaders alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. WithResponseCode an HTTP response code. If absent, original response code will be used. WithResponseHeaders response headers. If absent, original response headers will be used. WithResponsePhrase a textual representation of responseCode. If absent, a standard phrase matching responseCode is used. *ContinueResponseParams : github.com/chromedp/chromedp.Action *ContinueResponseParams : github.com/chromedp/chromedp.CallAction *ContinueResponseParams : github.com/chromedp/chromedp.EmulateAction *ContinueResponseParams : github.com/chromedp/chromedp.EvaluateAction *ContinueResponseParams : github.com/chromedp/chromedp.KeyAction *ContinueResponseParams : github.com/chromedp/chromedp.MouseAction *ContinueResponseParams : github.com/chromedp/chromedp.NavigateAction *ContinueResponseParams : github.com/chromedp/chromedp.PollAction *ContinueResponseParams : github.com/chromedp/chromedp.QueryAction ContinueResponseParams : github.com/goccy/go-json.Marshaler *ContinueResponseParams : github.com/goccy/go-json.Unmarshaler ContinueResponseParams : github.com/mailru/easyjson.Marshaler *ContinueResponseParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ContinueResponseParams : github.com/mailru/easyjson.Unmarshaler ContinueResponseParams : encoding/json.Marshaler *ContinueResponseParams : encoding/json.Unmarshaler func ContinueResponse(requestID RequestID) *ContinueResponseParams func ContinueResponseParams.WithBinaryResponseHeaders(binaryResponseHeaders string) *ContinueResponseParams func ContinueResponseParams.WithResponseCode(responseCode int64) *ContinueResponseParams func ContinueResponseParams.WithResponseHeaders(responseHeaders []*HeaderEntry) *ContinueResponseParams func ContinueResponseParams.WithResponsePhrase(responsePhrase string) *ContinueResponseParams
ContinueWithAuthParams continues a request supplying authChallengeResponse following authRequired event. // Response to with an authChallenge. // An id the client received in authRequired event. Do executes Fetch.continueWithAuth against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *ContinueWithAuthParams : github.com/chromedp/chromedp.Action *ContinueWithAuthParams : github.com/chromedp/chromedp.CallAction *ContinueWithAuthParams : github.com/chromedp/chromedp.EmulateAction *ContinueWithAuthParams : github.com/chromedp/chromedp.EvaluateAction *ContinueWithAuthParams : github.com/chromedp/chromedp.KeyAction *ContinueWithAuthParams : github.com/chromedp/chromedp.MouseAction *ContinueWithAuthParams : github.com/chromedp/chromedp.NavigateAction *ContinueWithAuthParams : github.com/chromedp/chromedp.PollAction *ContinueWithAuthParams : github.com/chromedp/chromedp.QueryAction ContinueWithAuthParams : github.com/goccy/go-json.Marshaler *ContinueWithAuthParams : github.com/goccy/go-json.Unmarshaler ContinueWithAuthParams : github.com/mailru/easyjson.Marshaler *ContinueWithAuthParams : github.com/mailru/easyjson.MarshalerUnmarshaler *ContinueWithAuthParams : github.com/mailru/easyjson.Unmarshaler ContinueWithAuthParams : encoding/json.Marshaler *ContinueWithAuthParams : encoding/json.Unmarshaler func ContinueWithAuth(requestID RequestID, authChallengeResponse *AuthChallengeResponse) *ContinueWithAuthParams
DisableParams disables the fetch domain. Do executes Fetch.disable against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *DisableParams : github.com/chromedp/chromedp.Action *DisableParams : github.com/chromedp/chromedp.CallAction *DisableParams : github.com/chromedp/chromedp.EmulateAction *DisableParams : github.com/chromedp/chromedp.EvaluateAction *DisableParams : github.com/chromedp/chromedp.KeyAction *DisableParams : github.com/chromedp/chromedp.MouseAction *DisableParams : github.com/chromedp/chromedp.NavigateAction *DisableParams : github.com/chromedp/chromedp.PollAction *DisableParams : github.com/chromedp/chromedp.QueryAction DisableParams : github.com/goccy/go-json.Marshaler *DisableParams : github.com/goccy/go-json.Unmarshaler DisableParams : github.com/mailru/easyjson.Marshaler *DisableParams : github.com/mailru/easyjson.MarshalerUnmarshaler *DisableParams : github.com/mailru/easyjson.Unmarshaler DisableParams : encoding/json.Marshaler *DisableParams : encoding/json.Unmarshaler func Disable() *DisableParams
EnableParams enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth. // If true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth. // If specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected. Do executes Fetch.enable against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithHandleAuthRequests if true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth. WithPatterns if specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected. *EnableParams : github.com/chromedp/chromedp.Action *EnableParams : github.com/chromedp/chromedp.CallAction *EnableParams : github.com/chromedp/chromedp.EmulateAction *EnableParams : github.com/chromedp/chromedp.EvaluateAction *EnableParams : github.com/chromedp/chromedp.KeyAction *EnableParams : github.com/chromedp/chromedp.MouseAction *EnableParams : github.com/chromedp/chromedp.NavigateAction *EnableParams : github.com/chromedp/chromedp.PollAction *EnableParams : github.com/chromedp/chromedp.QueryAction EnableParams : github.com/goccy/go-json.Marshaler *EnableParams : github.com/goccy/go-json.Unmarshaler EnableParams : github.com/mailru/easyjson.Marshaler *EnableParams : github.com/mailru/easyjson.MarshalerUnmarshaler *EnableParams : github.com/mailru/easyjson.Unmarshaler EnableParams : encoding/json.Marshaler *EnableParams : encoding/json.Unmarshaler func Enable() *EnableParams func EnableParams.WithHandleAuthRequests(handleAuthRequests bool) *EnableParams func EnableParams.WithPatterns(patterns []*RequestPattern) *EnableParams
EventAuthRequired issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#event-authRequired // Details of the Authorization Challenge encountered. If this is set, client should respond with continueRequest that contains AuthChallengeResponse. // The id of the frame that initiated the request. // The details of the request. // Each request the page makes will have a unique id. // How the requested resource will be used. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventAuthRequired : github.com/goccy/go-json.Marshaler *EventAuthRequired : github.com/goccy/go-json.Unmarshaler EventAuthRequired : github.com/mailru/easyjson.Marshaler *EventAuthRequired : github.com/mailru/easyjson.MarshalerUnmarshaler *EventAuthRequired : github.com/mailru/easyjson.Unmarshaler EventAuthRequired : encoding/json.Marshaler *EventAuthRequired : encoding/json.Unmarshaler
EventRequestPaused issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with presence of the location header. Requests resulting from a redirect will have redirectedRequestId field set. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#event-requestPaused // The id of the frame that initiated the request. // If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event. // If the request is due to a redirect response from the server, the id of the request that has caused the redirect. // The details of the request. // Each request the page makes will have a unique id. // How the requested resource will be used. // Response error if intercepted at response stage. // Response headers if intercepted at the response stage. // Response code if intercepted at response stage. // Response status text if intercepted at response stage. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface EventRequestPaused : github.com/goccy/go-json.Marshaler *EventRequestPaused : github.com/goccy/go-json.Unmarshaler EventRequestPaused : github.com/mailru/easyjson.Marshaler *EventRequestPaused : github.com/mailru/easyjson.MarshalerUnmarshaler *EventRequestPaused : github.com/mailru/easyjson.Unmarshaler EventRequestPaused : encoding/json.Marshaler *EventRequestPaused : encoding/json.Unmarshaler
FailRequestParams causes the request to fail with specified reason. // Causes the request to fail with the given reason. // An id the client received in requestPaused event. Do executes Fetch.failRequest against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface *FailRequestParams : github.com/chromedp/chromedp.Action *FailRequestParams : github.com/chromedp/chromedp.CallAction *FailRequestParams : github.com/chromedp/chromedp.EmulateAction *FailRequestParams : github.com/chromedp/chromedp.EvaluateAction *FailRequestParams : github.com/chromedp/chromedp.KeyAction *FailRequestParams : github.com/chromedp/chromedp.MouseAction *FailRequestParams : github.com/chromedp/chromedp.NavigateAction *FailRequestParams : github.com/chromedp/chromedp.PollAction *FailRequestParams : github.com/chromedp/chromedp.QueryAction FailRequestParams : github.com/goccy/go-json.Marshaler *FailRequestParams : github.com/goccy/go-json.Unmarshaler FailRequestParams : github.com/mailru/easyjson.Marshaler *FailRequestParams : github.com/mailru/easyjson.MarshalerUnmarshaler *FailRequestParams : github.com/mailru/easyjson.Unmarshaler FailRequestParams : encoding/json.Marshaler *FailRequestParams : encoding/json.Unmarshaler func FailRequest(requestID RequestID, errorReason network.ErrorReason) *FailRequestParams
FulfillRequestParams provides response to the request. // Alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. // A response body. If absent, original response body will be used if the request is intercepted at the response stage and empty body will be used if the request is intercepted at the request stage. // An id the client received in requestPaused event. // An HTTP response code. // Response headers. // A textual representation of responseCode. If absent, a standard phrase matching responseCode is used. Do executes Fetch.fulfillRequest against the provided context. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface WithBinaryResponseHeaders alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can't be transmitted over the protocol as text. WithBody a response body. If absent, original response body will be used if the request is intercepted at the response stage and empty body will be used if the request is intercepted at the request stage. WithResponseHeaders response headers. WithResponsePhrase a textual representation of responseCode. If absent, a standard phrase matching responseCode is used. *FulfillRequestParams : github.com/chromedp/chromedp.Action *FulfillRequestParams : github.com/chromedp/chromedp.CallAction *FulfillRequestParams : github.com/chromedp/chromedp.EmulateAction *FulfillRequestParams : github.com/chromedp/chromedp.EvaluateAction *FulfillRequestParams : github.com/chromedp/chromedp.KeyAction *FulfillRequestParams : github.com/chromedp/chromedp.MouseAction *FulfillRequestParams : github.com/chromedp/chromedp.NavigateAction *FulfillRequestParams : github.com/chromedp/chromedp.PollAction *FulfillRequestParams : github.com/chromedp/chromedp.QueryAction FulfillRequestParams : github.com/goccy/go-json.Marshaler *FulfillRequestParams : github.com/goccy/go-json.Unmarshaler FulfillRequestParams : github.com/mailru/easyjson.Marshaler *FulfillRequestParams : github.com/mailru/easyjson.MarshalerUnmarshaler *FulfillRequestParams : github.com/mailru/easyjson.Unmarshaler FulfillRequestParams : encoding/json.Marshaler *FulfillRequestParams : encoding/json.Unmarshaler func FulfillRequest(requestID RequestID, responseCode int64) *FulfillRequestParams func FulfillRequestParams.WithBinaryResponseHeaders(binaryResponseHeaders string) *FulfillRequestParams func FulfillRequestParams.WithBody(body string) *FulfillRequestParams func FulfillRequestParams.WithResponseHeaders(responseHeaders []*HeaderEntry) *FulfillRequestParams func FulfillRequestParams.WithResponsePhrase(responsePhrase string) *FulfillRequestParams
GetResponseBodyParams causes the body of the response to be received from the server and returned as a single string. May only be issued for a request that is paused in the Response stage and is mutually exclusive with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior. Note that the response body is not available for redirects. Requests paused in the _redirect received_ state may be differentiated by responseCode and presence of location response header, see comments to requestPaused for details. // Identifier for the intercepted request to get body for. Do executes Fetch.getResponseBody against the provided context. returns: body - Response body. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetResponseBodyParams : github.com/goccy/go-json.Marshaler *GetResponseBodyParams : github.com/goccy/go-json.Unmarshaler GetResponseBodyParams : github.com/mailru/easyjson.Marshaler *GetResponseBodyParams : github.com/mailru/easyjson.MarshalerUnmarshaler *GetResponseBodyParams : github.com/mailru/easyjson.Unmarshaler GetResponseBodyParams : encoding/json.Marshaler *GetResponseBodyParams : encoding/json.Unmarshaler func GetResponseBody(requestID RequestID) *GetResponseBodyParams
GetResponseBodyReturns return values. // True, if content was sent as base64. // Response body. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface GetResponseBodyReturns : github.com/goccy/go-json.Marshaler *GetResponseBodyReturns : github.com/goccy/go-json.Unmarshaler GetResponseBodyReturns : github.com/mailru/easyjson.Marshaler *GetResponseBodyReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *GetResponseBodyReturns : github.com/mailru/easyjson.Unmarshaler GetResponseBodyReturns : encoding/json.Marshaler *GetResponseBodyReturns : encoding/json.Unmarshaler
HeaderEntry response HTTP header entry. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-HeaderEntry // address field name, for example GIVEN_NAME. // address field value, for example Jon Doe. MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface HeaderEntry : github.com/goccy/go-json.Marshaler *HeaderEntry : github.com/goccy/go-json.Unmarshaler HeaderEntry : github.com/mailru/easyjson.Marshaler *HeaderEntry : github.com/mailru/easyjson.MarshalerUnmarshaler *HeaderEntry : github.com/mailru/easyjson.Unmarshaler HeaderEntry : encoding/json.Marshaler *HeaderEntry : encoding/json.Unmarshaler func ContinueRequestParams.WithHeaders(headers []*HeaderEntry) *ContinueRequestParams func ContinueResponseParams.WithResponseHeaders(responseHeaders []*HeaderEntry) *ContinueResponseParams func FulfillRequestParams.WithResponseHeaders(responseHeaders []*HeaderEntry) *FulfillRequestParams
RequestID unique request identifier. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-RequestId String returns the RequestID as string value. RequestID : expvar.Var RequestID : fmt.Stringer func ContinueRequest(requestID RequestID) *ContinueRequestParams func ContinueResponse(requestID RequestID) *ContinueResponseParams func ContinueWithAuth(requestID RequestID, authChallengeResponse *AuthChallengeResponse) *ContinueWithAuthParams func FailRequest(requestID RequestID, errorReason network.ErrorReason) *FailRequestParams func FulfillRequest(requestID RequestID, responseCode int64) *FulfillRequestParams func GetResponseBody(requestID RequestID) *GetResponseBodyParams func TakeResponseBodyAsStream(requestID RequestID) *TakeResponseBodyAsStreamParams
RequestPattern [no description]. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-RequestPattern // Stage at which to begin intercepting requests. Default is Request. // If set, only requests for matching resource types will be intercepted. // Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*". MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface RequestPattern : github.com/goccy/go-json.Marshaler *RequestPattern : github.com/goccy/go-json.Unmarshaler RequestPattern : github.com/mailru/easyjson.Marshaler *RequestPattern : github.com/mailru/easyjson.MarshalerUnmarshaler *RequestPattern : github.com/mailru/easyjson.Unmarshaler RequestPattern : encoding/json.Marshaler *RequestPattern : encoding/json.Unmarshaler func EnableParams.WithPatterns(patterns []*RequestPattern) *EnableParams
RequestStage stages of the request to handle. Request will intercept before the request is sent. Response will intercept after the response is received (but before response body is received). See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#type-RequestStage MarshalEasyJSON satisfies easyjson.Marshaler. MarshalJSON satisfies json.Marshaler. String returns the RequestStage as string value. UnmarshalEasyJSON satisfies easyjson.Unmarshaler. UnmarshalJSON satisfies json.Unmarshaler. RequestStage : github.com/goccy/go-json.Marshaler *RequestStage : github.com/goccy/go-json.Unmarshaler RequestStage : github.com/mailru/easyjson.Marshaler *RequestStage : github.com/mailru/easyjson.MarshalerUnmarshaler *RequestStage : github.com/mailru/easyjson.Unmarshaler RequestStage : encoding/json.Marshaler *RequestStage : encoding/json.Unmarshaler RequestStage : expvar.Var RequestStage : fmt.Stringer const RequestStageRequest const RequestStageResponse
TakeResponseBodyAsStreamParams returns a handle to the stream representing the response body. The request must be paused in the HeadersReceived stage. Note that after this command the request can't be continued as is -- client either needs to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. This method is mutually exclusive with getResponseBody. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior. // Identifier for the intercepted request to get body for. Do executes Fetch.takeResponseBodyAsStream against the provided context. returns: stream MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface TakeResponseBodyAsStreamParams : github.com/goccy/go-json.Marshaler *TakeResponseBodyAsStreamParams : github.com/goccy/go-json.Unmarshaler TakeResponseBodyAsStreamParams : github.com/mailru/easyjson.Marshaler *TakeResponseBodyAsStreamParams : github.com/mailru/easyjson.MarshalerUnmarshaler *TakeResponseBodyAsStreamParams : github.com/mailru/easyjson.Unmarshaler TakeResponseBodyAsStreamParams : encoding/json.Marshaler *TakeResponseBodyAsStreamParams : encoding/json.Unmarshaler func TakeResponseBodyAsStream(requestID RequestID) *TakeResponseBodyAsStreamParams
TakeResponseBodyAsStreamReturns return values. Stream io.StreamHandle MarshalEasyJSON supports easyjson.Marshaler interface MarshalJSON supports json.Marshaler interface UnmarshalEasyJSON supports easyjson.Unmarshaler interface UnmarshalJSON supports json.Unmarshaler interface TakeResponseBodyAsStreamReturns : github.com/goccy/go-json.Marshaler *TakeResponseBodyAsStreamReturns : github.com/goccy/go-json.Unmarshaler TakeResponseBodyAsStreamReturns : github.com/mailru/easyjson.Marshaler *TakeResponseBodyAsStreamReturns : github.com/mailru/easyjson.MarshalerUnmarshaler *TakeResponseBodyAsStreamReturns : github.com/mailru/easyjson.Unmarshaler TakeResponseBodyAsStreamReturns : encoding/json.Marshaler *TakeResponseBodyAsStreamReturns : encoding/json.Unmarshaler
Package-Level Functions (total 9)
ContinueRequest continues the request, optionally modifying some of its parameters. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-continueRequest parameters: requestID - An id the client received in requestPaused event.
ContinueResponse continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-continueResponse parameters: requestID - An id the client received in requestPaused event.
ContinueWithAuth continues a request supplying authChallengeResponse following authRequired event. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-continueWithAuth parameters: requestID - An id the client received in authRequired event. authChallengeResponse - Response to with an authChallenge.
Enable enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-enable parameters:
FailRequest causes the request to fail with specified reason. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-failRequest parameters: requestID - An id the client received in requestPaused event. errorReason - Causes the request to fail with the given reason.
FulfillRequest provides response to the request. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-fulfillRequest parameters: requestID - An id the client received in requestPaused event. responseCode - An HTTP response code.
GetResponseBody causes the body of the response to be received from the server and returned as a single string. May only be issued for a request that is paused in the Response stage and is mutually exclusive with takeResponseBodyForInterceptionAsStream. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior. Note that the response body is not available for redirects. Requests paused in the _redirect received_ state may be differentiated by responseCode and presence of location response header, see comments to requestPaused for details. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-getResponseBody parameters: requestID - Identifier for the intercepted request to get body for.
TakeResponseBodyAsStream returns a handle to the stream representing the response body. The request must be paused in the HeadersReceived stage. Note that after this command the request can't be continued as is -- client either needs to cancel it or to provide the response body. The stream only supports sequential read, IO.read will fail if the position is specified. This method is mutually exclusive with getResponseBody. Calling other methods that affect the request or disabling fetch domain before body is received results in an undefined behavior. See: https://chromedevtools.github.io/devtools-protocol/tot/Fetch#method-takeResponseBodyAsStream parameters: requestID
Package-Level Constants (total 16)
AuthChallengeResponseResponse values.
AuthChallengeResponseResponse values.
AuthChallengeResponseResponse values.
AuthChallengeSource values.
AuthChallengeSource values.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
RequestStage values.
RequestStage values.