openapi-petstore-0.1.0.0: Auto-generated openapi-petstore API Client

Safe Haskell | None
Language | Haskell2010

OpenAPIPetstore.MimeTypes

Contents

- ContentType MimeType
- Accept MimeType
- Consumes Class
- Produces Class
- Default Mime Types
- MimeType Class
- MimeRender Class
- MimeUnrender Class
- Custom Mime Types
  - MimeXmlCharsetutf16
  - MimeXmlCharsetutf8
  - MimeTextxml
  - MimeTextxmlCharsetutf16
  - MimeTextxmlCharsetutf8

Description

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
  - mimeTypes :: Proxy mtype -> [MediaType]
  - mimeType :: Proxy mtype -> Maybe MediaType
  - mimeType' :: mtype -> Maybe MediaType
  - mimeTypes' :: mtype -> [MediaType]
- 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 #

Constructors

MimeType a => ContentType |
Fields unContentType :: a

# Accept MimeType

data Accept a Source #

Constructors

MimeType a => Accept |
Fields unAccept :: a

# Consumes Class

class MimeType mtype => Consumes req mtype Source #

Instances

MimeType mtype => Consumes UpdateUser mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.User
MimeType mtype => Consumes CreateUsersWithListInput mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.User
MimeType mtype => Consumes CreateUsersWithArrayInput mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.User
MimeType mtype => Consumes CreateUser mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.User
MimeType mtype => Consumes PlaceOrder mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Store
Consumes UploadFileWithRequiredFile MimeMultipartFormData Source # |
    multipart/form-data
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes UploadFile MimeMultipartFormData Source # |
    multipart/form-data
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes UpdatePetWithForm MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes UpdatePet MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes UpdatePet MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes AddPet MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes AddPet MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes TestClassname MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123
Consumes TestJsonFormData MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestInlineAdditionalProperties MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestEnumParameters MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestEndpointParameters MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestClientModel MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestBodyWithQueryParams MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestBodyWithFileSchema MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Consumes FakeOuterStringSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Consumes FakeOuterNumberSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Consumes FakeOuterCompositeSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Consumes FakeOuterBooleanSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes CreateXmlItem MimeTextxmlCharsetutf8 Source # |
    text/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes CreateXmlItem MimeTextxmlCharsetutf16 Source # |
    text/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes CreateXmlItem MimeTextxml Source # |
    text/xml
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes CreateXmlItem MimeXmlCharsetutf8 Source # |
    application/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes CreateXmlItem MimeXmlCharsetutf16 Source # |
    application/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes CreateXmlItem MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes Op123testSpecialTags MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.AnotherFake

# Produces Class

class MimeType mtype => Produces req mtype Source #

Instances

Produces UpdateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces LogoutUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces LoginUser MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.User
Produces LoginUser MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.User
Produces GetUserByName MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.User
Produces GetUserByName MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.User
Produces DeleteUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithListInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithArrayInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces PlaceOrder MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Store
Produces PlaceOrder MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Store
Produces GetOrderById MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Store
Produces GetOrderById MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Store
Produces GetInventory MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Store
Produces DeleteOrder MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Store
Produces UploadFileWithRequiredFile MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UploadFile MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UpdatePetWithForm MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UpdatePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces GetPetById MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Produces GetPetById MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByTags MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByTags MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByStatus MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByStatus MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces DeletePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces AddPet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces TestClassname MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123
Produces TestJsonFormData MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestInlineAdditionalProperties MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestGroupParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEnumParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEndpointParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestClientModel MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithQueryParams MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithFileSchema MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Produces FakeOuterStringSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Produces FakeOuterNumberSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Produces FakeOuterCompositeSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
MimeType mtype => Produces FakeOuterBooleanSerialize mtype Source # |
    */*
Instance details Defined in OpenAPIPetstore.API.Fake
Produces CreateXmlItem MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces Op123testSpecialTags MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.AnotherFake

# Default Mime Types

data MimeJSON Source #

Constructors

MimeJSON |

Instances

MimeType MimeJSON Source # |
    application/json; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeJSON -> [MediaType] Source # mimeType :: Proxy MimeJSON -> Maybe MediaType Source # mimeType' :: MimeJSON -> Maybe MediaType Source # mimeTypes' :: MimeJSON -> [MediaType] Source #
FromJSON a => MimeUnrender MimeJSON a Source # |
    A.eitherDecode
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeJSON -> ByteString -> Either String a Source # mimeUnrender' :: MimeJSON -> ByteString -> Either String a Source #
ToJSON a => MimeRender MimeJSON a Source # | `encode`
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeJSON -> a -> ByteString Source # mimeRender' :: MimeJSON -> a -> ByteString Source #
Produces LoginUser MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.User
Produces GetUserByName MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.User
Produces PlaceOrder MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Store
Produces GetOrderById MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Store
Produces GetInventory MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Store
Produces UploadFileWithRequiredFile MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UploadFile MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces GetPetById MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByTags MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByStatus MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Produces TestClassname MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123
Produces TestClientModel MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Produces Op123testSpecialTags MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.AnotherFake
Consumes UpdatePet MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes AddPet MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes TestClassname MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123
Consumes TestInlineAdditionalProperties MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestClientModel MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestBodyWithQueryParams MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestBodyWithFileSchema MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes Op123testSpecialTags MimeJSON Source # |
    application/json
Instance details Defined in OpenAPIPetstore.API.AnotherFake

data MimeXML Source #

Constructors

MimeXML |

Instances

MimeType MimeXML Source # |
    application/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXML -> [MediaType] Source # mimeType :: Proxy MimeXML -> Maybe MediaType Source # mimeType' :: MimeXML -> Maybe MediaType Source # mimeTypes' :: MimeXML -> [MediaType] Source #
Produces LoginUser MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.User
Produces GetUserByName MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.User
Produces PlaceOrder MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Store
Produces GetOrderById MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Store
Produces GetPetById MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByTags MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Produces FindPetsByStatus MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes UpdatePet MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes AddPet MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes CreateXmlItem MimeXML Source # |
    application/xml
Instance details Defined in OpenAPIPetstore.API.Fake

data MimePlainText Source #

Constructors

MimePlainText |

Instances

MimeType MimePlainText Source # |
    text/plain; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimePlainText -> [MediaType] Source # mimeType :: Proxy MimePlainText -> Maybe MediaType Source # mimeType' :: MimePlainText -> Maybe MediaType Source # mimeTypes' :: MimePlainText -> [MediaType] Source #
MimeUnrender MimePlainText ByteString Source # |
    P.Right . P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String ByteString Source #
MimeUnrender MimePlainText Text Source # |
    P.left P.show . TL.decodeUtf8'
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String Text Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String Text Source #
MimeUnrender MimePlainText String Source # |
    P.Right . BCL.unpack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String String Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String String Source #
MimeRender MimePlainText ByteString Source # |
    P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> ByteString -> ByteString Source # mimeRender' :: MimePlainText -> ByteString -> ByteString Source #
MimeRender MimePlainText Text Source # |
    BL.fromStrict . T.encodeUtf8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> Text -> ByteString Source # mimeRender' :: MimePlainText -> Text -> ByteString Source #
MimeRender MimePlainText String Source # |
    BCL.pack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> String -> ByteString Source # mimeRender' :: MimePlainText -> String -> ByteString Source #

data MimeFormUrlEncoded Source #

Constructors

MimeFormUrlEncoded |

Instances

MimeType MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeFormUrlEncoded -> [MediaType] Source # mimeType :: Proxy MimeFormUrlEncoded -> Maybe MediaType Source # mimeType' :: MimeFormUrlEncoded -> Maybe MediaType Source # mimeTypes' :: MimeFormUrlEncoded -> [MediaType] Source #
FromForm a => MimeUnrender MimeFormUrlEncoded a Source # |
    P.left T.unpack . WH.urlDecodeAsForm
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeFormUrlEncoded -> ByteString -> Either String a Source # mimeUnrender' :: MimeFormUrlEncoded -> ByteString -> Either String a Source #
ToForm a => MimeRender MimeFormUrlEncoded a Source # |
    WH.urlEncodeAsForm
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeFormUrlEncoded -> a -> ByteString Source # mimeRender' :: MimeFormUrlEncoded -> a -> ByteString Source #
Consumes UpdatePetWithForm MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes TestJsonFormData MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestEnumParameters MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Fake
Consumes TestEndpointParameters MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.API.Fake

data MimeMultipartFormData Source #

Constructors

MimeMultipartFormData |

Instances

MimeType MimeMultipartFormData Source # |
    multipart/form-data
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeMultipartFormData -> [MediaType] Source # mimeType :: Proxy MimeMultipartFormData -> Maybe MediaType Source # mimeType' :: MimeMultipartFormData -> Maybe MediaType Source # mimeTypes' :: MimeMultipartFormData -> [MediaType] Source #
MimeRender MimeMultipartFormData Bool Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Bool -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Bool -> ByteString Source #
MimeRender MimeMultipartFormData Char Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Char -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Char -> ByteString Source #
MimeRender MimeMultipartFormData Double Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Double -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Double -> ByteString Source #
MimeRender MimeMultipartFormData Float Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Float -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Float -> ByteString Source #
MimeRender MimeMultipartFormData Int Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Int -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Int -> ByteString Source #
MimeRender MimeMultipartFormData Integer Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Integer -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Integer -> ByteString Source #
MimeRender MimeMultipartFormData ByteString Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> ByteString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteString -> ByteString Source #
MimeRender MimeMultipartFormData Text Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Text -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Text -> ByteString Source #
MimeRender MimeMultipartFormData String Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> String -> ByteString Source # mimeRender' :: MimeMultipartFormData -> String -> ByteString Source #
MimeRender MimeMultipartFormData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Binary -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Binary -> ByteString Source #
MimeRender MimeMultipartFormData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> ByteArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteArray -> ByteString Source #
MimeRender MimeMultipartFormData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Date -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Date -> ByteString Source #
MimeRender MimeMultipartFormData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> DateTime -> ByteString Source # mimeRender' :: MimeMultipartFormData -> DateTime -> ByteString Source #
MimeRender MimeMultipartFormData OuterEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> OuterEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> OuterEnum -> ByteString Source #
MimeRender MimeMultipartFormData EnumClass Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> EnumClass -> ByteString Source # mimeRender' :: MimeMultipartFormData -> EnumClass -> ByteString Source #
MimeRender MimeMultipartFormData E'Status2 Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status2 -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status2 -> ByteString Source #
MimeRender MimeMultipartFormData E'Status Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status -> ByteString Source #
MimeRender MimeMultipartFormData E'JustSymbol Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'JustSymbol -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'JustSymbol -> ByteString Source #
MimeRender MimeMultipartFormData E'Inner Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Inner -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Inner -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumString -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumQueryInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumNumber Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumNumber -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumNumber -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormStringArray Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormString -> ByteString Source #
MimeRender MimeMultipartFormData E'ArrayEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'ArrayEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'ArrayEnum -> ByteString Source #
Consumes UploadFileWithRequiredFile MimeMultipartFormData Source # |
    multipart/form-data
Instance details Defined in OpenAPIPetstore.API.Pet
Consumes UploadFile MimeMultipartFormData Source # |
    multipart/form-data
Instance details Defined in OpenAPIPetstore.API.Pet

data MimeOctetStream Source #

Constructors

MimeOctetStream |

Instances

MimeType MimeOctetStream Source # |
    application/octet-stream
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeOctetStream -> [MediaType] Source # mimeType :: Proxy MimeOctetStream -> Maybe MediaType Source # mimeType' :: MimeOctetStream -> Maybe MediaType Source # mimeTypes' :: MimeOctetStream -> [MediaType] Source #
MimeUnrender MimeOctetStream ByteString Source # |
    P.Right . P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String ByteString Source #
MimeUnrender MimeOctetStream Text Source # |
    P.left P.show . T.decodeUtf8' . BL.toStrict
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String Text Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String Text Source #
MimeUnrender MimeOctetStream String Source # |
    P.Right . BCL.unpack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String String Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String String Source #
MimeRender MimeOctetStream ByteString Source # |
    P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> ByteString -> ByteString Source # mimeRender' :: MimeOctetStream -> ByteString -> ByteString Source #
MimeRender MimeOctetStream Text Source # |
    BL.fromStrict . T.encodeUtf8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> Text -> ByteString Source # mimeRender' :: MimeOctetStream -> Text -> ByteString Source #
MimeRender MimeOctetStream String Source # |
    BCL.pack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> String -> ByteString Source # mimeRender' :: MimeOctetStream -> String -> ByteString Source #

data MimeNoContent Source #

Constructors

MimeNoContent |

Instances

MimeType MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods 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
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source #
MimeRender MimeNoContent NoContent Source # |
    P.Right . P.const NoContent
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source #
Produces UpdateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces LogoutUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces DeleteUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithListInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithArrayInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces DeleteOrder MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Store
Produces UpdatePetWithForm MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UpdatePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces DeletePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces AddPet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces TestJsonFormData MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestInlineAdditionalProperties MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestGroupParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEnumParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEndpointParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithQueryParams MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithFileSchema MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces CreateXmlItem MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake

data MimeAny Source #

Constructors

MimeAny |

Instances

MimeType MimeAny Source # |
    "*/*"
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeAny -> [MediaType] Source # mimeType :: Proxy MimeAny -> Maybe MediaType Source # mimeType' :: MimeAny -> Maybe MediaType Source # mimeTypes' :: MimeAny -> [MediaType] Source #

data NoContent Source #

A type for responses without content-body.

Constructors

NoContent |

Instances

Eq NoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods (==) :: NoContent -> NoContent -> Bool # (/=) :: NoContent -> NoContent -> Bool #
Show NoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods showsPrec :: Int -> NoContent -> ShowS # show :: NoContent -> String # showList :: [NoContent] -> ShowS #
MimeUnrender MimeNoContent NoContent Source # |
    P.Right . P.const NoContent
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source #
MimeRender MimeNoContent NoContent Source # |
    P.Right . P.const NoContent
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source #

# MimeType Class

class Typeable mtype => MimeType mtype where Source #

Minimal complete definition

mimeType | mimeTypes

Methods

mimeTypes :: Proxy mtype -> [MediaType] Source #

mimeType :: Proxy mtype -> Maybe MediaType Source #

mimeType' :: mtype -> Maybe MediaType Source #

mimeTypes' :: mtype -> [MediaType] Source #

Instances

MimeType MimeTextxmlCharsetutf8 Source # |
    text/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextxmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeTextxmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeTextxmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeTextxmlCharsetutf8 -> [MediaType] Source #
MimeType MimeTextxmlCharsetutf16 Source # |
    text/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextxmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeTextxmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeTextxmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeTextxmlCharsetutf16 -> [MediaType] Source #
MimeType MimeTextxml Source # |
    text/xml
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextxml -> [MediaType] Source # mimeType :: Proxy MimeTextxml -> Maybe MediaType Source # mimeType' :: MimeTextxml -> Maybe MediaType Source # mimeTypes' :: MimeTextxml -> [MediaType] Source #
MimeType MimeXmlCharsetutf8 Source # |
    application/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf8 -> [MediaType] Source #
MimeType MimeXmlCharsetutf16 Source # |
    application/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf16 -> [MediaType] Source #
MimeType MimeAny Source # |
    "*/*"
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeAny -> [MediaType] Source # mimeType :: Proxy MimeAny -> Maybe MediaType Source # mimeType' :: MimeAny -> Maybe MediaType Source # mimeTypes' :: MimeAny -> [MediaType] Source #
MimeType MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeNoContent -> [MediaType] Source # mimeType :: Proxy MimeNoContent -> Maybe MediaType Source # mimeType' :: MimeNoContent -> Maybe MediaType Source # mimeTypes' :: MimeNoContent -> [MediaType] Source #
MimeType MimeOctetStream Source # |
    application/octet-stream
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeOctetStream -> [MediaType] Source # mimeType :: Proxy MimeOctetStream -> Maybe MediaType Source # mimeType' :: MimeOctetStream -> Maybe MediaType Source # mimeTypes' :: MimeOctetStream -> [MediaType] Source #
MimeType MimeMultipartFormData Source # |
    multipart/form-data
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeMultipartFormData -> [MediaType] Source # mimeType :: Proxy MimeMultipartFormData -> Maybe MediaType Source # mimeType' :: MimeMultipartFormData -> Maybe MediaType Source # mimeTypes' :: MimeMultipartFormData -> [MediaType] Source #
MimeType MimeFormUrlEncoded Source # |
    application/x-www-form-urlencoded
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeFormUrlEncoded -> [MediaType] Source # mimeType :: Proxy MimeFormUrlEncoded -> Maybe MediaType Source # mimeType' :: MimeFormUrlEncoded -> Maybe MediaType Source # mimeTypes' :: MimeFormUrlEncoded -> [MediaType] Source #
MimeType MimePlainText Source # |
    text/plain; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimePlainText -> [MediaType] Source # mimeType :: Proxy MimePlainText -> Maybe MediaType Source # mimeType' :: MimePlainText -> Maybe MediaType Source # mimeTypes' :: MimePlainText -> [MediaType] Source #
MimeType MimeXML Source # |
    application/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXML -> [MediaType] Source # mimeType :: Proxy MimeXML -> Maybe MediaType Source # mimeType' :: MimeXML -> Maybe MediaType Source # mimeTypes' :: MimeXML -> [MediaType] Source #
MimeType MimeJSON Source # |
    application/json; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeJSON -> [MediaType] Source # mimeType :: Proxy MimeJSON -> Maybe MediaType Source # mimeType' :: MimeJSON -> Maybe MediaType Source # mimeTypes' :: MimeJSON -> [MediaType] Source #

# MimeRender Class

class MimeType mtype => MimeRender mtype x where Source #

Minimal complete definition

mimeRender

Methods

mimeRender :: Proxy mtype -> x -> ByteString Source #

mimeRender' :: mtype -> x -> ByteString Source #

Instances

MimeRender MimeNoContent NoContent Source # |
    P.Right . P.const NoContent
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source #
MimeRender MimeOctetStream ByteString Source # |
    P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> ByteString -> ByteString Source # mimeRender' :: MimeOctetStream -> ByteString -> ByteString Source #
MimeRender MimeOctetStream Text Source # |
    BL.fromStrict . T.encodeUtf8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> Text -> ByteString Source # mimeRender' :: MimeOctetStream -> Text -> ByteString Source #
MimeRender MimeOctetStream String Source # |
    BCL.pack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> String -> ByteString Source # mimeRender' :: MimeOctetStream -> String -> ByteString Source #
MimeRender MimeMultipartFormData Bool Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Bool -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Bool -> ByteString Source #
MimeRender MimeMultipartFormData Char Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Char -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Char -> ByteString Source #
MimeRender MimeMultipartFormData Double Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Double -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Double -> ByteString Source #
MimeRender MimeMultipartFormData Float Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Float -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Float -> ByteString Source #
MimeRender MimeMultipartFormData Int Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Int -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Int -> ByteString Source #
MimeRender MimeMultipartFormData Integer Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Integer -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Integer -> ByteString Source #
MimeRender MimeMultipartFormData ByteString Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> ByteString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteString -> ByteString Source #
MimeRender MimeMultipartFormData Text Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Text -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Text -> ByteString Source #
MimeRender MimeMultipartFormData String Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> String -> ByteString Source # mimeRender' :: MimeMultipartFormData -> String -> ByteString Source #
MimeRender MimeMultipartFormData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Binary -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Binary -> ByteString Source #
MimeRender MimeMultipartFormData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> ByteArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteArray -> ByteString Source #
MimeRender MimeMultipartFormData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Date -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Date -> ByteString Source #
MimeRender MimeMultipartFormData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> DateTime -> ByteString Source # mimeRender' :: MimeMultipartFormData -> DateTime -> ByteString Source #
MimeRender MimeMultipartFormData OuterEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> OuterEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> OuterEnum -> ByteString Source #
MimeRender MimeMultipartFormData EnumClass Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> EnumClass -> ByteString Source # mimeRender' :: MimeMultipartFormData -> EnumClass -> ByteString Source #
MimeRender MimeMultipartFormData E'Status2 Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status2 -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status2 -> ByteString Source #
MimeRender MimeMultipartFormData E'Status Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status -> ByteString Source #
MimeRender MimeMultipartFormData E'JustSymbol Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'JustSymbol -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'JustSymbol -> ByteString Source #
MimeRender MimeMultipartFormData E'Inner Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Inner -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Inner -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumString -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumQueryInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumNumber Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumNumber -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumNumber -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormStringArray Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormString -> ByteString Source #
MimeRender MimeMultipartFormData E'ArrayEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'ArrayEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'ArrayEnum -> ByteString Source #
ToForm a => MimeRender MimeFormUrlEncoded a Source # |
    WH.urlEncodeAsForm
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeFormUrlEncoded -> a -> ByteString Source # mimeRender' :: MimeFormUrlEncoded -> a -> ByteString Source #
MimeRender MimePlainText ByteString Source # |
    P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> ByteString -> ByteString Source # mimeRender' :: MimePlainText -> ByteString -> ByteString Source #
MimeRender MimePlainText Text Source # |
    BL.fromStrict . T.encodeUtf8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> Text -> ByteString Source # mimeRender' :: MimePlainText -> Text -> ByteString Source #
MimeRender MimePlainText String Source # |
    BCL.pack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> String -> ByteString Source # mimeRender' :: MimePlainText -> String -> ByteString Source #
ToJSON a => MimeRender MimeJSON a Source # | `encode`
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeJSON -> a -> ByteString Source # mimeRender' :: MimeJSON -> a -> ByteString Source #

mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString Source #

# MimeUnrender Class

class MimeType mtype => MimeUnrender mtype o where Source #

Minimal complete definition

mimeUnrender

Methods

mimeUnrender :: Proxy mtype -> ByteString -> Either String o Source #

mimeUnrender' :: mtype -> ByteString -> Either String o Source #

Instances

MimeUnrender MimeNoContent NoContent Source # |
    P.Right . P.const NoContent
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source #
MimeUnrender MimeOctetStream ByteString Source # |
    P.Right . P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String ByteString Source #
MimeUnrender MimeOctetStream Text Source # |
    P.left P.show . T.decodeUtf8' . BL.toStrict
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String Text Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String Text Source #
MimeUnrender MimeOctetStream String Source # |
    P.Right . BCL.unpack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String String Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String String Source #
FromForm a => MimeUnrender MimeFormUrlEncoded a Source # |
    P.left T.unpack . WH.urlDecodeAsForm
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeFormUrlEncoded -> ByteString -> Either String a Source # mimeUnrender' :: MimeFormUrlEncoded -> ByteString -> Either String a Source #
MimeUnrender MimePlainText ByteString Source # |
    P.Right . P.id
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String ByteString Source #
MimeUnrender MimePlainText Text Source # |
    P.left P.show . TL.decodeUtf8'
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String Text Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String Text Source #
MimeUnrender MimePlainText String Source # |
    P.Right . BCL.unpack
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String String Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String String Source #
FromJSON a => MimeUnrender MimeJSON a Source # |
    A.eitherDecode
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeJSON -> ByteString -> Either String a Source # mimeUnrender' :: MimeJSON -> ByteString -> Either String a Source #

# Custom Mime Types

## MimeXmlCharsetutf16

data MimeXmlCharsetutf16 Source #

Constructors

MimeXmlCharsetutf16 |

Instances

MimeType MimeXmlCharsetutf16 Source # |
    application/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf16 -> [MediaType] Source #
Consumes CreateXmlItem MimeXmlCharsetutf16 Source # |
    application/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.API.Fake

## MimeXmlCharsetutf8

data MimeXmlCharsetutf8 Source #

Constructors

MimeXmlCharsetutf8 |

Instances

MimeType MimeXmlCharsetutf8 Source # |
    application/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods 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
Instance details Defined in OpenAPIPetstore.API.Fake

## MimeTextxml

data MimeTextxml Source #

Constructors

MimeTextxml |

Instances

MimeType MimeTextxml Source # |
    text/xml
Instance details Defined in OpenAPIPetstore.MimeTypes Methods 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
Instance details Defined in OpenAPIPetstore.API.Fake

## MimeTextxmlCharsetutf16

data MimeTextxmlCharsetutf16 Source #

Constructors

MimeTextxmlCharsetutf16 |

Instances

MimeType MimeTextxmlCharsetutf16 Source # |
    text/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextxmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeTextxmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeTextxmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeTextxmlCharsetutf16 -> [MediaType] Source #
Consumes CreateXmlItem MimeTextxmlCharsetutf16 Source # |
    text/xml; charset=utf-16
Instance details Defined in OpenAPIPetstore.API.Fake

## MimeTextxmlCharsetutf8

data MimeTextxmlCharsetutf8 Source #

Constructors

MimeTextxmlCharsetutf8 |

Instances

MimeType MimeTextxmlCharsetutf8 Source # |
    text/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextxmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeTextxmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeTextxmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeTextxmlCharsetutf8 -> [MediaType] Source #
Consumes CreateXmlItem MimeTextxmlCharsetutf8 Source # |
    text/xml; charset=utf-8
Instance details Defined in OpenAPIPetstore.API.Fake