Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data CompressionType = CTGZip
- compressionTypeToTxt :: CompressionType -> Text
- compressResponse :: RequestHeaders -> ByteString -> (ByteString, Maybe Header, Maybe CompressionType)
- getAcceptedCompression :: RequestHeaders -> Maybe CompressionType
Documentation
data CompressionType Source #
Instances
Eq CompressionType Source # | |
Defined in Hasura.Server.Compression (==) :: CompressionType -> CompressionType -> Bool # (/=) :: CompressionType -> CompressionType -> Bool # | |
Show CompressionType Source # | |
Defined in Hasura.Server.Compression showsPrec :: Int -> CompressionType -> ShowS # show :: CompressionType -> String # showList :: [CompressionType] -> ShowS # |
compressionTypeToTxt :: CompressionType -> Text Source #
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