rybalkinsd / kohttp

Kotlin DSL http client
https://kohttp.gitbook.io
Apache License 2.0
478 stars 42 forks source link

Proxy integration #154

Closed GitAntoinee closed 5 years ago

GitAntoinee commented 5 years ago

Hello, is it possible to use proxies? I did not see a feature to use proxies.

rybalkinsd commented 5 years ago

Hi @GitAntoinee . This example should help

val clientWithProxy = client { 
       proxy = Proxy.newProxyInstance(...)
}

httpGet(client = clientWithProxy) {

}
GitAntoinee commented 5 years ago

Thanks, this is what I wanted.