filterRequest
abstract suspend fun filterRequest(url: Url, contentLength: Long?, contentType: ContentType?, headers: Headers, body: ByteReadChannel): BodyFilterResult(source)
Applies a filtering operation on the request body based on the specified parameters. Determines how the request body should be included in the logs.
Return
The result of applying the body filter, which may include a subset or an alternative representation of the body.
Parameters
url
The URL of the request.
contentLength
The length of the request content, or null if unknown.
contentType
The content type of the request, or null if unspecified.
headers
The headers of the request.
body
The channel containing the request body data.