Safe Haskell | Safe-Infered |
---|
- data HTTPVersion
- ppHTTPVersion :: HTTPVersion -> Doc
- data Method
- ppMethod :: Method -> Doc
- data Request = Request {
- rqMethod :: !Method
- rqURIbs :: !ByteString
- rqHTTPVersion :: !HTTPVersion
- rqHeaders :: ![(ByteString, ByteString)]
- rqSecure :: !Bool
- rqBody :: !ByteString
- ppRequest :: Request -> Doc
- data Response
- = PongResponse
- | ByteStringResponse {
- rsCode :: !Int
- rsBody :: !ByteString
- ppResponse :: Response -> Doc
- data ConnectionClosed = ConnectionClosed
- bytestring :: ByteString -> Doc
- field :: String -> Doc -> Doc
- ppHeader :: (ByteString, ByteString) -> Doc
- colon, space, nl, cr :: Word8
Documentation
data HTTPVersion Source
Request | |
|
PongResponse | return PONG in the request body |
ByteStringResponse | |
|
ppResponse :: Response -> DocSource
data ConnectionClosed Source
thrown when the remote-side closes the connection
bytestring :: ByteString -> DocSource
render a ByteString
to Doc
ppHeader :: (ByteString, ByteString) -> DocSource
pretty-print an HTTP header