Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Http.Exchange.Types
Synopsis
- data HttpException
- = ChunkTooLarge
- | ChunkedBodyEndOfInput
- | NonchunkedBodyEndOfInput
- | ContentLengthDuplicated
- | ContentLengthMalformed
- | ContentLengthTooLarge
- | ExpectedCrlfAfterChunk
- | ExpectedCrlfAfterChunkLength
- | ExpectedCrlfBeforeChunkLength
- | HeadersMalformed
- | HeadersEndOfInput !Bytes
- | HeadersTooLarge
- | ImplementationMistake
- | NonNumericChunkLength
- | PipelinedResponses
- | TransferEncodingUnrecognized
- | TransferEncodingDuplicated
Documentation
data HttpException Source #
Exceptions that occur when decoding an HTTP response. If this happens, the only way to proceed is to shut down the connection. Either the server does not speak HTTP correct, or there is a mistake in this libary.
Constructors
ChunkTooLarge | |
ChunkedBodyEndOfInput | |
NonchunkedBodyEndOfInput | |
ContentLengthDuplicated | |
ContentLengthMalformed | |
ContentLengthTooLarge | |
ExpectedCrlfAfterChunk | |
ExpectedCrlfAfterChunkLength | |
ExpectedCrlfBeforeChunkLength | |
HeadersMalformed | |
HeadersEndOfInput !Bytes | The entire contents of the response. |
HeadersTooLarge | |
ImplementationMistake | If this one happens, there is a mistake in this library. |
NonNumericChunkLength | |
PipelinedResponses | |
TransferEncodingUnrecognized | |
TransferEncodingDuplicated |
Instances
Exception HttpException Source # | |
Defined in Http.Exchange.Types Methods toException :: HttpException -> SomeException # fromException :: SomeException -> Maybe HttpException # displayException :: HttpException -> String # | |
Show HttpException Source # | |
Defined in Http.Exchange.Types Methods showsPrec :: Int -> HttpException -> ShowS # show :: HttpException -> String # showList :: [HttpException] -> ShowS # |