| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PostgREST.ContentType
Synopsis
Documentation
data ContentType Source #
Enumeration of currently supported response content types
Constructors
| CTApplicationJSON | |
| CTSingularJSON | |
| CTTextCSV | |
| CTTextPlain | |
| CTOpenAPI | |
| CTUrlEncoded | |
| CTOctetStream | |
| CTAny | |
| CTOther ByteString |
Instances
| Eq ContentType Source # | |
Defined in PostgREST.ContentType | |
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