Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ContentType a = MimeType a => ContentType {
- unContentType :: a
- data Accept a = MimeType a => Accept {
- unAccept :: a
- class MimeType mtype => Consumes req mtype
- class MimeType mtype => Produces req mtype
- data MimeJSON = MimeJSON
- data MimeXML = MimeXML
- data MimePlainText = MimePlainText
- data MimeFormUrlEncoded = MimeFormUrlEncoded
- data MimeMultipartFormData = MimeMultipartFormData
- data MimeOctetStream = MimeOctetStream
- data MimeNoContent = MimeNoContent
- data MimeAny = MimeAny
- data NoContent = NoContent
- class Typeable mtype => MimeType mtype where
- class MimeType mtype => MimeRender mtype x where
- mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString
- class MimeType mtype => MimeUnrender mtype o where
ContentType MimeType
data ContentType a Source #
MimeType a => ContentType | |
|
Accept MimeType
Consumes Class
class MimeType mtype => Consumes req mtype Source #
Instances
Produces Class
class MimeType mtype => Produces req mtype Source #
Instances
Default Mime Types
Instances
Instances
data MimePlainText Source #
Instances
data MimeFormUrlEncoded Source #
Instances
data MimeMultipartFormData Source #
Instances
data MimeOctetStream Source #
Instances
data MimeNoContent Source #
Instances
MimeType MimeNoContent Source # | |
Defined in BitMEX.MimeTypes mimeTypes :: Proxy MimeNoContent -> [MediaType] Source # mimeType :: Proxy MimeNoContent -> Maybe MediaType Source # mimeType' :: MimeNoContent -> Maybe MediaType Source # mimeTypes' :: MimeNoContent -> [MediaType] Source # | |
MimeUnrender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in BitMEX.MimeTypes mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source # | |
MimeRender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in BitMEX.MimeTypes mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source # |
A type for responses without content-body.
Instances
Eq NoContent Source # | |
Show NoContent Source # | |
MimeUnrender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in BitMEX.MimeTypes mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source # | |
MimeRender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in BitMEX.MimeTypes mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source # |
MimeType Class
class Typeable mtype => MimeType mtype where Source #
mimeTypes :: Proxy mtype -> [MediaType] Source #
mimeType :: Proxy mtype -> Maybe MediaType Source #
mimeType' :: mtype -> Maybe MediaType Source #
mimeTypes' :: mtype -> [MediaType] Source #
Instances
MimeRender Class
class MimeType mtype => MimeRender mtype x where Source #
mimeRender :: Proxy mtype -> x -> ByteString Source #
mimeRender' :: mtype -> x -> ByteString Source #
Instances
mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString Source #
MimeUnrender Class
class MimeType mtype => MimeUnrender mtype o where Source #
mimeUnrender :: Proxy mtype -> ByteString -> Either String o Source #
mimeUnrender' :: mtype -> ByteString -> Either String o Source #