04/22/2021, 10:16 AM
The ktor http client doesn't seem to allow to bind the http request to a different ip on the network interface, apache http client allows it by specifying a different local address from the request builder, is there a way to do it in ktor http client? Even using the Apache http client there seems to be no control over this.
looks like i could do it like this:
(httpclient.engine.config as ApacheEngineConfig).customizeRequest { 
if you think there is a better way pls tell