filterAll

abstract suspend fun filterAll(contentLength: Long?, contentType: ContentType?, headers: Headers, body: ByteReadChannel): BodyFilterResult(source)

Filters the body content using the provided parameters during both request and response processing.

Report a problem

Return

A BodyFilterResult containing the result of the filtering operation.

Parameters

contentLength

The length of the content, or null if the length is unknown.

contentType

The type of the content, or null if the type is not specified.

headers

The headers associated with the content.

body

The channel for reading the body content.