hreq-client-0.1.1.0: A Type dependent Highlevel HTTP client library.

Safe HaskellNone
LanguageHaskell2010

Hreq.Client.Internal.Config

Contents

Description

HttpConfig is used in the Hreq Monad for HTTP client configuration

Synopsis

HttpConfig

data HttpConfig Source #

Instances
Monad m => MonadReader HttpConfig (Hreq m) Source # 
Instance details

Defined in Hreq.Client.Internal.HTTP

Methods

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

Constructors

StatusRange 

Fields

Helper function

createDefConfig :: BaseUrl -> IO HttpConfig Source #

Function for creating a default HttpConfig