CommonLogBodyFilter
Convenience interface for two-way filtering using a common method.
Functions
Link copied to clipboard
abstract suspend fun filterAll(contentLength: Long?, contentType: ContentType?, headers: Headers, body: ByteReadChannel): BodyFilterResult
Filters the body content using the provided parameters during both request and response processing.
Link copied to clipboard
open suspend override 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
open suspend override 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.