Safe Haskell | None |
---|---|
Language | Haskell2010 |
Strelka.Core.Model
- data Request = Request !Method ![PathSegment] !Query !(HashMap HeaderName HeaderValue) !InputStream
- data Response = Response !Status ![Header] !OutputStream
- newtype Method = Method ByteString
- newtype PathSegment = PathSegment Text
- newtype Query = Query 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
Constructors
Request !Method ![PathSegment] !Query !(HashMap HeaderName HeaderValue) !InputStream |
HTTP Method in lower-case.
Constructors
Method ByteString |
Constructors
Query ByteString |
Constructors
Header !HeaderName !HeaderValue |
newtype InputStream Source #
IO action, which produces the next chunk. An empty chunk signals the end of the stream.
Constructors
InputStream (IO ByteString) |
newtype OutputStream Source #
A function on chunk-consuming and flushing IO actions.
Constructors
OutputStream ((ByteString -> IO ()) -> IO () -> IO ()) |