http4k / org.http4k.filter / CachingFilters / Response / AddETag
object AddETag
Hash algo stolen from http://stackoverflow.com/questions/26423662/scalatra-response-hmac-calulation By default, only applies when the status code of the response is < 400. This is overridable.
Name | Summary |
---|---|
invoke | operator fun invoke(predicate: ( Response ) -> Boolean = { it.status.code < 400 }): Filter |