api

http4k / org.http4k.filter

Package org.http4k.filter

This is the base package for all Filter implementations.

Types

Name Summary
CacheControlHeaderPart open class CacheControlHeaderPart
CachingFilters object CachingFilters
Useful filters for applying Cache-Controls to request/responses
CanonicalPayload data class CanonicalPayload
ClientFilters object ClientFilters
CorsPolicy data class CorsPolicy
DebuggingFilters object DebuggingFilters
DefaultCacheTimings data class DefaultCacheTimings
GenerateDataClasses class GenerateDataClasses<out NODE> : Filter
This Filter is used to generate Data class definitions from a Response containing JSON. The Filter will try and reduce the number of class definitions by selecting the definition with the most fields (for cases where lists of items have different fields).
GenerateXmlDataClasses class GenerateXmlDataClasses : Filter
MaxAgeTtl data class MaxAgeTtl : CacheControlHeaderPart
MetricFilters object MetricFilters
Payload object Payload
RequestFilters object RequestFilters
ResilienceFilters object ResilienceFilters
ResponseFilters object ResponseFilters
SamplingDecision data class SamplingDecision
ServerFilters object ServerFilters
StaleIfErrorTtl data class StaleIfErrorTtl : CacheControlHeaderPart
StaleWhenRevalidateTtl data class StaleWhenRevalidateTtl : CacheControlHeaderPart
TraceId data class TraceId
TrafficFilters object TrafficFilters
ZipkinTraces data class ZipkinTraces

Type Aliases

Name Summary
HttpTransactionLabeller typealias HttpTransactionLabeller = (HttpTransaction) -> HttpTransaction

Functions

Name Summary
AwsAuth fun ClientFilters.AwsAuth(scope: AwsCredentialScope, credentials: AwsCredentials, clock: Clock = Clock.systemDefaultZone(), payloadMode: Mode = Payload.Mode.Signed): Filter
Sign AWS requests using static credentials.fun ClientFilters.AwsAuth(scope: AwsCredentialScope, credentialsProvider: () -> AwsCredentials, clock: Clock = Clock.systemDefaultZone(), payloadMode: Mode = Payload.Mode.Signed): Filter
Sign AWS requests using dynamically provided (expiring) credentials.
gunzipped fun Body.gunzipped(): Body
gzipped fun Body.gzipped(): Body