Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data ContentType Source #
Enumeration of currently supported response content types
CTApplicationJSON | |
CTSingularJSON | |
CTTextCSV | |
CTTextPlain | |
CTOpenAPI | |
CTUrlEncoded | |
CTOctetStream | |
CTAny | |
CTOther ByteString |
Instances
Eq ContentType Source # | |
Defined in PostgREST.ContentType (==) :: ContentType -> ContentType -> Bool # (/=) :: ContentType -> ContentType -> Bool # |
toHeader :: ContentType -> Header Source #
Convert from ContentType to a full HTTP Header
toMime :: ContentType -> ByteString Source #
Convert from ContentType to a ByteString representing the mime type
decodeContentType :: ByteString -> ContentType Source #
Convert from ByteString to ContentType. Warning: discards MIME parameters