LogBodyFilter

Decides to include the body of a response in the logs (if body logging is enabled).

The result can be a subset of the complete response, or some alternative format.

Report a problem

Inheritors

Functions

Link copied to clipboard
abstract suspend fun filterRequest(url: Url, contentLength: Long?, contentType: ContentType?, headers: Headers, body: ByteReadChannel): BodyFilterResult

Applies a filtering operation on the request body based on the specified parameters. Determines how the request body should be included in the logs.

Link copied to clipboard
abstract suspend fun filterResponse(url: Url, contentLength: Long?, contentType: ContentType?, headers: Headers, body: ByteReadChannel): BodyFilterResult

Applies a filtering operation on the response body based on the specified parameters. Determines how the response body should be included in the logs.