https://kotlinlang.org logo
#ktor
Title
# ktor
c

coder82

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:
Copy code
(httpclient.engine.config as ApacheEngineConfig).customizeRequest { 
    <http://rootLogger.info|rootLogger.info>("pippo")
}
if you think there is a better way pls tell
2 Views