Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Cache HTTP responses like a CDN or browser would
Documentation
data HttpCacheSettings m t Source #
data HttpCacheCodec t Source #
HttpCacheCodec | |
|
HttpCache | |
|
httpCached :: forall m t. MonadIO m => HttpCacheSettings m t -> (Request -> m (Response ByteString)) -> Request -> m (Response ByteString) Source #
data CachedResponse Source #
CachedResponse | |
|
Instances
Show CachedResponse Source # | |
Defined in Freckle.App.Http.Cache showsPrec :: Int -> CachedResponse -> ShowS # show :: CachedResponse -> String # showList :: [CachedResponse] -> ShowS # |
data PotentiallyGzipped a Source #
Instances
Show a => Show (PotentiallyGzipped a) Source # | |
Defined in Freckle.App.Http.Cache.Gzip showsPrec :: Int -> PotentiallyGzipped a -> ShowS # show :: PotentiallyGzipped a -> String # showList :: [PotentiallyGzipped a] -> ShowS # | |
Eq a => Eq (PotentiallyGzipped a) Source # | |
Defined in Freckle.App.Http.Cache.Gzip (==) :: PotentiallyGzipped a -> PotentiallyGzipped a -> Bool # (/=) :: PotentiallyGzipped a -> PotentiallyGzipped a -> Bool # | |
Serialise a => Serialise (PotentiallyGzipped a) Source # | |
Defined in Freckle.App.Http.Cache.Gzip encode :: PotentiallyGzipped a -> Encoding # decode :: Decoder s (PotentiallyGzipped a) # encodeList :: [PotentiallyGzipped a] -> Encoding # decodeList :: Decoder s [PotentiallyGzipped a] # |