CacheStrategy

org.http4s.server.staticcontent.CacheStrategy
trait CacheStrategy[F[_]]

Cache the body of a Response for future use

A CacheStrategy acts like a after filter in that it can look at the Response and Uri of the Request and decide if the body for the response has already been cached, needs caching, or to let it pass through.

Attributes

Source:
CacheStrategy.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

def cache(uriPath: Path, resp: Response[F])(implicit F: Concurrent[F]): F[Response[F]]

Performs the caching operations

Performs the caching operations

Attributes

Source:
CacheStrategy.scala