ktor
ktor copied to clipboard
Improve ktor-client request/response logging
trafficstars
Related to https://github.com/ktorio/ktor/issues/1727
@dragneelfps
The changes seem fine.
val logContentType: LogContentType is a nice addition :)
Just wondering if
io.ktor.client.HttpClientConfig 's
/**
* Terminate [HttpClient.responsePipeline] if status code is not success(>=300).
*/
var expectSuccess: Boolean = true
will affect logging error responses if not changed to false.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing this PR as stale