Safe Haskell | None |
---|---|
Language | Haskell2010 |
Strelka.Core.Model
Synopsis
- 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 |
newtype PathSegment Source #
Constructors
PathSegment Text |
Instances
Eq PathSegment Source # | |
Defined in Strelka.Core.Model | |
Ord PathSegment Source # | |
Defined in Strelka.Core.Model Methods compare :: PathSegment -> PathSegment -> Ordering # (<) :: PathSegment -> PathSegment -> Bool # (<=) :: PathSegment -> PathSegment -> Bool # (>) :: PathSegment -> PathSegment -> Bool # (>=) :: PathSegment -> PathSegment -> Bool # max :: PathSegment -> PathSegment -> PathSegment # min :: PathSegment -> PathSegment -> PathSegment # | |
Show PathSegment Source # | |
Defined in Strelka.Core.Model Methods showsPrec :: Int -> PathSegment -> ShowS # show :: PathSegment -> String # showList :: [PathSegment] -> ShowS # | |
IsString PathSegment Source # | |
Defined in Strelka.Core.Model Methods fromString :: String -> PathSegment # | |
Hashable PathSegment Source # | |
Defined in Strelka.Core.Model |
Constructors
Query ByteString |
Constructors
Header !HeaderName !HeaderValue |
newtype HeaderName Source #
Header name in lower-case.
Constructors
HeaderName ByteString |
Instances
Eq HeaderName Source # | |
Defined in Strelka.Core.Model | |
Ord HeaderName Source # | |
Defined in Strelka.Core.Model Methods compare :: HeaderName -> HeaderName -> Ordering # (<) :: HeaderName -> HeaderName -> Bool # (<=) :: HeaderName -> HeaderName -> Bool # (>) :: HeaderName -> HeaderName -> Bool # (>=) :: HeaderName -> HeaderName -> Bool # max :: HeaderName -> HeaderName -> HeaderName # min :: HeaderName -> HeaderName -> HeaderName # | |
Show HeaderName Source # | |
Defined in Strelka.Core.Model Methods showsPrec :: Int -> HeaderName -> ShowS # show :: HeaderName -> String # showList :: [HeaderName] -> ShowS # | |
IsString HeaderName Source # | |
Defined in Strelka.Core.Model Methods fromString :: String -> HeaderName # | |
Hashable HeaderName Source # | |
Defined in Strelka.Core.Model |
newtype HeaderValue Source #
Constructors
HeaderValue ByteString |
Instances
Eq HeaderValue Source # | |
Defined in Strelka.Core.Model | |
Ord HeaderValue Source # | |
Defined in Strelka.Core.Model Methods compare :: HeaderValue -> HeaderValue -> Ordering # (<) :: HeaderValue -> HeaderValue -> Bool # (<=) :: HeaderValue -> HeaderValue -> Bool # (>) :: HeaderValue -> HeaderValue -> Bool # (>=) :: HeaderValue -> HeaderValue -> Bool # max :: HeaderValue -> HeaderValue -> HeaderValue # min :: HeaderValue -> HeaderValue -> HeaderValue # | |
Show HeaderValue Source # | |
Defined in Strelka.Core.Model Methods showsPrec :: Int -> HeaderValue -> ShowS # show :: HeaderValue -> String # showList :: [HeaderValue] -> ShowS # | |
IsString HeaderValue Source # | |
Defined in Strelka.Core.Model Methods fromString :: String -> HeaderValue # | |
Hashable HeaderValue Source # | |
Defined in Strelka.Core.Model |
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 ()) |