| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Freckle.App.Http.Cache.State
Description
HTTP caching via MonadState
This module implements HTTP caching for simple use-cases, such as testing Freckle.App.Http.Cache itself.
Documentation
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 # | |
Constructors
| Cache | |
Fields
| |
stateHttpCacheSettings :: forall (m :: Type -> Type) s. (MonadIO m, MonadState s m, HasCache s) => HttpCacheSettings m CachedResponse Source #
stateHttpCache :: forall (m :: Type -> Type) s. (MonadIO m, MonadState s m, HasCache s) => HttpCache m CachedResponse Source #