Safe Haskell | None |
---|---|
Language | Haskell2010 |
Optics for http-client
types
- method :: Lens' Request Method
- secure :: Lens' Request Bool
- host :: Lens' Request ByteString
- port :: Lens' Request Int
- path :: Lens' Request ByteString
- queryString :: Lens' Request ByteString
- requestBody :: Lens' Request RequestBody
- requestHeaders :: Lens' Request RequestHeaders
- proxy :: Lens' Request (Maybe Proxy)
- hostAddress :: Lens' Request (Maybe HostAddress)
- rawBody :: Lens' Request Bool
- decompress :: Lens' Request (ByteString -> Bool)
- redirectCount :: Lens' Request Int
- checkStatus :: Lens' Request (Status -> ResponseHeaders -> CookieJar -> Maybe SomeException)
- responseTimeout :: Lens' Request (Maybe Int)
- cookieJar :: Lens' Request (Maybe CookieJar)
- getConnectionWrapper :: Lens' Request (Maybe Int -> HttpException -> IO (ConnRelease, Connection, ManagedConn) -> IO (Maybe Int, (ConnRelease, Connection, ManagedConn)))
- class AsHttpException t where
- _HttpException :: Prism' t HttpException
- _StatusCodeException :: AsHttpException t => Prism' t (Status, ResponseHeaders, CookieJar)
- _InvalidUrlException :: AsHttpException t => Prism' t (String, String)
- _TooManyRedirects :: AsHttpException t => Prism' t [Response ByteString]
- _UnparseableRedirect :: AsHttpException t => Prism' t (Response ByteString)
- _TooManyRetries :: AsHttpException t => Prism' t ()
- _HttpParserException :: AsHttpException t => Prism' t String
- _HandshakeFailed :: AsHttpException t => Prism' t ()
- _OverlongHeaders :: AsHttpException t => Prism' t ()
- _ResponseTimeout :: AsHttpException t => Prism' t ()
- _FailedConnectionException :: AsHttpException t => Prism' t (String, Int)
- _ExpectedBlankAfter100Continue :: AsHttpException t => Prism' t ()
- _InvalidStatusLine :: AsHttpException t => Prism' t ByteString
- _InvalidHeader :: AsHttpException t => Prism' t ByteString
- _InternalIOException :: AsHttpException t => Prism' t IOException
- _ProxyConnectException :: AsHttpException t => Prism' t (ByteString, Int, Either ByteString HttpException)
- _NoResponseDataReceived :: AsHttpException t => Prism' t ()
- _TlsException :: AsHttpException t => Prism' t SomeException
- _TlsNotSupported :: AsHttpException t => Prism' t ()
- _ResponseBodyTooShort :: AsHttpException t => Prism' t (Word64, Word64)
- _InvalidChunkHeaders :: AsHttpException t => Prism' t ()
- _IncompleteHeaders :: AsHttpException t => Prism' t ()
Request
lenses
host :: Lens' Request ByteString Source
host
lens
path :: Lens' Request ByteString Source
path
lens
queryString :: Lens' Request ByteString Source
queryString
lens
requestBody :: Lens' Request RequestBody Source
requestBody
lens
requestHeaders :: Lens' Request RequestHeaders Source
requestHeaders
lens
hostAddress :: Lens' Request (Maybe HostAddress) Source
decompress :: Lens' Request (ByteString -> Bool) Source
redirectCount :: Lens' Request Int Source
redirectCount
lens
checkStatus :: Lens' Request (Status -> ResponseHeaders -> CookieJar -> Maybe SomeException) Source
checkStatus
lens
responseTimeout :: Lens' Request (Maybe Int) Source
responseTimeout
lens
getConnectionWrapper :: Lens' Request (Maybe Int -> HttpException -> IO (ConnRelease, Connection, ManagedConn) -> IO (Maybe Int, (ConnRelease, Connection, ManagedConn))) Source
HttpException
prisms
class AsHttpException t where Source
http-conduit
exceptions
Nothing
_HttpException :: Prism' t HttpException Source
http-conduit
exceptions overloading
_StatusCodeException :: AsHttpException t => Prism' t (Status, ResponseHeaders, CookieJar) Source
StatusCodeException
exception
_InvalidUrlException :: AsHttpException t => Prism' t (String, String) Source
InvalidUrlException
exception
_TooManyRedirects :: AsHttpException t => Prism' t [Response ByteString] Source
TooManyRedirects
exception
_UnparseableRedirect :: AsHttpException t => Prism' t (Response ByteString) Source
UnparseableRedirect
exception
_TooManyRetries :: AsHttpException t => Prism' t () Source
TooManyRetries
exception
_HttpParserException :: AsHttpException t => Prism' t String Source
HttpParserException
exception
_HandshakeFailed :: AsHttpException t => Prism' t () Source
HandshakeFailed
exception
_OverlongHeaders :: AsHttpException t => Prism' t () Source
OverlongHeaders
exception
_ResponseTimeout :: AsHttpException t => Prism' t () Source
ResponseTimeout
exception
_FailedConnectionException :: AsHttpException t => Prism' t (String, Int) Source
FailedConnectionException
exception
_ExpectedBlankAfter100Continue :: AsHttpException t => Prism' t () Source
ExpectedBlankAfter100Continue
exception
_InvalidStatusLine :: AsHttpException t => Prism' t ByteString Source
InvalidStatusLine
exception
_InvalidHeader :: AsHttpException t => Prism' t ByteString Source
InvalidHeader
exception
_InternalIOException :: AsHttpException t => Prism' t IOException Source
InternalIOException
exception
_ProxyConnectException :: AsHttpException t => Prism' t (ByteString, Int, Either ByteString HttpException) Source
ProxyConnectException
exception
_NoResponseDataReceived :: AsHttpException t => Prism' t () Source
NoResponseDataReceived
exception
_TlsException :: AsHttpException t => Prism' t SomeException Source
TlsException
exception
_TlsNotSupported :: AsHttpException t => Prism' t () Source
TlsNotSupported
exception
_ResponseBodyTooShort :: AsHttpException t => Prism' t (Word64, Word64) Source
ResponseBodyTooShort
exception
_InvalidChunkHeaders :: AsHttpException t => Prism' t () Source
InvalidChunkHeaders
exception
_IncompleteHeaders :: AsHttpException t => Prism' t () Source
IncompleteHeaders
exception