http4k / org.http4k.filter / CachingFilters / Response / MaxAge
object MaxAge
By default, only applies when the status code of the response is < 400. This is overridable.
Name | Summary |
---|---|
invoke | operator fun invoke(clock: Clock , maxAge: Duration , predicate: ( Response ) -> Boolean = { it.status.code < 400 }): Filter |