Hi,

this config was supported in Spray but wasn't yet ported over to akka-http.

> Based on what I've read so far I need to enable the configuration and 
then it should work with Http().singleRequest
> however it's not connecting through the proxy.

May I ask where you got that info from?

Cheers
André

On Monday, October 31, 2016 at 11:26:44 PM UTC+1, sub...@gmail.com wrote:
>
> I'm interested in proxying http requests with akka-http. Based on what 
> I've read so far I need to enable the configuration and then it should work 
> with Http().singleRequest
> however it's not connecting through the proxy. I have the following config 
> in application.conf
>
> akka.http {
>
> host-connection-pool {
>
>   client {
>
>     proxy {
>
>       http {
>
>         host = 127.0.0.1
>
>         post = 8888
>
>       }
>
>     }
>
>   }
>
> }
> }
>
> and following code
>
> val responseFuture: Future[HttpResponse] =
>   Http().singleRequest(HttpRequest(uri = "http://akka.io";))
>
>
> val response: HttpResponse = Await.result(responseFuture, Duration.Inf)
>
> println(response.status.intValue())
>
>
> SBT has
>
>
> libraryDependencies += "com.typesafe.akka" %% "akka-http-core" % "2.4.11"
> libraryDependencies += "com.typesafe.akka" %% "akka-http-experimental" % 
> "2.4.11"
>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to