Would be interested in opinion here as well, and clarification whether it 
works at least for `superPool` or `singleRequest`.

Dňa streda, 2. novembra 2016 14:57:36 UTC+1 sub...@gmail.com napísal(-a):
>
>
> http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0/scala/http/configuration.html
>
> also in the 2.4.11 docs but can't find that link at the moment
>
> prior to the client section, under host-connection-pool it says
>
>
>    1. # Please note that this section mirrors `akka.http.client` however 
>    is used only for pool-based APIs,
>    2. # such as `Http().superPool` or `Http().singleRequest`.
>
> If that feature is not yet in Akka, is there any solution to get proxy 
> support for use with Akka Streams? For example could I use a Netty or other 
> http implementation and create a Source from that? Thanks!
>
>
> On Wednesday, November 2, 2016 at 3:06:10 AM UTC-6, André wrote:
>>
>> 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