onStartRequest

open suspend fun onStartRequest(request: HttpRequest): HttpTry<HttpRequest>

Called when the HTTP client will start a new request.

You can modify the request, for example by adding additional HTTP headers or redirecting to a different URL, before returning it.