cdp-0.0.2.0: A library for the Chrome Devtools Protocol
Safe HaskellNone
LanguageHaskell2010

CDP.Domains.Fetch

Description

Fetch

A domain for letting clients substitute browser's network layer with client code.

Synopsis

Documentation

data PFetchTakeResponseBodyAsStream Source #

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.

Parameters of the takeResponseBodyAsStream command.

data PFetchGetResponseBody Source #

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.

Parameters of the getResponseBody command.

Constructors

PFetchGetResponseBody 

Fields

data PFetchContinueResponse Source #

Continues loading of the paused response, optionally modifying the response headers. If either responseCode or headers are modified, all of them must be present.

Parameters of the continueResponse command.

Constructors

PFetchContinueResponse 

Fields

data PFetchContinueWithAuth Source #

Continues a request supplying authChallengeResponse following authRequired event.

Parameters of the continueWithAuth command.

Constructors

PFetchContinueWithAuth 

Fields

data PFetchContinueRequest Source #

Continues the request, optionally modifying some of its parameters.

Parameters of the continueRequest command.

Constructors

PFetchContinueRequest 

Fields

data PFetchFulfillRequest Source #

Provides response to the request.

Parameters of the fulfillRequest command.

Constructors

PFetchFulfillRequest 

Fields

data PFetchFailRequest Source #

Causes the request to fail with specified reason.

Parameters of the failRequest command.

Constructors

PFetchFailRequest 

Fields

data PFetchEnable Source #

Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.

Parameters of the enable command.

Constructors

PFetchEnable 

Fields

data FetchAuthRequired Source #

Type of the authRequired event.

Constructors

FetchAuthRequired 

Fields

data FetchRequestPaused Source #

Type of the requestPaused event.

Constructors

FetchRequestPaused 

Fields

data FetchAuthChallengeResponse Source #

Constructors

FetchAuthChallengeResponse 

Fields

data FetchAuthChallengeResponseResponse Source #

Type AuthChallengeResponse. Response to an AuthChallenge.

Instances

Instances details
Eq FetchAuthChallengeResponseResponse Source # 
Instance details

Defined in CDP.Domains.Fetch

Ord FetchAuthChallengeResponseResponse Source # 
Instance details

Defined in CDP.Domains.Fetch

Read FetchAuthChallengeResponseResponse Source # 
Instance details

Defined in CDP.Domains.Fetch

Show FetchAuthChallengeResponseResponse Source # 
Instance details

Defined in CDP.Domains.Fetch

ToJSON FetchAuthChallengeResponseResponse Source # 
Instance details

Defined in CDP.Domains.Fetch

FromJSON FetchAuthChallengeResponseResponse Source # 
Instance details

Defined in CDP.Domains.Fetch

data FetchAuthChallengeSource Source #

Type AuthChallenge. Authorization challenge for HTTP status code 401 or 407.

Instances

Instances details
Eq FetchAuthChallengeSource Source # 
Instance details

Defined in CDP.Domains.Fetch

Ord FetchAuthChallengeSource Source # 
Instance details

Defined in CDP.Domains.Fetch

Read FetchAuthChallengeSource Source # 
Instance details

Defined in CDP.Domains.Fetch

Show FetchAuthChallengeSource Source # 
Instance details

Defined in CDP.Domains.Fetch

ToJSON FetchAuthChallengeSource Source # 
Instance details

Defined in CDP.Domains.Fetch

FromJSON FetchAuthChallengeSource Source # 
Instance details

Defined in CDP.Domains.Fetch

data FetchRequestPattern Source #

Constructors

FetchRequestPattern 

Fields

data FetchRequestStage Source #

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

Instances

Instances details
Eq FetchRequestStage Source # 
Instance details

Defined in CDP.Domains.Fetch

Ord FetchRequestStage Source # 
Instance details

Defined in CDP.Domains.Fetch

Read FetchRequestStage Source # 
Instance details

Defined in CDP.Domains.Fetch

Show FetchRequestStage Source # 
Instance details

Defined in CDP.Domains.Fetch

ToJSON FetchRequestStage Source # 
Instance details

Defined in CDP.Domains.Fetch

FromJSON FetchRequestStage Source # 
Instance details

Defined in CDP.Domains.Fetch

type FetchRequestId = Text Source #

Type RequestId. Unique request identifier.