Safe Haskell | None |
---|---|
Language | Haskell2010 |
- sendRequest :: (HasType meta, ToVal meta, ToAst a, HasType a, FromVal a, HasType err, FromVal err) => Manager -> Pull -> RequestHeaders -> Request meta a -> IO (HttpClientResponse ByteString, Maybe (Response err a))
- data Manager :: *
- type RequestHeaders = [Header]
- type HttpClientResponse = Response
Documentation
sendRequest :: (HasType meta, ToVal meta, ToAst a, HasType a, FromVal a, HasType err, FromVal err) => Manager -> Pull -> RequestHeaders -> Request meta a -> IO (HttpClientResponse ByteString, Maybe (Response err a)) Source #
Keeps track of open connections for keep-alive.
If possible, you should share a single Manager
between multiple threads and requests.
Since 0.1.0
type RequestHeaders = [Header] #
Request Headers
type HttpClientResponse = Response Source #