Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ContentType a = MimeType a => ContentType {
- unContentType :: a
- data Accept a = MimeType a => Accept {
- unAccept :: a
- class MimeType mtype => Consumes req mtype
- class MimeType mtype => Produces req mtype
- data MimeJSON = MimeJSON
- data MimeXML = MimeXML
- data MimePlainText = MimePlainText
- data MimeFormUrlEncoded = MimeFormUrlEncoded
- data MimeMultipartFormData = MimeMultipartFormData
- data MimeOctetStream = MimeOctetStream
- data MimeNoContent = MimeNoContent
- data MimeAny = MimeAny
- data NoContent = NoContent
- class Typeable mtype => MimeType mtype where
- class MimeType mtype => MimeRender mtype x where
- mimeRender :: Proxy mtype -> x -> ByteString
- mimeRender' :: mtype -> x -> ByteString
- mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString
- class MimeType mtype => MimeUnrender mtype o where
- mimeUnrender :: Proxy mtype -> ByteString -> Either String o
- mimeUnrender' :: mtype -> ByteString -> Either String o
- data MimeJsonPatchjson = MimeJsonPatchjson
- data MimeJsonstreamwatch = MimeJsonstreamwatch
- data MimeMergePatchjson = MimeMergePatchjson
- data MimeStrategicMergePatchjson = MimeStrategicMergePatchjson
- data MimeVndKubernetesProtobuf = MimeVndKubernetesProtobuf
- data MimeVndKubernetesProtobufstreamwatch = MimeVndKubernetesProtobufstreamwatch
- data MimeYaml = MimeYaml
ContentType MimeType
data ContentType a Source #
MimeType a => ContentType | |
|
Accept MimeType
Consumes Class
class MimeType mtype => Consumes req mtype Source #
Instances
Produces Class
class MimeType mtype => Produces req mtype Source #
Instances
Default Mime Types
Instances
data MimePlainText Source #
Instances
data MimeFormUrlEncoded Source #
Instances
MimeType MimeFormUrlEncoded Source # | application/x-www-form-urlencoded |
Defined in Kubernetes.OpenAPI.MimeTypes 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 |
Defined in Kubernetes.OpenAPI.MimeTypes mimeUnrender :: Proxy MimeFormUrlEncoded -> ByteString -> Either String a Source # mimeUnrender' :: MimeFormUrlEncoded -> ByteString -> Either String a Source # | |
ToForm a => MimeRender MimeFormUrlEncoded a Source # | WH.urlEncodeAsForm |
Defined in Kubernetes.OpenAPI.MimeTypes mimeRender :: Proxy MimeFormUrlEncoded -> a -> ByteString Source # mimeRender' :: MimeFormUrlEncoded -> a -> ByteString Source # |
data MimeMultipartFormData Source #
Instances
data MimeOctetStream Source #
Instances
data MimeNoContent Source #
Instances
MimeType MimeNoContent Source # | |
Defined in Kubernetes.OpenAPI.MimeTypes mimeTypes :: Proxy MimeNoContent -> [MediaType] Source # mimeType :: Proxy MimeNoContent -> Maybe MediaType Source # mimeType' :: MimeNoContent -> Maybe MediaType Source # mimeTypes' :: MimeNoContent -> [MediaType] Source # | |
MimeUnrender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in Kubernetes.OpenAPI.MimeTypes mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source # | |
MimeRender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in Kubernetes.OpenAPI.MimeTypes mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source # | |
Produces LogFileListHandler MimeNoContent Source # | |
Defined in Kubernetes.OpenAPI.API.Logs | |
Produces LogFileHandler MimeNoContent Source # | |
Defined in Kubernetes.OpenAPI.API.Logs |
A type for responses without content-body.
Instances
Eq NoContent Source # | |
Show NoContent Source # | |
MimeUnrender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in Kubernetes.OpenAPI.MimeTypes mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source # | |
MimeRender MimeNoContent NoContent Source # | P.Right . P.const NoContent |
Defined in Kubernetes.OpenAPI.MimeTypes mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source # |
MimeType Class
class Typeable mtype => MimeType mtype where Source #
mimeTypes :: Proxy mtype -> [MediaType] Source #
mimeType :: Proxy mtype -> Maybe MediaType Source #
mimeType' :: mtype -> Maybe MediaType Source #
mimeTypes' :: mtype -> [MediaType] Source #
Instances
MimeRender Class
class MimeType mtype => MimeRender mtype x where Source #
mimeRender :: Proxy mtype -> x -> ByteString Source #
mimeRender' :: mtype -> x -> ByteString Source #
Instances
mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString Source #
MimeUnrender Class
class MimeType mtype => MimeUnrender mtype o where Source #
mimeUnrender :: Proxy mtype -> ByteString -> Either String o Source #
mimeUnrender' :: mtype -> ByteString -> Either String o Source #
Instances
Custom Mime Types
MimeJsonPatchjson
data MimeJsonPatchjson Source #
Instances
MimeJsonstreamwatch
data MimeJsonstreamwatch Source #
Instances
MimeMergePatchjson
data MimeMergePatchjson Source #
Instances
MimeStrategicMergePatchjson
data MimeStrategicMergePatchjson Source #
Instances
MimeVndKubernetesProtobuf
data MimeVndKubernetesProtobuf Source #
Instances
MimeVndKubernetesProtobufstreamwatch
data MimeVndKubernetesProtobufstreamwatch Source #