Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Request = Request !Method !Path !(HashMap ParamName ParamValue) !(HashMap HeaderName HeaderValue) !InputStream
- data Response = Response !Status ![Header] !OutputStream
- newtype Method = Method ByteString
- newtype Path = Path ByteString
- newtype ParamName = ParamName ByteString
- newtype ParamValue = ParamValue (Maybe ByteString)
- data Header = Header !HeaderName !HeaderValue
- newtype HeaderName = HeaderName ByteString
- newtype HeaderValue = HeaderValue ByteString
- newtype Status = Status Int
- newtype InputStream = InputStream (IO ByteString)
- newtype OutputStream = OutputStream ((ByteString -> IO ()) -> IO () -> IO ())
Documentation
HTTP Method in lower-case.
newtype ParamValue Source
newtype HeaderName Source
Header name in lower-case.
newtype HeaderValue Source
newtype InputStream Source
IO action, which produces the next chunk. An empty chunk signals the end of the stream.
newtype OutputStream Source
A function on a chunk consuming and flushing IO actions.
OutputStream ((ByteString -> IO ()) -> IO () -> IO ()) |