| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Freckle.App.Http.Cache
Description
Cache HTTP responses like a CDN or browser would
Documentation
data HttpCacheSettings m t Source #
Constructors
| HttpCacheSettings | |
data HttpCacheCodec t Source #
Constructors
| HttpCacheCodec | |
Fields
| |
Constructors
| HttpCache | |
Fields
| |
httpCached :: forall m t. MonadIO m => HttpCacheSettings m t -> (Request -> m (Response ByteString)) -> Request -> m (Response ByteString) Source #
data CachedResponse Source #
Constructors
| CachedResponse | |
Fields
| |
Instances
| Show CachedResponse Source # | |
Defined in Freckle.App.Http.Cache Methods 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 Methods 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 Methods (==) :: PotentiallyGzipped a -> PotentiallyGzipped a -> Bool # (/=) :: PotentiallyGzipped a -> PotentiallyGzipped a -> Bool # | |
| Serialise a => Serialise (PotentiallyGzipped a) Source # | |
Defined in Freckle.App.Http.Cache.Gzip Methods encode :: PotentiallyGzipped a -> Encoding # decode :: Decoder s (PotentiallyGzipped a) # encodeList :: [PotentiallyGzipped a] -> Encoding # decodeList :: Decoder s [PotentiallyGzipped a] # | |