Safe Haskell | None |
---|---|
Language | Haskell2010 |
Fetch
A domain for letting clients substitute browser's network layer with client code.
Synopsis
- data FetchTakeResponseBodyAsStream = FetchTakeResponseBodyAsStream {}
- data PFetchTakeResponseBodyAsStream = PFetchTakeResponseBodyAsStream {}
- data FetchGetResponseBody = FetchGetResponseBody {}
- data PFetchGetResponseBody = PFetchGetResponseBody {}
- data PFetchContinueResponse = PFetchContinueResponse {}
- data PFetchContinueWithAuth = PFetchContinueWithAuth {}
- data PFetchContinueRequest = PFetchContinueRequest {}
- data PFetchFulfillRequest = PFetchFulfillRequest {}
- data PFetchFailRequest = PFetchFailRequest {}
- data PFetchEnable = PFetchEnable {}
- data PFetchDisable = PFetchDisable
- data FetchAuthRequired = FetchAuthRequired {}
- data FetchRequestPaused = FetchRequestPaused {
- fetchRequestPausedRequestId :: FetchRequestId
- fetchRequestPausedRequest :: NetworkRequest
- fetchRequestPausedFrameId :: PageFrameId
- fetchRequestPausedResourceType :: NetworkResourceType
- fetchRequestPausedResponseErrorReason :: Maybe NetworkErrorReason
- fetchRequestPausedResponseStatusCode :: Maybe Int
- fetchRequestPausedResponseStatusText :: Maybe Text
- fetchRequestPausedResponseHeaders :: Maybe [FetchHeaderEntry]
- fetchRequestPausedNetworkId :: Maybe NetworkRequestId
- fetchRequestPausedRedirectedRequestId :: Maybe FetchRequestId
- data FetchAuthChallengeResponse = FetchAuthChallengeResponse {}
- data FetchAuthChallengeResponseResponse
- data FetchAuthChallenge = FetchAuthChallenge {}
- data FetchAuthChallengeSource
- data FetchHeaderEntry = FetchHeaderEntry {}
- data FetchRequestPattern = FetchRequestPattern {}
- data FetchRequestStage
- type FetchRequestId = Text
- pFetchDisable :: PFetchDisable
- pFetchEnable :: PFetchEnable
- pFetchFailRequest :: FetchRequestId -> NetworkErrorReason -> PFetchFailRequest
- pFetchFulfillRequest :: FetchRequestId -> Int -> PFetchFulfillRequest
- pFetchContinueRequest :: FetchRequestId -> PFetchContinueRequest
- pFetchContinueWithAuth :: FetchRequestId -> FetchAuthChallengeResponse -> PFetchContinueWithAuth
- pFetchContinueResponse :: FetchRequestId -> PFetchContinueResponse
- pFetchGetResponseBody :: FetchRequestId -> PFetchGetResponseBody
- pFetchTakeResponseBodyAsStream :: FetchRequestId -> PFetchTakeResponseBodyAsStream
Documentation
data FetchTakeResponseBodyAsStream Source #
Instances
Eq FetchTakeResponseBodyAsStream Source # | |
Defined in CDP.Domains.Fetch | |
Show FetchTakeResponseBodyAsStream Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchTakeResponseBodyAsStream -> ShowS # show :: FetchTakeResponseBodyAsStream -> String # showList :: [FetchTakeResponseBodyAsStream] -> ShowS # | |
FromJSON FetchTakeResponseBodyAsStream Source # | |
Defined in CDP.Domains.Fetch |
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.
Instances
data FetchGetResponseBody Source #
FetchGetResponseBody | |
|
Instances
Eq FetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch (==) :: FetchGetResponseBody -> FetchGetResponseBody -> Bool # (/=) :: FetchGetResponseBody -> FetchGetResponseBody -> Bool # | |
Show FetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchGetResponseBody -> ShowS # show :: FetchGetResponseBody -> String # showList :: [FetchGetResponseBody] -> ShowS # | |
FromJSON FetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch parseJSON :: Value -> Parser FetchGetResponseBody # parseJSONList :: Value -> Parser [FetchGetResponseBody] # |
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.
PFetchGetResponseBody | |
|
Instances
Eq PFetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch (==) :: PFetchGetResponseBody -> PFetchGetResponseBody -> Bool # (/=) :: PFetchGetResponseBody -> PFetchGetResponseBody -> Bool # | |
Show PFetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchGetResponseBody -> ShowS # show :: PFetchGetResponseBody -> String # showList :: [PFetchGetResponseBody] -> ShowS # | |
ToJSON PFetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchGetResponseBody -> Value # toEncoding :: PFetchGetResponseBody -> Encoding # toJSONList :: [PFetchGetResponseBody] -> Value # toEncodingList :: [PFetchGetResponseBody] -> Encoding # | |
Command PFetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch | |
type CommandResponse PFetchGetResponseBody Source # | |
Defined in CDP.Domains.Fetch |
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.
PFetchContinueResponse | |
|
Instances
Eq PFetchContinueResponse Source # | |
Defined in CDP.Domains.Fetch | |
Show PFetchContinueResponse Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchContinueResponse -> ShowS # show :: PFetchContinueResponse -> String # showList :: [PFetchContinueResponse] -> ShowS # | |
ToJSON PFetchContinueResponse Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchContinueResponse -> Value # toEncoding :: PFetchContinueResponse -> Encoding # toJSONList :: [PFetchContinueResponse] -> Value # | |
Command PFetchContinueResponse Source # | |
Defined in CDP.Domains.Fetch | |
type CommandResponse PFetchContinueResponse Source # | |
Defined in CDP.Domains.Fetch |
data PFetchContinueWithAuth Source #
Continues a request supplying authChallengeResponse following authRequired event.
Parameters of the continueWithAuth
command.
PFetchContinueWithAuth | |
|
Instances
Eq PFetchContinueWithAuth Source # | |
Defined in CDP.Domains.Fetch | |
Show PFetchContinueWithAuth Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchContinueWithAuth -> ShowS # show :: PFetchContinueWithAuth -> String # showList :: [PFetchContinueWithAuth] -> ShowS # | |
ToJSON PFetchContinueWithAuth Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchContinueWithAuth -> Value # toEncoding :: PFetchContinueWithAuth -> Encoding # toJSONList :: [PFetchContinueWithAuth] -> Value # | |
Command PFetchContinueWithAuth Source # | |
Defined in CDP.Domains.Fetch | |
type CommandResponse PFetchContinueWithAuth Source # | |
Defined in CDP.Domains.Fetch |
data PFetchContinueRequest Source #
Continues the request, optionally modifying some of its parameters.
Parameters of the continueRequest
command.
PFetchContinueRequest | |
|
Instances
Eq PFetchContinueRequest Source # | |
Defined in CDP.Domains.Fetch (==) :: PFetchContinueRequest -> PFetchContinueRequest -> Bool # (/=) :: PFetchContinueRequest -> PFetchContinueRequest -> Bool # | |
Show PFetchContinueRequest Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchContinueRequest -> ShowS # show :: PFetchContinueRequest -> String # showList :: [PFetchContinueRequest] -> ShowS # | |
ToJSON PFetchContinueRequest Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchContinueRequest -> Value # toEncoding :: PFetchContinueRequest -> Encoding # toJSONList :: [PFetchContinueRequest] -> Value # toEncodingList :: [PFetchContinueRequest] -> Encoding # | |
Command PFetchContinueRequest Source # | |
Defined in CDP.Domains.Fetch | |
type CommandResponse PFetchContinueRequest Source # | |
Defined in CDP.Domains.Fetch |
data PFetchFulfillRequest Source #
Provides response to the request.
Parameters of the fulfillRequest
command.
PFetchFulfillRequest | |
|
Instances
Eq PFetchFulfillRequest Source # | |
Defined in CDP.Domains.Fetch (==) :: PFetchFulfillRequest -> PFetchFulfillRequest -> Bool # (/=) :: PFetchFulfillRequest -> PFetchFulfillRequest -> Bool # | |
Show PFetchFulfillRequest Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchFulfillRequest -> ShowS # show :: PFetchFulfillRequest -> String # showList :: [PFetchFulfillRequest] -> ShowS # | |
ToJSON PFetchFulfillRequest Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchFulfillRequest -> Value # toEncoding :: PFetchFulfillRequest -> Encoding # toJSONList :: [PFetchFulfillRequest] -> Value # toEncodingList :: [PFetchFulfillRequest] -> Encoding # | |
Command PFetchFulfillRequest Source # | |
Defined in CDP.Domains.Fetch | |
type CommandResponse PFetchFulfillRequest Source # | |
Defined in CDP.Domains.Fetch |
data PFetchFailRequest Source #
Causes the request to fail with specified reason.
Parameters of the failRequest
command.
PFetchFailRequest | |
|
Instances
Eq PFetchFailRequest Source # | |
Defined in CDP.Domains.Fetch (==) :: PFetchFailRequest -> PFetchFailRequest -> Bool # (/=) :: PFetchFailRequest -> PFetchFailRequest -> Bool # | |
Show PFetchFailRequest Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchFailRequest -> ShowS # show :: PFetchFailRequest -> String # showList :: [PFetchFailRequest] -> ShowS # | |
ToJSON PFetchFailRequest Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchFailRequest -> Value # toEncoding :: PFetchFailRequest -> Encoding # toJSONList :: [PFetchFailRequest] -> Value # toEncodingList :: [PFetchFailRequest] -> Encoding # | |
Command PFetchFailRequest Source # | |
Defined in CDP.Domains.Fetch | |
type CommandResponse PFetchFailRequest Source # | |
Defined in CDP.Domains.Fetch |
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.
PFetchEnable | |
|
Instances
Eq PFetchEnable Source # | |
Defined in CDP.Domains.Fetch (==) :: PFetchEnable -> PFetchEnable -> Bool # (/=) :: PFetchEnable -> PFetchEnable -> Bool # | |
Show PFetchEnable Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchEnable -> ShowS # show :: PFetchEnable -> String # showList :: [PFetchEnable] -> ShowS # | |
ToJSON PFetchEnable Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchEnable -> Value # toEncoding :: PFetchEnable -> Encoding # toJSONList :: [PFetchEnable] -> Value # toEncodingList :: [PFetchEnable] -> Encoding # | |
Command PFetchEnable Source # | |
Defined in CDP.Domains.Fetch commandName :: Proxy PFetchEnable -> String Source # fromJSON :: Proxy PFetchEnable -> Value -> Result (CommandResponse PFetchEnable) Source # | |
type CommandResponse PFetchEnable Source # | |
Defined in CDP.Domains.Fetch |
data PFetchDisable Source #
Disables the fetch domain.
Parameters of the disable
command.
Instances
Eq PFetchDisable Source # | |
Defined in CDP.Domains.Fetch (==) :: PFetchDisable -> PFetchDisable -> Bool # (/=) :: PFetchDisable -> PFetchDisable -> Bool # | |
Show PFetchDisable Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> PFetchDisable -> ShowS # show :: PFetchDisable -> String # showList :: [PFetchDisable] -> ShowS # | |
ToJSON PFetchDisable Source # | |
Defined in CDP.Domains.Fetch toJSON :: PFetchDisable -> Value # toEncoding :: PFetchDisable -> Encoding # toJSONList :: [PFetchDisable] -> Value # toEncodingList :: [PFetchDisable] -> Encoding # | |
Command PFetchDisable Source # | |
Defined in CDP.Domains.Fetch commandName :: Proxy PFetchDisable -> String Source # fromJSON :: Proxy PFetchDisable -> Value -> Result (CommandResponse PFetchDisable) Source # | |
type CommandResponse PFetchDisable Source # | |
Defined in CDP.Domains.Fetch |
data FetchAuthRequired Source #
Type of the authRequired
event.
FetchAuthRequired | |
|
Instances
Eq FetchAuthRequired Source # | |
Defined in CDP.Domains.Fetch (==) :: FetchAuthRequired -> FetchAuthRequired -> Bool # (/=) :: FetchAuthRequired -> FetchAuthRequired -> Bool # | |
Show FetchAuthRequired Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchAuthRequired -> ShowS # show :: FetchAuthRequired -> String # showList :: [FetchAuthRequired] -> ShowS # | |
FromJSON FetchAuthRequired Source # | |
Defined in CDP.Domains.Fetch parseJSON :: Value -> Parser FetchAuthRequired # parseJSONList :: Value -> Parser [FetchAuthRequired] # | |
Event FetchAuthRequired Source # | |
Defined in CDP.Domains.Fetch |
data FetchRequestPaused Source #
Type of the requestPaused
event.
FetchRequestPaused | |
|
Instances
Eq FetchRequestPaused Source # | |
Defined in CDP.Domains.Fetch (==) :: FetchRequestPaused -> FetchRequestPaused -> Bool # (/=) :: FetchRequestPaused -> FetchRequestPaused -> Bool # | |
Show FetchRequestPaused Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchRequestPaused -> ShowS # show :: FetchRequestPaused -> String # showList :: [FetchRequestPaused] -> ShowS # | |
FromJSON FetchRequestPaused Source # | |
Defined in CDP.Domains.Fetch parseJSON :: Value -> Parser FetchRequestPaused # parseJSONList :: Value -> Parser [FetchRequestPaused] # | |
Event FetchRequestPaused Source # | |
Defined in CDP.Domains.Fetch |
data FetchAuthChallengeResponse Source #
FetchAuthChallengeResponse | |
|
Instances
Eq FetchAuthChallengeResponse Source # | |
Defined in CDP.Domains.Fetch | |
Show FetchAuthChallengeResponse Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchAuthChallengeResponse -> ShowS # show :: FetchAuthChallengeResponse -> String # showList :: [FetchAuthChallengeResponse] -> ShowS # | |
ToJSON FetchAuthChallengeResponse Source # | |
Defined in CDP.Domains.Fetch | |
FromJSON FetchAuthChallengeResponse Source # | |
Defined in CDP.Domains.Fetch |
data FetchAuthChallengeResponseResponse Source #
Type AuthChallengeResponse
.
Response to an AuthChallenge.
FetchAuthChallengeResponseResponseDefault | |
FetchAuthChallengeResponseResponseCancelAuth | |
FetchAuthChallengeResponseResponseProvideCredentials |
Instances
data FetchAuthChallenge Source #
FetchAuthChallenge | |
|
Instances
Eq FetchAuthChallenge Source # | |
Defined in CDP.Domains.Fetch (==) :: FetchAuthChallenge -> FetchAuthChallenge -> Bool # (/=) :: FetchAuthChallenge -> FetchAuthChallenge -> Bool # | |
Show FetchAuthChallenge Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchAuthChallenge -> ShowS # show :: FetchAuthChallenge -> String # showList :: [FetchAuthChallenge] -> ShowS # | |
ToJSON FetchAuthChallenge Source # | |
Defined in CDP.Domains.Fetch toJSON :: FetchAuthChallenge -> Value # toEncoding :: FetchAuthChallenge -> Encoding # toJSONList :: [FetchAuthChallenge] -> Value # toEncodingList :: [FetchAuthChallenge] -> Encoding # | |
FromJSON FetchAuthChallenge Source # | |
Defined in CDP.Domains.Fetch parseJSON :: Value -> Parser FetchAuthChallenge # parseJSONList :: Value -> Parser [FetchAuthChallenge] # |
data FetchAuthChallengeSource Source #
Type AuthChallenge
.
Authorization challenge for HTTP status code 401 or 407.
Instances
data FetchHeaderEntry Source #
Type HeaderEntry
.
Response HTTP header entry
Instances
Eq FetchHeaderEntry Source # | |
Defined in CDP.Domains.Fetch (==) :: FetchHeaderEntry -> FetchHeaderEntry -> Bool # (/=) :: FetchHeaderEntry -> FetchHeaderEntry -> Bool # | |
Show FetchHeaderEntry Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchHeaderEntry -> ShowS # show :: FetchHeaderEntry -> String # showList :: [FetchHeaderEntry] -> ShowS # | |
ToJSON FetchHeaderEntry Source # | |
Defined in CDP.Domains.Fetch toJSON :: FetchHeaderEntry -> Value # toEncoding :: FetchHeaderEntry -> Encoding # toJSONList :: [FetchHeaderEntry] -> Value # toEncodingList :: [FetchHeaderEntry] -> Encoding # | |
FromJSON FetchHeaderEntry Source # | |
Defined in CDP.Domains.Fetch parseJSON :: Value -> Parser FetchHeaderEntry # parseJSONList :: Value -> Parser [FetchHeaderEntry] # |
data FetchRequestPattern Source #
Type RequestPattern
.
FetchRequestPattern | |
|
Instances
Eq FetchRequestPattern Source # | |
Defined in CDP.Domains.Fetch (==) :: FetchRequestPattern -> FetchRequestPattern -> Bool # (/=) :: FetchRequestPattern -> FetchRequestPattern -> Bool # | |
Show FetchRequestPattern Source # | |
Defined in CDP.Domains.Fetch showsPrec :: Int -> FetchRequestPattern -> ShowS # show :: FetchRequestPattern -> String # showList :: [FetchRequestPattern] -> ShowS # | |
ToJSON FetchRequestPattern Source # | |
Defined in CDP.Domains.Fetch toJSON :: FetchRequestPattern -> Value # toEncoding :: FetchRequestPattern -> Encoding # toJSONList :: [FetchRequestPattern] -> Value # toEncodingList :: [FetchRequestPattern] -> Encoding # | |
FromJSON FetchRequestPattern Source # | |
Defined in CDP.Domains.Fetch parseJSON :: Value -> Parser FetchRequestPattern # parseJSONList :: Value -> Parser [FetchRequestPattern] # |
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
type FetchRequestId = Text Source #
Type RequestId
.
Unique request identifier.