api

http4k / org.http4k.filter / ResponseFilters

ResponseFilters

object ResponseFilters (source)

Types

Name Summary
GunZip object GunZip
Basic UnGZipping of Response. Does not currently support GZipping streams
GZip object GZip
Basic GZipping of Response. Does not currently support GZipping streams
GZipContentTypes class GZipContentTypes : Filter
GZipping of the response where the content-type (sans-charset) matches an allowed list of compressible types.
ReportHttpTransaction object ReportHttpTransaction
General reporting Filter for an ReportHttpTransaction. Pass an optional HttpTransactionLabeller to create custom labels. This is useful for logging metrics. Note that the passed function blocks the response from completing.
ReportRouteLatency object ReportRouteLatency
Report the latency on a particular route to a callback function. This is useful for logging metrics. Note that the passed function blocks the response from completing.
Tap object Tap
Intercept the response after it is sent to the next service.

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T