Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 :: (MonadIO m, MonadState s m, HasCache s) => HttpCacheSettings m CachedResponse Source #
stateHttpCache :: (MonadIO m, MonadState s m, HasCache s) => HttpCache m CachedResponse Source #