Safe Haskell | None |
---|---|
Language | Haskell2010 |
HttpConfig
is used in the Hreq
Monad for HTTP client configuration
Synopsis
- data HttpConfig = HttpConfig {
- httpBaseUrl :: BaseUrl
- httpStatuses :: StatusRange
- httpCookieJar :: Maybe (TVar CookieJar)
- httpRetryPolicy :: RetryPolicy
- httpManager :: Manager
- data StatusRange = StatusRange {
- statusUpper :: StatusCode
- statusLower :: StatusCode
- createDefConfig :: BaseUrl -> IO HttpConfig
HttpConfig
data HttpConfig Source #
HttpConfig | |
|
Instances
Monad m => MonadReader HttpConfig (Hreq m) Source # | |
Defined in Hreq.Client.Internal.HTTP ask :: Hreq m HttpConfig # local :: (HttpConfig -> HttpConfig) -> Hreq m a -> Hreq m a # reader :: (HttpConfig -> a) -> Hreq m a # |
Status Range
data StatusRange Source #
Valid Response status code range
StatusRange | |
|
Helper function
createDefConfig :: BaseUrl -> IO HttpConfig Source #
Function for creating a default HttpConfig