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
- 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
- data MimeXmlCharsetutf16 = MimeXmlCharsetutf16
- data MimeXmlCharsetutf8 = MimeXmlCharsetutf8
- data MimeTextxml = MimeTextxml
- data MimeTextxmlCharsetutf16 = MimeTextxmlCharsetutf16
- data MimeTextxmlCharsetutf8 = MimeTextxmlCharsetutf8
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
MimeType MimeXML Source # | application/xml; charset=utf-8 |
Produces LoginUser MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.User | |
Produces GetUserByName MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.User | |
Produces PlaceOrder MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Store | |
Produces GetOrderById MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Store | |
Produces GetPetById MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Produces FindPetsByTags MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Produces FindPetsByStatus MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Consumes UpdatePet MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Consumes AddPet MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Consumes CreateXmlItem MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Fake |
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
Eq NoContent Source # | |
Show NoContent Source # | |
MimeUnrender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in OpenAPIPetstore.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 OpenAPIPetstore.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 #
Instances
Custom Mime Types
MimeXmlCharsetutf16
data MimeXmlCharsetutf16 Source #
Instances
MimeType MimeXmlCharsetutf16 Source # | application/xml; charset=utf-16 |
Defined in OpenAPIPetstore.MimeTypes | |
Consumes CreateXmlItem MimeXmlCharsetutf16 Source # | application/xml; charset=utf-16 |
Defined in OpenAPIPetstore.API.Fake |
MimeXmlCharsetutf8
data MimeXmlCharsetutf8 Source #
Instances
MimeType MimeXmlCharsetutf8 Source # | application/xml; charset=utf-8 |
Defined in OpenAPIPetstore.MimeTypes mimeTypes :: Proxy MimeXmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf8 -> [MediaType] Source # | |
Consumes CreateXmlItem MimeXmlCharsetutf8 Source # | application/xml; charset=utf-8 |
Defined in OpenAPIPetstore.API.Fake |
MimeTextxml
data MimeTextxml Source #
Instances
MimeType MimeTextxml Source # | text/xml |
Defined in OpenAPIPetstore.MimeTypes mimeTypes :: Proxy MimeTextxml -> [MediaType] Source # mimeType :: Proxy MimeTextxml -> Maybe MediaType Source # mimeType' :: MimeTextxml -> Maybe MediaType Source # mimeTypes' :: MimeTextxml -> [MediaType] Source # | |
Consumes CreateXmlItem MimeTextxml Source # | text/xml |
Defined in OpenAPIPetstore.API.Fake |
MimeTextxmlCharsetutf16
data MimeTextxmlCharsetutf16 Source #
Instances
MimeType MimeTextxmlCharsetutf16 Source # | text/xml; charset=utf-16 |
Defined in OpenAPIPetstore.MimeTypes | |
Consumes CreateXmlItem MimeTextxmlCharsetutf16 Source # | text/xml; charset=utf-16 |
Defined in OpenAPIPetstore.API.Fake |
MimeTextxmlCharsetutf8
data MimeTextxmlCharsetutf8 Source #
Instances
MimeType MimeTextxmlCharsetutf8 Source # | text/xml; charset=utf-8 |
Defined in OpenAPIPetstore.MimeTypes | |
Consumes CreateXmlItem MimeTextxmlCharsetutf8 Source # | text/xml; charset=utf-8 |
Defined in OpenAPIPetstore.API.Fake |