graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.Server.Compression

Synopsis

Documentation

compressResponse :: RequestHeaders -> ByteString -> (ByteString, Maybe Header, Maybe CompressionType) Source #

Maybe compress the response body

getAcceptedCompression :: RequestHeaders -> Maybe CompressionType Source #

Which, if any, compressed encodings can the client accept?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding