freckle-app-1.15.2.0: Haskell application toolkit used at Freckle
Safe HaskellSafe-Inferred
LanguageHaskell2010

Freckle.App.Http.Cache.Gzip

Description

Type and functions for handling gzipped HTTP responses

In order to optimize caching of responses in storage with size limitations, we cache gzipped responses as-is. This requires disabling the automatic decompression of http-client and handling it ourselves.

The module makes that a type-enforced process:

Synopsis

Documentation

requestPotentiallyGzipped :: Functor m => (Request -> m (Response body)) -> Request -> m (Response (PotentiallyGzipped body)) Source #

Run a request without automatic decompress and tag the body type