Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Endpoint = MkEndpoint {}
- pack :: Endpoint -> Endpoint
- mkHeader :: Text -> Text -> Header
- ctJSON :: MediaType
- ctPlainText :: MediaType
- hApplication :: ByteString
- hJSON :: ByteString
- hText :: ByteString
- hPlain :: ByteString
- hCharset :: ByteString
- hUTF8 :: ByteString
Documentation
An API endpoint. -
MkEndpoint | |
|
pack :: Endpoint -> Endpoint Source #
Pack an endpoint created from an API interpretation in a form ready to be serialized. - This is only useful if your are building your own output.
Content Types
ctPlainText :: MediaType Source #
text/plain ; charset=utf-8
hApplication :: ByteString Source #
application
hJSON :: ByteString Source #
json
hText :: ByteString Source #
text
hPlain :: ByteString Source #
plain
hCharset :: ByteString Source #
charset
hUTF8 :: ByteString Source #
utf-8