Safe Haskell | Safe-Inferred |
---|---|
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
- mimeRender :: Proxy mtype -> x -> ByteString
- mimeRender' :: mtype -> x -> ByteString
- mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString
- class MimeType mtype => MimeUnrender mtype o where
- mimeUnrender :: Proxy mtype -> ByteString -> Either String o
- mimeUnrender' :: mtype -> ByteString -> Either String o
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
data MimePlainText Source #
Instances
data MimeFormUrlEncoded Source #
Instances
data MimeMultipartFormData Source #
Instances
data MimeOctetStream Source #
Instances
data MimeNoContent Source #
Instances
A type for responses without content-body.
Instances
Show NoContent Source # | |
Eq NoContent Source # | |
MimeRender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in OryHydra.MimeTypes mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source # | |
MimeUnrender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in OryHydra.MimeTypes mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent 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 #