freckle-http-0.0.0.0: Toolkit for making HTTP requests
Safe HaskellNone
LanguageGHC2021

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 #

Instances

Instances details
Show CachedResponse Source # 
Instance details

Defined in Freckle.App.Http.Cache

newtype Cache Source #

Constructors

Cache 

Fields

Instances

Instances details
Monoid Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State

Methods

mempty :: Cache #

mappend :: Cache -> Cache -> Cache #

mconcat :: [Cache] -> Cache #

Semigroup Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State

Methods

(<>) :: Cache -> Cache -> Cache #

sconcat :: NonEmpty Cache -> Cache #

stimes :: Integral b => b -> Cache -> Cache #

HasCache Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State

class HasCache env where Source #

Methods

cacheL :: Lens' env Cache Source #

Instances

Instances details
HasCache Cache Source # 
Instance details

Defined in Freckle.App.Http.Cache.State