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

Safe Haskell | None
Language | Haskell2010

SwaggerPetstore.Core

Contents

- SwaggerPetstoreConfig
- SwaggerPetstoreRequest
- HasBodyParam
- HasOptionalParam
  - SwaggerPetstoreRequest Utils
  - Params Utils
    - Swagger `CollectionFormat` Utils
- AuthMethods
- Utils
- DateTime Formatting
- Date Formatting
- Byte/Binary Formatting
- Lens Type Aliases

Description

Synopsis

- data SwaggerPetstoreConfig = SwaggerPetstoreConfig {
  - configHost :: ByteString
  - configUserAgent :: Text
  - configLogExecWithContext :: LogExecWithContext
  - configLogContext :: LogContext
  - configAuthMethods :: [AnyAuthMethod]
  - configValidateAuthMethods :: Bool
  }
- newConfig :: IO SwaggerPetstoreConfig
- addAuthMethod :: AuthMethod auth => SwaggerPetstoreConfig -> auth -> SwaggerPetstoreConfig
- withStdoutLogging :: SwaggerPetstoreConfig -> IO SwaggerPetstoreConfig
- withStderrLogging :: SwaggerPetstoreConfig -> IO SwaggerPetstoreConfig
- withNoLogging :: SwaggerPetstoreConfig -> SwaggerPetstoreConfig
- data SwaggerPetstoreRequest req contentType res accept = SwaggerPetstoreRequest {
  - rMethod :: Method
  - rUrlPath :: [ByteString]
  - rParams :: Params
  - rAuthTypes :: [TypeRep]
  }
- rMethodL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) Method
- rUrlPathL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) [ByteString]
- rParamsL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) Params
- rAuthTypesL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) [TypeRep]
- class HasBodyParam req param where
- class HasOptionalParam req param where
- data Params = Params {
  - paramsQuery :: Query
  - paramsHeaders :: RequestHeaders
  - paramsBody :: ParamBody
  }
- paramsQueryL :: Lens_' Params Query
- paramsHeadersL :: Lens_' Params RequestHeaders
- paramsBodyL :: Lens_' Params ParamBody
- data ParamBody
  - = ParamBodyNone
  - | ParamBodyB ByteString
  - | ParamBodyBL ByteString
  - | ParamBodyFormUrlEncoded Form
  - | ParamBodyMultipartFormData [Part]
- _mkRequest :: Method -> [ByteString] -> SwaggerPetstoreRequest req contentType res accept
- _mkParams :: Params
- setHeader :: SwaggerPetstoreRequest req contentType res accept -> [Header] -> SwaggerPetstoreRequest req contentType res accept
- removeHeader :: SwaggerPetstoreRequest req contentType res accept -> [HeaderName] -> SwaggerPetstoreRequest req contentType res accept
- _setContentTypeHeader :: forall req contentType res accept. MimeType contentType => SwaggerPetstoreRequest req contentType res accept -> SwaggerPetstoreRequest req contentType res accept
- _setAcceptHeader :: forall req contentType res accept. MimeType accept => SwaggerPetstoreRequest req contentType res accept -> SwaggerPetstoreRequest req contentType res accept
- setQuery :: SwaggerPetstoreRequest req contentType res accept -> [QueryItem] -> SwaggerPetstoreRequest req contentType res accept
- addForm :: SwaggerPetstoreRequest req contentType res accept -> Form -> SwaggerPetstoreRequest req contentType res accept
- _addMultiFormPart :: SwaggerPetstoreRequest req contentType res accept -> Part -> SwaggerPetstoreRequest req contentType res accept
- _setBodyBS :: SwaggerPetstoreRequest req contentType res accept -> ByteString -> SwaggerPetstoreRequest req contentType res accept
- _setBodyLBS :: SwaggerPetstoreRequest req contentType res accept -> ByteString -> SwaggerPetstoreRequest req contentType res accept
- _hasAuthType :: AuthMethod authMethod => SwaggerPetstoreRequest req contentType res accept -> Proxy authMethod -> SwaggerPetstoreRequest req contentType res accept
- toPath :: ToHttpApiData a => a -> ByteString
- toHeader :: ToHttpApiData a => (HeaderName, a) -> [Header]
- toForm :: ToHttpApiData v => (ByteString, v) -> Form
- toQuery :: ToHttpApiData a => (ByteString, Maybe a) -> [QueryItem]
- data CollectionFormat
  - = CommaSeparated
  - | SpaceSeparated
  - | TabSeparated
  - | PipeSeparated
  - | MultiParamArray
- toHeaderColl :: ToHttpApiData a => CollectionFormat -> (HeaderName, [a]) -> [Header]
- toFormColl :: ToHttpApiData v => CollectionFormat -> (ByteString, [v]) -> Form
- toQueryColl :: ToHttpApiData a => CollectionFormat -> (ByteString, Maybe [a]) -> Query
- _toColl :: Traversable f => CollectionFormat -> (f a -> [(b, ByteString)]) -> f [a] -> [(b, ByteString)]
- _toCollA :: (Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t ByteString)]) -> f (t [a]) -> [(b, t ByteString)]
- _toCollA' :: (Monoid c, Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t c)]) -> (Char -> c) -> f (t [a]) -> [(b, t c)]
- class Typeable a => AuthMethod a where
- data AnyAuthMethod = AuthMethod a => AnyAuthMethod a
- data AuthMethodException = AuthMethodException String
- _applyAuthMethods :: SwaggerPetstoreRequest req contentType res accept -> SwaggerPetstoreConfig -> IO (SwaggerPetstoreRequest req contentType res accept)
- _omitNulls :: [(Text, Value)] -> Value
- _toFormItem :: (ToHttpApiData a, Functor f) => t -> f a -> f (t, [Text])
- _emptyToNothing :: Maybe String -> Maybe String
- _memptyToNothing :: (Monoid a, Eq a) => Maybe a -> Maybe a
- newtype DateTime = DateTime {
  - unDateTime :: UTCTime
  }
- _readDateTime :: (ParseTime t, Monad m, Alternative m) => String -> m t
- _showDateTime :: (t ~ UTCTime, FormatTime t) => t -> String
- _parseISO8601 :: (ParseTime t, Monad m, Alternative m) => String -> m t
- newtype Date = Date {
  - unDate :: Day
  }
- _readDate :: (ParseTime t, Monad m) => String -> m t
- _showDate :: FormatTime t => t -> String
- newtype ByteArray = ByteArray {
  - unByteArray :: ByteString
  }
- _readByteArray :: Monad m => Text -> m ByteArray
- _showByteArray :: ByteArray -> Text
- newtype Binary = Binary {
  - unBinary :: ByteString
  }
- _readBinaryBase64 :: Monad m => Text -> m Binary
- _showBinaryBase64 :: Binary -> Text
- type Lens_' s a = Lens_ s s a a
- type Lens_ s t a b = forall f. Functor f => (a -> f b) -> s -> f t

# SwaggerPetstoreConfig

data SwaggerPetstoreConfig Source #

Constructors

SwaggerPetstoreConfig |
Fields configHost :: ByteString host supplied in the Request configUserAgent :: Text user-agent supplied in the Request configLogExecWithContext :: LogExecWithContext Run a block using a Logger instance configLogContext :: LogContext Configures the logger configAuthMethods :: [AnyAuthMethod] List of configured auth methods configValidateAuthMethods :: Bool throw exceptions if auth methods are not configured

Instances

Show SwaggerPetstoreConfig Source # | display the config
Methods showsPrec :: Int -> SwaggerPetstoreConfig -> ShowS # show :: SwaggerPetstoreConfig -> String # showList :: [SwaggerPetstoreConfig] -> ShowS #

newConfig :: IO SwaggerPetstoreConfig Source #

constructs a default SwaggerPetstoreConfig

configHost:

    http://petstore.swagger.io:80/v2

configUserAgent:

    "swagger-haskell-http-client/1.0.0"

addAuthMethod :: AuthMethod auth => SwaggerPetstoreConfig -> auth -> SwaggerPetstoreConfig Source #

updates config use AuthMethod on matching requests

withStdoutLogging :: SwaggerPetstoreConfig -> IO SwaggerPetstoreConfig Source #

updates the config to use stdout logging

withStderrLogging :: SwaggerPetstoreConfig -> IO SwaggerPetstoreConfig Source #

updates the config to use stderr logging

withNoLogging :: SwaggerPetstoreConfig -> SwaggerPetstoreConfig Source #

updates the config to disable logging

# SwaggerPetstoreRequest

data SwaggerPetstoreRequest req contentType res accept Source #

Represents a request.

Type Variables:

- req - request operation
- contentType - `MimeType` associated with request body
- res - response model
- accept - `MimeType` associated with response body

Constructors

SwaggerPetstoreRequest |
Fields rMethod :: Method Method of SwaggerPetstoreRequest rUrlPath :: [ByteString] Endpoint of SwaggerPetstoreRequest rParams :: Params params of SwaggerPetstoreRequest rAuthTypes :: [TypeRep] types of auth methods

Instances

Show (SwaggerPetstoreRequest req contentType res accept) Source # |
Methods showsPrec :: Int -> SwaggerPetstoreRequest req contentType res accept -> ShowS # show :: SwaggerPetstoreRequest req contentType res accept -> String # showList :: [SwaggerPetstoreRequest req contentType res accept] -> ShowS #

rMethodL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) Method Source #

`rMethod` Lens

rUrlPathL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) [ByteString] Source #

`rUrlPath` Lens

rParamsL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) Params Source #

`rParams` Lens

rAuthTypesL :: Lens_' (SwaggerPetstoreRequest req contentType res accept) [TypeRep] Source #

`rParams` Lens

# HasBodyParam

class HasBodyParam req param where Source #

Designates the body parameter of a request

Methods

setBodyParam :: forall contentType res accept. (Consumes req contentType, MimeRender contentType param) => SwaggerPetstoreRequest req contentType res accept -> param -> SwaggerPetstoreRequest req contentType res accept Source #

Instances

HasBodyParam UpdateUser User Source # | Body Param "body" - Updated user object
Methods setBodyParam :: (Consumes UpdateUser contentType, MimeRender contentType User) => SwaggerPetstoreRequest UpdateUser contentType res accept -> User -> SwaggerPetstoreRequest UpdateUser contentType res accept Source #
HasBodyParam CreateUsersWithListInput Body Source # | Body Param "body" - List of user object
Methods setBodyParam :: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body) => SwaggerPetstoreRequest CreateUsersWithListInput contentType res accept -> Body -> SwaggerPetstoreRequest CreateUsersWithListInput contentType res accept Source #
HasBodyParam CreateUsersWithArrayInput Body Source # | Body Param "body" - List of user object
Methods setBodyParam :: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body) => SwaggerPetstoreRequest CreateUsersWithArrayInput contentType res accept -> Body -> SwaggerPetstoreRequest CreateUsersWithArrayInput contentType res accept Source #
HasBodyParam CreateUser User Source # | Body Param "body" - Created user object
Methods setBodyParam :: (Consumes CreateUser contentType, MimeRender contentType User) => SwaggerPetstoreRequest CreateUser contentType res accept -> User -> SwaggerPetstoreRequest CreateUser contentType res accept Source #
HasBodyParam PlaceOrder Order Source # | Body Param "body" - order placed for purchasing the pet
Methods setBodyParam :: (Consumes PlaceOrder contentType, MimeRender contentType Order) => SwaggerPetstoreRequest PlaceOrder contentType res accept -> Order -> SwaggerPetstoreRequest PlaceOrder contentType res accept Source #
HasBodyParam UpdatePet Pet Source # | Body Param "body" - Pet object that needs to be added to the store
Methods setBodyParam :: (Consumes UpdatePet contentType, MimeRender contentType Pet) => SwaggerPetstoreRequest UpdatePet contentType res accept -> Pet -> SwaggerPetstoreRequest UpdatePet contentType res accept Source #
HasBodyParam AddPet Pet Source # | Body Param "body" - Pet object that needs to be added to the store
Methods setBodyParam :: (Consumes AddPet contentType, MimeRender contentType Pet) => SwaggerPetstoreRequest AddPet contentType res accept -> Pet -> SwaggerPetstoreRequest AddPet contentType res accept Source #
HasBodyParam TestClassname Client Source # | Body Param "body" - client model
Methods setBodyParam :: (Consumes TestClassname contentType, MimeRender contentType Client) => SwaggerPetstoreRequest TestClassname contentType res accept -> Client -> SwaggerPetstoreRequest TestClassname contentType res accept Source #
HasBodyParam TestInlineAdditionalProperties Value Source # | Body Param "param" - request body
Methods setBodyParam :: (Consumes TestInlineAdditionalProperties contentType, MimeRender contentType Value) => SwaggerPetstoreRequest TestInlineAdditionalProperties contentType res accept -> Value -> SwaggerPetstoreRequest TestInlineAdditionalProperties contentType res accept Source #
HasBodyParam TestClientModel Client Source # | Body Param "body" - client model
Methods setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => SwaggerPetstoreRequest TestClientModel contentType res accept -> Client -> SwaggerPetstoreRequest TestClientModel contentType res accept Source #
HasBodyParam FakeOuterStringSerialize OuterString Source # | Body Param "body" - Input string as post body
Methods setBodyParam :: (Consumes FakeOuterStringSerialize contentType, MimeRender contentType OuterString) => SwaggerPetstoreRequest FakeOuterStringSerialize contentType res accept -> OuterString -> SwaggerPetstoreRequest FakeOuterStringSerialize contentType res accept Source #
HasBodyParam FakeOuterNumberSerialize OuterNumber Source # | Body Param "body" - Input number as post body
Methods setBodyParam :: (Consumes FakeOuterNumberSerialize contentType, MimeRender contentType OuterNumber) => SwaggerPetstoreRequest FakeOuterNumberSerialize contentType res accept -> OuterNumber -> SwaggerPetstoreRequest FakeOuterNumberSerialize contentType res accept Source #
HasBodyParam FakeOuterCompositeSerialize OuterComposite Source # | Body Param "body" - Input composite as post body
Methods setBodyParam :: (Consumes FakeOuterCompositeSerialize contentType, MimeRender contentType OuterComposite) => SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType res accept -> OuterComposite -> SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType res accept Source #
HasBodyParam FakeOuterBooleanSerialize OuterBoolean Source # | Body Param "body" - Input boolean as post body
Methods setBodyParam :: (Consumes FakeOuterBooleanSerialize contentType, MimeRender contentType OuterBoolean) => SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType res accept -> OuterBoolean -> SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType res accept Source #
HasBodyParam TestSpecialTags Client Source # | Body Param "body" - client model
Methods setBodyParam :: (Consumes TestSpecialTags contentType, MimeRender contentType Client) => SwaggerPetstoreRequest TestSpecialTags contentType res accept -> Client -> SwaggerPetstoreRequest TestSpecialTags contentType res accept Source #

# HasOptionalParam

class HasOptionalParam req param where Source #

Designates the optional parameters of a request

Minimal complete definition

applyOptionalParam | (-&-)

Methods

applyOptionalParam :: SwaggerPetstoreRequest req contentType res accept -> param -> SwaggerPetstoreRequest req contentType res accept Source #

Apply an optional parameter to a request

(-&-) :: SwaggerPetstoreRequest req contentType res accept -> param -> SwaggerPetstoreRequest req contentType res accept infixl 2 Source #

infix operator / alias for `addOptionalParam`

Instances

HasOptionalParam UploadFile File Source # | Optional Param "file" - file to upload
Methods applyOptionalParam :: SwaggerPetstoreRequest UploadFile contentType res accept -> File -> SwaggerPetstoreRequest UploadFile contentType res accept Source # (-&-) :: SwaggerPetstoreRequest UploadFile contentType res accept -> File -> SwaggerPetstoreRequest UploadFile contentType res accept Source #
HasOptionalParam UploadFile AdditionalMetadata Source # | Optional Param "additionalMetadata" - Additional data to pass to server
Methods applyOptionalParam :: SwaggerPetstoreRequest UploadFile contentType res accept -> AdditionalMetadata -> SwaggerPetstoreRequest UploadFile contentType res accept Source # (-&-) :: SwaggerPetstoreRequest UploadFile contentType res accept -> AdditionalMetadata -> SwaggerPetstoreRequest UploadFile contentType res accept Source #
HasOptionalParam UpdatePetWithForm StatusText Source # | Optional Param "status" - Updated status of the pet
Methods applyOptionalParam :: SwaggerPetstoreRequest UpdatePetWithForm contentType res accept -> StatusText -> SwaggerPetstoreRequest UpdatePetWithForm contentType res accept Source # (-&-) :: SwaggerPetstoreRequest UpdatePetWithForm contentType res accept -> StatusText -> SwaggerPetstoreRequest UpdatePetWithForm contentType res accept Source #
HasOptionalParam UpdatePetWithForm Name2 Source # | Optional Param "name" - Updated name of the pet
Methods applyOptionalParam :: SwaggerPetstoreRequest UpdatePetWithForm contentType res accept -> Name2 -> SwaggerPetstoreRequest UpdatePetWithForm contentType res accept Source # (-&-) :: SwaggerPetstoreRequest UpdatePetWithForm contentType res accept -> Name2 -> SwaggerPetstoreRequest UpdatePetWithForm contentType res accept Source #
HasOptionalParam DeletePet ApiKey Source # |
Methods applyOptionalParam :: SwaggerPetstoreRequest DeletePet contentType res accept -> ApiKey -> SwaggerPetstoreRequest DeletePet contentType res accept Source # (-&-) :: SwaggerPetstoreRequest DeletePet contentType res accept -> ApiKey -> SwaggerPetstoreRequest DeletePet contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryStringArray Source # | Optional Param "enum_query_string_array" - Query parameter enum test (string array)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryString Source # | Optional Param "enum_query_string" - Query parameter enum test (string)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryInteger Source # | Optional Param "enum_query_integer" - Query parameter enum test (double)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryDouble Source # | Optional Param "enum_query_double" - Query parameter enum test (double)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumHeaderStringArray Source # | Optional Param "enum_header_string_array" - Header parameter enum test (string array)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumHeaderString Source # | Optional Param "enum_header_string" - Header parameter enum test (string)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumFormStringArray Source # | Optional Param "enum_form_string_array" - Form parameter enum test (string array)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumFormString Source # | Optional Param "enum_form_string" - Form parameter enum test (string)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Password Source # | Optional Param "password" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Password -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Password -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamString Source # | Optional Param "string" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamInteger Source # | Optional Param "integer" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamFloat Source # | Optional Param "float" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDateTime Source # | Optional Param "dateTime" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDate Source # | Optional Param "date" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamBinary Source # | Optional Param "binary" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int64 Source # | Optional Param "int64" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int32 Source # | Optional Param "int32" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Callback Source # | Optional Param "callback" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #

data Params Source #

Request Params

Constructors

Params |
Fields paramsQuery :: Query paramsHeaders :: RequestHeaders paramsBody :: ParamBody

Instances

Show Params Source # |
Methods showsPrec :: Int -> Params -> ShowS # show :: Params -> String # showList :: [Params] -> ShowS #

paramsQueryL :: Lens_' Params Query Source #

`paramsQuery` Lens

paramsHeadersL :: Lens_' Params RequestHeaders Source #

`paramsHeaders` Lens

paramsBodyL :: Lens_' Params ParamBody Source #

`paramsBody` Lens

data ParamBody Source #

Request Body

Constructors

ParamBodyNone |
ParamBodyB ByteString |
ParamBodyBL ByteString |
ParamBodyFormUrlEncoded Form |
ParamBodyMultipartFormData [Part] |

Instances

Show ParamBody Source # |
Methods showsPrec :: Int -> ParamBody -> ShowS # show :: ParamBody -> String # showList :: [ParamBody] -> ShowS #

## SwaggerPetstoreRequest Utils

_mkRequest Source #

Arguments

:: Method | Method
-> [ByteString] | Endpoint
-> SwaggerPetstoreRequest req contentType res accept | req: Request Type, res: Response Type

_mkParams :: Params Source #

setHeader :: SwaggerPetstoreRequest req contentType res accept -> [Header] -> SwaggerPetstoreRequest req contentType res accept Source #

removeHeader :: SwaggerPetstoreRequest req contentType res accept -> [HeaderName] -> SwaggerPetstoreRequest req contentType res accept Source #

_setContentTypeHeader :: forall req contentType res accept. MimeType contentType => SwaggerPetstoreRequest req contentType res accept -> SwaggerPetstoreRequest req contentType res accept Source #

_setAcceptHeader :: forall req contentType res accept. MimeType accept => SwaggerPetstoreRequest req contentType res accept -> SwaggerPetstoreRequest req contentType res accept Source #

setQuery :: SwaggerPetstoreRequest req contentType res accept -> [QueryItem] -> SwaggerPetstoreRequest req contentType res accept Source #

addForm :: SwaggerPetstoreRequest req contentType res accept -> Form -> SwaggerPetstoreRequest req contentType res accept Source #

_addMultiFormPart :: SwaggerPetstoreRequest req contentType res accept -> Part -> SwaggerPetstoreRequest req contentType res accept Source #

_setBodyBS :: SwaggerPetstoreRequest req contentType res accept -> ByteString -> SwaggerPetstoreRequest req contentType res accept Source #

_setBodyLBS :: SwaggerPetstoreRequest req contentType res accept -> ByteString -> SwaggerPetstoreRequest req contentType res accept Source #

_hasAuthType :: AuthMethod authMethod => SwaggerPetstoreRequest req contentType res accept -> Proxy authMethod -> SwaggerPetstoreRequest req contentType res accept Source #

## Params Utils

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

toHeader :: ToHttpApiData a => (HeaderName, a) -> [Header] Source #

toForm :: ToHttpApiData v => (ByteString, v) -> Form Source #

toQuery :: ToHttpApiData a => (ByteString, Maybe a) -> [QueryItem] Source #

### Swagger `CollectionFormat` Utils

data CollectionFormat Source #

Determines the format of the array if type array is used.

Constructors

CommaSeparated | CSV format for multiple parameters.
SpaceSeparated | Also called SSV
TabSeparated | Also called TSV
PipeSeparated | `value1|value2|value2`
MultiParamArray | Using multiple GET parameters, e.g. `foo=bar&foo=baz`. This is valid only for parameters in "query" (`Query`) or "formData" (`Form`)

toHeaderColl :: ToHttpApiData a => CollectionFormat -> (HeaderName, [a]) -> [Header] Source #

toFormColl :: ToHttpApiData v => CollectionFormat -> (ByteString, [v]) -> Form Source #

toQueryColl :: ToHttpApiData a => CollectionFormat -> (ByteString, Maybe [a]) -> Query Source #

_toColl :: Traversable f => CollectionFormat -> (f a -> [(b, ByteString)]) -> f [a] -> [(b, ByteString)] Source #

_toCollA :: (Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t ByteString)]) -> f (t [a]) -> [(b, t ByteString)] Source #

_toCollA' :: (Monoid c, Traversable f, Traversable t, Alternative t) => CollectionFormat -> (f (t a) -> [(b, t c)]) -> (Char -> c) -> f (t [a]) -> [(b, t c)] Source #

# AuthMethods

class Typeable a => AuthMethod a where Source #

Provides a method to apply auth methods to requests

Minimal complete definition

applyAuthMethod

Methods

applyAuthMethod :: SwaggerPetstoreConfig -> a -> SwaggerPetstoreRequest req contentType res accept -> IO (SwaggerPetstoreRequest req contentType res accept) Source #

Instances

AuthMethod AnyAuthMethod Source # |
Methods applyAuthMethod :: SwaggerPetstoreConfig -> AnyAuthMethod -> SwaggerPetstoreRequest req contentType res accept -> IO (SwaggerPetstoreRequest req contentType res accept) Source #
AuthMethod AuthOAuthPetstoreAuth Source # |
Methods applyAuthMethod :: SwaggerPetstoreConfig -> AuthOAuthPetstoreAuth -> SwaggerPetstoreRequest req contentType res accept -> IO (SwaggerPetstoreRequest req contentType res accept) Source #
AuthMethod AuthBasicHttpBasicTest Source # |
Methods applyAuthMethod :: SwaggerPetstoreConfig -> AuthBasicHttpBasicTest -> SwaggerPetstoreRequest req contentType res accept -> IO (SwaggerPetstoreRequest req contentType res accept) Source #
AuthMethod AuthApiKeyApiKeyQuery Source # |
Methods applyAuthMethod :: SwaggerPetstoreConfig -> AuthApiKeyApiKeyQuery -> SwaggerPetstoreRequest req contentType res accept -> IO (SwaggerPetstoreRequest req contentType res accept) Source #
AuthMethod AuthApiKeyApiKey Source # |
Methods applyAuthMethod :: SwaggerPetstoreConfig -> AuthApiKeyApiKey -> SwaggerPetstoreRequest req contentType res accept -> IO (SwaggerPetstoreRequest req contentType res accept) Source #

data AnyAuthMethod Source #

An existential wrapper for any AuthMethod

Constructors

AuthMethod a => AnyAuthMethod a |

Instances

AuthMethod AnyAuthMethod Source # |
Methods applyAuthMethod :: SwaggerPetstoreConfig -> AnyAuthMethod -> SwaggerPetstoreRequest req contentType res accept -> IO (SwaggerPetstoreRequest req contentType res accept) Source #

data AuthMethodException Source #

indicates exceptions related to AuthMethods

Constructors

AuthMethodException String |

Instances

Show AuthMethodException Source # |
Methods showsPrec :: Int -> AuthMethodException -> ShowS # show :: AuthMethodException -> String # showList :: [AuthMethodException] -> ShowS #
Exception AuthMethodException Source # |
Methods toException :: AuthMethodException -> SomeException # fromException :: SomeException -> Maybe AuthMethodException # displayException :: AuthMethodException -> String #

_applyAuthMethods :: SwaggerPetstoreRequest req contentType res accept -> SwaggerPetstoreConfig -> IO (SwaggerPetstoreRequest req contentType res accept) Source #

apply all matching AuthMethods in config to request

# Utils

_omitNulls :: [(Text, Value)] -> Value Source #

Removes Null fields. (OpenAPI-Specification 2.0 does not allow Null in JSON)

_toFormItem :: (ToHttpApiData a, Functor f) => t -> f a -> f (t, [Text]) Source #

Encodes fields using WH.toQueryParam

_emptyToNothing :: Maybe String -> Maybe String Source #

Collapse (Just "") to Nothing

_memptyToNothing :: (Monoid a, Eq a) => Maybe a -> Maybe a Source #

Collapse (Just mempty) to Nothing

# DateTime Formatting

newtype DateTime Source #

Constructors

DateTime |
Fields unDateTime :: UTCTime

Instances

Eq DateTime Source # |
Methods (==) :: DateTime -> DateTime -> Bool # (/=) :: DateTime -> DateTime -> Bool #
Data DateTime Source # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DateTime -> c DateTime # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DateTime # toConstr :: DateTime -> Constr # dataTypeOf :: DateTime -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DateTime) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DateTime) # gmapT :: (forall b. Data b => b -> b) -> DateTime -> DateTime # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DateTime -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DateTime -> r # gmapQ :: (forall d. Data d => d -> u) -> DateTime -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> DateTime -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> DateTime -> m DateTime # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DateTime -> m DateTime # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DateTime -> m DateTime #
Ord DateTime Source # |
Methods compare :: DateTime -> DateTime -> Ordering # (<) :: DateTime -> DateTime -> Bool # (<=) :: DateTime -> DateTime -> Bool # (>) :: DateTime -> DateTime -> Bool # (>=) :: DateTime -> DateTime -> Bool # max :: DateTime -> DateTime -> DateTime # min :: DateTime -> DateTime -> DateTime #
Show DateTime Source # |
Methods showsPrec :: Int -> DateTime -> ShowS # show :: DateTime -> String # showList :: [DateTime] -> ShowS #
ToJSON DateTime Source # |
Methods toJSON :: DateTime -> Value # toEncoding :: DateTime -> Encoding # toJSONList :: [DateTime] -> Value # toEncodingList :: [DateTime] -> Encoding #
FromJSON DateTime Source # |
Methods parseJSON :: Value -> Parser DateTime # parseJSONList :: Value -> Parser [DateTime] #
NFData DateTime Source # |
Methods rnf :: DateTime -> () #
ToHttpApiData DateTime Source # |
Methods toUrlPiece :: DateTime -> Text # toEncodedUrlPiece :: DateTime -> Builder # toHeader :: DateTime -> ByteString # toQueryParam :: DateTime -> Text #
FromHttpApiData DateTime Source # |
Methods parseUrlPiece :: Text -> Either Text DateTime # parseHeader :: ByteString -> Either Text DateTime # parseQueryParam :: Text -> Either Text DateTime #
FormatTime DateTime Source # |
Methods formatCharacter :: Char -> Maybe (TimeLocale -> Maybe NumericPadOption -> DateTime -> String) #
ParseTime DateTime Source # |
Methods buildTime :: TimeLocale -> [(Char, String)] -> Maybe DateTime #
MimeRender MimeMultipartFormData DateTime Source # |
Methods mimeRender :: Proxy * MimeMultipartFormData -> DateTime -> ByteString Source # mimeRender' :: MimeMultipartFormData -> DateTime -> ByteString Source #

_readDateTime :: (ParseTime t, Monad m, Alternative m) => String -> m t Source #

    _parseISO8601

_showDateTime :: (t ~ UTCTime, FormatTime t) => t -> String Source #

    TI.formatISO8601Millis

_parseISO8601 :: (ParseTime t, Monad m, Alternative m) => String -> m t Source #

parse an ISO8601 date-time string

# Date Formatting

newtype Date Source #

Constructors

Date |
Fields unDate :: Day

Instances

Enum Date Source # |
Methods succ :: Date -> Date # pred :: Date -> Date # toEnum :: Int -> Date # fromEnum :: Date -> Int # enumFrom :: Date -> [Date] # enumFromThen :: Date -> Date -> [Date] # enumFromTo :: Date -> Date -> [Date] # enumFromThenTo :: Date -> Date -> Date -> [Date] #
Eq Date Source # |
Methods (==) :: Date -> Date -> Bool # (/=) :: Date -> Date -> Bool #
Data Date Source # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Date -> c Date # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Date # toConstr :: Date -> Constr # dataTypeOf :: Date -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Date) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Date) # gmapT :: (forall b. Data b => b -> b) -> Date -> Date # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Date -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Date -> r # gmapQ :: (forall d. Data d => d -> u) -> Date -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Date -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Date -> m Date # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Date -> m Date # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Date -> m Date #
Ord Date Source # |
Methods compare :: Date -> Date -> Ordering # (<) :: Date -> Date -> Bool # (<=) :: Date -> Date -> Bool # (>) :: Date -> Date -> Bool # (>=) :: Date -> Date -> Bool # max :: Date -> Date -> Date # min :: Date -> Date -> Date #
Show Date Source # |
Methods showsPrec :: Int -> Date -> ShowS # show :: Date -> String # showList :: [Date] -> ShowS #
Ix Date Source # |
Methods range :: (Date, Date) -> [Date] # index :: (Date, Date) -> Date -> Int # unsafeIndex :: (Date, Date) -> Date -> Int inRange :: (Date, Date) -> Date -> Bool # rangeSize :: (Date, Date) -> Int # unsafeRangeSize :: (Date, Date) -> Int
ToJSON Date Source # |
Methods toJSON :: Date -> Value # toEncoding :: Date -> Encoding # toJSONList :: [Date] -> Value # toEncodingList :: [Date] -> Encoding #
FromJSON Date Source # |
Methods parseJSON :: Value -> Parser Date # parseJSONList :: Value -> Parser [Date] #
NFData Date Source # |
Methods rnf :: Date -> () #
ToHttpApiData Date Source # |
Methods toUrlPiece :: Date -> Text # toEncodedUrlPiece :: Date -> Builder # toHeader :: Date -> ByteString # toQueryParam :: Date -> Text #
FromHttpApiData Date Source # |
Methods parseUrlPiece :: Text -> Either Text Date # parseHeader :: ByteString -> Either Text Date # parseQueryParam :: Text -> Either Text Date #
FormatTime Date Source # |
Methods formatCharacter :: Char -> Maybe (TimeLocale -> Maybe NumericPadOption -> Date -> String) #
ParseTime Date Source # |
Methods buildTime :: TimeLocale -> [(Char, String)] -> Maybe Date #
MimeRender MimeMultipartFormData Date Source # |
Methods mimeRender :: Proxy * MimeMultipartFormData -> Date -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Date -> ByteString Source #

_readDate :: (ParseTime t, Monad m) => String -> m t Source #

    TI.parseTimeM True TI.defaultTimeLocale "%Y-%m-%d"

_showDate :: FormatTime t => t -> String Source #

    TI.formatTime TI.defaultTimeLocale "%Y-%m-%d"

# Byte/Binary Formatting

newtype ByteArray Source #

base64 encoded characters

Constructors

ByteArray |
Fields unByteArray :: ByteString

Instances

Eq ByteArray Source # |
Methods (==) :: ByteArray -> ByteArray -> Bool # (/=) :: ByteArray -> ByteArray -> Bool #
Data ByteArray Source # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ByteArray -> c ByteArray # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ByteArray # toConstr :: ByteArray -> Constr # dataTypeOf :: ByteArray -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ByteArray) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ByteArray) # gmapT :: (forall b. Data b => b -> b) -> ByteArray -> ByteArray # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ByteArray -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ByteArray -> r # gmapQ :: (forall d. Data d => d -> u) -> ByteArray -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ByteArray -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ByteArray -> m ByteArray #
Ord ByteArray Source # |
Methods compare :: ByteArray -> ByteArray -> Ordering # (<) :: ByteArray -> ByteArray -> Bool # (<=) :: ByteArray -> ByteArray -> Bool # (>) :: ByteArray -> ByteArray -> Bool # (>=) :: ByteArray -> ByteArray -> Bool # max :: ByteArray -> ByteArray -> ByteArray # min :: ByteArray -> ByteArray -> ByteArray #
Show ByteArray Source # |
Methods showsPrec :: Int -> ByteArray -> ShowS # show :: ByteArray -> String # showList :: [ByteArray] -> ShowS #
ToJSON ByteArray Source # |
Methods toJSON :: ByteArray -> Value # toEncoding :: ByteArray -> Encoding # toJSONList :: [ByteArray] -> Value # toEncodingList :: [ByteArray] -> Encoding #
FromJSON ByteArray Source # |
Methods parseJSON :: Value -> Parser ByteArray # parseJSONList :: Value -> Parser [ByteArray] #
NFData ByteArray Source # |
Methods rnf :: ByteArray -> () #
ToHttpApiData ByteArray Source # |
Methods toUrlPiece :: ByteArray -> Text # toEncodedUrlPiece :: ByteArray -> Builder # toHeader :: ByteArray -> ByteString # toQueryParam :: ByteArray -> Text #
FromHttpApiData ByteArray Source # |
Methods parseUrlPiece :: Text -> Either Text ByteArray # parseHeader :: ByteString -> Either Text ByteArray # parseQueryParam :: Text -> Either Text ByteArray #
MimeRender MimeMultipartFormData ByteArray Source # |
Methods mimeRender :: Proxy * MimeMultipartFormData -> ByteArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteArray -> ByteString Source #

_readByteArray :: Monad m => Text -> m ByteArray Source #

read base64 encoded characters

_showByteArray :: ByteArray -> Text Source #

show base64 encoded characters

newtype Binary Source #

any sequence of octets

Constructors

Binary |
Fields unBinary :: ByteString

Instances

Eq Binary Source # |
Methods (==) :: Binary -> Binary -> Bool # (/=) :: Binary -> Binary -> Bool #
Data Binary Source # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Binary -> c Binary # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Binary # toConstr :: Binary -> Constr # dataTypeOf :: Binary -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Binary) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Binary) # gmapT :: (forall b. Data b => b -> b) -> Binary -> Binary # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Binary -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Binary -> r # gmapQ :: (forall d. Data d => d -> u) -> Binary -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Binary -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Binary -> m Binary # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Binary -> m Binary # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Binary -> m Binary #
Ord Binary Source # |
Methods compare :: Binary -> Binary -> Ordering # (<) :: Binary -> Binary -> Bool # (<=) :: Binary -> Binary -> Bool # (>) :: Binary -> Binary -> Bool # (>=) :: Binary -> Binary -> Bool # max :: Binary -> Binary -> Binary # min :: Binary -> Binary -> Binary #
Show Binary Source # |
Methods showsPrec :: Int -> Binary -> ShowS # show :: Binary -> String # showList :: [Binary] -> ShowS #
ToJSON Binary Source # |
Methods toJSON :: Binary -> Value # toEncoding :: Binary -> Encoding # toJSONList :: [Binary] -> Value # toEncodingList :: [Binary] -> Encoding #
FromJSON Binary Source # |
Methods parseJSON :: Value -> Parser Binary # parseJSONList :: Value -> Parser [Binary] #
NFData Binary Source # |
Methods rnf :: Binary -> () #
ToHttpApiData Binary Source # |
Methods toUrlPiece :: Binary -> Text # toEncodedUrlPiece :: Binary -> Builder # toHeader :: Binary -> ByteString # toQueryParam :: Binary -> Text #
FromHttpApiData Binary Source # |
Methods parseUrlPiece :: Text -> Either Text Binary # parseHeader :: ByteString -> Either Text Binary # parseQueryParam :: Text -> Either Text Binary #
MimeRender MimeMultipartFormData Binary Source # |
Methods mimeRender :: Proxy * MimeMultipartFormData -> Binary -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Binary -> ByteString Source #

_readBinaryBase64 :: Monad m => Text -> m Binary Source #

_showBinaryBase64 :: Binary -> Text Source #

# Lens Type Aliases

type Lens_' s a = Lens_ s s a a Source #

type Lens_ s t a b = forall f. Functor f => (a -> f b) -> s -> f t Source #