http4k / org.http4k.filter / ResponseFilters
object ResponseFilters
Name | Summary |
---|---|
GunZip | Basic UnGZipping of Response.object GunZip |
GZip | Basic GZipping of Response.object GZip |
GZipContentTypes | GZipping of the response where the content-type (sans-charset) matches an allowed list of compressible types.class GZipContentTypes : Filter |
ReportHttpTransaction | General reporting Filter for an ReportHttpTransaction. Pass an optional HttpTransactionLabeler to create custom labels. This is useful for logging metrics. Note that the passed function blocks the response from completing.object ReportHttpTransaction |
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.object ReportRouteLatency |
Tap | Intercept the response after it is sent to the next service.object Tap |
Name | Summary |
---|---|
Base64EncodeBody | Some platforms deliver bodies as Base64 encoded strings.fun Base64EncodeBody(): <ERROR CLASS> |
Name | Summary |
---|---|
Assert | Perform an assertThat on the outgoing Response as a Filter operationfun ResponseFilters .Assert(matcher: Matcher< Response >): <ERROR CLASS> Perform an assertion on the outgoing Response as a Filter operation fun ResponseFilters .Assert(match: Matcher< HttpMessage >): <ERROR CLASS> |