postgrest-9.0.1: REST API for any Postgres database
Safe HaskellNone
LanguageHaskell2010

PostgREST.ContentType

Synopsis

Documentation

data ContentType Source #

Enumeration of currently supported response content types

Instances

Instances details
Eq ContentType Source # 
Instance details

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