Callback
interface Callback
Callbacks allowing to override some behavior of the DefaultHttpClient.
Functions
Link copied to clipboard
open suspend fun onFollowUnsafeRedirect(request: HttpRequest, response: HttpResponse, newRequest: HttpRequest): HttpTry<HttpRequest>
Redirections are followed by default when the host and protocols are the same. However, if for example an HTTP server redirects to an HTTPS URI, you will need to confirm explicitly the redirection by implementing this callback as it is potentially unsafe.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Called when the HTTP client received an HTTP response for the given request.
Link copied to clipboard
Called when the HTTP client will start a new request.