HttpLogFormatter

Interface for formatting HTTP request/response log messages.

Implement this interface to customize the log output format.

Inheritors

Functions

Link copied to clipboard
abstract fun formatRequest(method: HttpMethod, url: String, headers: Map<String, String>, body: String?): String

Format an HTTP request for logging.

Link copied to clipboard
abstract fun formatResponse(method: HttpMethod, url: String, response: HttpResponse, durationMs: Long): String

Format an HTTP response for logging.