[akka-user] Re: http proxy support

2016-11-02 Thread André
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 > howeve

[akka-user] Re: akka.http.scaladsl.model.Uri's apply() methods should still take charset and mode parameters?

2016-10-12 Thread André
> The last comment there by 2beaucoup was exactly what I am asking here. That's me BTW. There's no reason one can't pick up on this with an issue/PR in akka/akka-http. ;) Cheers André On Tuesday, October 11, 2016 at 7:39:57 PM UTC+2, Richard Imaoka wrote: > > Thank you, I wa

[akka-user] Re: ('=') sign still not allowed in query string even with Uri.ParsingMode.Relaxed? (akka/akka#18479)

2016-10-12 Thread André
n clarification in the documentation helps > us more, which akka/akka-http#276 > <https://github.com/akka/akka-http/issues/276> is asking for. (will try > to work on #276 if no one is picking it up yet) > > Thanks > > 2016年10月10日月曜日 17時23分00秒 UTC+9 André: >> >

[akka-user] Re: ('=') sign still not allowed in query string even with Uri.ParsingMode.Relaxed? (akka/akka#18479)

2016-10-10 Thread André
ccess your query via the queryString() method and parse it youself. HTH André On Sunday, October 9, 2016 at 6:38:34 PM UTC+2, Richard Imaoka wrote: > > Hi, > > While I tried to work on akka/akka-http#276 > <https://github.com/akka/akka-http/issues/276>, and looked at >

[akka-user] Re: akka.http.scaladsl.model.Uri's apply() methods should still take charset and mode parameters?

2016-10-10 Thread André
Hi Richard! See [1] for the discussion related to your question. [1] https://github.com/akka/akka/pull/18715#discussion-diff-41831981 Cheers André On Sunday, October 9, 2016 at 6:49:23 PM UTC+2, Richard Imaoka wrote: > > Hi, > > While I was trying to work on akka/akka-http#2

[akka-user] Re: Akka Http Client - Encoding issue

2016-09-30 Thread André
ample. [1] https://github.com/spray/spray/issues/803 [2] https://github.com/akka/akka-http/blob/a6245b606eec7b8ba77a2dbc96cdc388de5450d6/akka-http-core/src/test/scala/akka/http/impl/engine/rendering/RequestRendererSpec.scala#L311-L319 Cheers André On Wednesday, September 28, 2016 at 3:30:51

[akka-user] Re: Akka Http Client - Encoding issue

2016-09-19 Thread André
Hi Srinaath, does it work with "https://example.com/customers/~/profiles/dj2bQryHPCj4IVrc48xTPD hswk%2FqNWx LuUA0G2T6GLnyBVD6wC231IjgDBYJnt/preferences" ? Akka should replace the spaces with a "+" while a "+" as input will get encoded as "%2B". H

[akka-user] Re: [Akka-HTTP] How do I not specify the charset?

2016-09-14 Thread André
Hi Derek, to get an exact view of the raw incoming request I'd suggest to consult Wireshark. Akka's logRequest directive can show slightly different/adapted data. HTH André On Tuesday, September 13, 2016 at 7:30:08 PM UTC+2, Derek Wyatt wrote: > > I was able to verify that this is br

[akka-user] Re: How can I decode an HttpResponse

2016-08-25 Thread André
Hi Barrett, you can try Http() .singleRequest(...) .map(_.entity.dataBytes.via(Gzip.decoderFlow)) HTH, André On Thursday, August 25, 2016 at 9:41:14 AM UTC+2, Barrett Kern wrote: > > Hello, > > I am consuming a 3rd party API that returns gzipped JSON. I So far I > cannot

[akka-user] Re: How to read XML inputstream (with SAX parser) received by akka-http?

2016-08-02 Thread André
Maybe you can add your use case to https://github.com/akka/akka/issues/16210. On Tuesday, August 2, 2016 at 10:12:13 AM UTC+2, JY wrote: > > I am new with AKKA and AKKA HTTP. > > I have to write a HTTP server application that reads a lot very big XML > data flows (via HTTP PUT method) and

[akka-user] Akka TCP with Actors vs Akka Streams and Flows/Graphs

2016-07-26 Thread Jarl André Hübenthal
Has some developed an akka stream based TCP server where connections is kept open and frame delimited messages is pouring in, and is eventually stored somewhere in a database? It seems to be such a simple pattern that i am surprised to not find any examples for it. But maybe the world is not so

[akka-user] Re: How to use custom HTTP methods in akka-http

2016-06-17 Thread André
Hi, you can create custom methods with HttpMethod.custom which you can then provide to the constructor of HttpRequest. HTH André On Friday, June 17, 2016 at 9:38:05 AM UTC+2, zhonglin wu wrote: > > Hi all: > I' m using akka-http, there is a service provide the "query&quo

[akka-user] Re: access to HttpRequest rendering layer to help support "batched" requests

2015-12-15 Thread André
I think it's better to follow up on this in the ticket. On Sunday, December 13, 2015 at 7:38:21 PM UTC+1, Devon Miller wrote: > > The recommendation from https://github.com/akka/akka/issues/19062 is to > use a http Bidi to handle the rendering in a nice non-api exposing way. The > idea is to

[akka-user] Re: Handling exception from an Actor in Http routing

2015-12-10 Thread André
Hi Charlie, I think FutureDirectives.onSuccess() is what you're after. Cheers André On Thursday, December 10, 2015 at 6:24:33 PM UTC+1, Charlie Evans wrote: > > Hi all, > > I would like to handle exceptions using: > > implicit def myExceptionHandler: ExceptionHandler = > &

[akka-user] Re: Getting an array of formFields

2015-12-08 Thread André
Oops, wrong list! Just use .* (see http://doc.akka.io/docs/akka-stream-and-http-experimental/2.0-M2/scala/http/routing-dsl/directives/form-field-directives/formFields.html) HTH André On Tuesday, December 8, 2015 at 10:17:07 AM UTC+1, André wrote: > > Hi Jacobus, > > it's currently

[akka-user] Re: access to HttpRequest rendering layer to help support "batched" requests

2015-12-01 Thread André
Agreed that it would be nice to reuse HttpRequestRendererFactory.renderToSource in this case. Could you open a ticket? Cheers André On Tuesday, December 1, 2015 at 7:01:03 AM UTC+1, Devon Miller wrote: > > I looked more into this issue and found that to get the request to fully > re

[akka-user] Re: access to HttpRequest rendering layer to help support "batched" requests

2015-11-30 Thread André
eplace Source.single(...) with a Source that wraps a sequence of your custom body parts (e.g. by mapping your requests). HTH André On Monday, November 30, 2015 at 4:17:36 AM UTC+1, Devon Miller wrote: > > In order to satisfy some odata v4 "batch" protocol requirements, I need to >

[akka-user] Re: [akka-http] Java server with https

2015-11-13 Thread André
Hi Ricardo, doesn't look like HttpsContext param is currently surfaced in the java DSL's bindRoute. This should be discussed in a ticket. Cheers André On Thursday, November 12, 2015 at 6:57:38 PM UTC+1, Ricardo Silva wrote: > > Hello, > > is it possible to have a server ha

[akka-user] Re: [akka-http] java completeWith mapping future

2015-11-11 Thread André
Hi Benoit, you should take a look at http://doc.akka.io/docs/akka/snapshot/java/futures.html#Future_is_a_Monad. Mapper should solve your Problem. Cheers André On Wednesday, November 11, 2015 at 12:01:05 PM UTC+1, Benoit Guillon wrote: > > Hi, > > I'm using akka http with Java

[akka-user] Re: Size limitation for data upload in akka http

2015-10-07 Thread André
d here and was recently fixed. Cheers André On Wednesday, October 7, 2015 at 9:30:08 AM UTC+2, Daniel Bauer wrote: > > I'm using akka http to implement a REST service and that works fine except > for one case. The HTTP message parser has a limit on the message size. This > means that I cannot u

[akka-user] Re: [akka-http] Some questions about akka-http

2015-08-25 Thread André
Hi Leon, please see the discussion re. chunking here https://github.com/akka/akka/pull/18144. What's your use case? Cheers, André On Tuesday, August 25, 2015 at 9:21:46 AM UTC+2, Leon Ma wrote: Hi, I have some general questions about akka-http: 1. Is there any concrete samples

[akka-user] Re: [akka-http] Some questions about akka-http

2015-08-25 Thread André
. It was only removed from the routing DSL. HTH André On Tuesday, August 25, 2015 at 10:51:14 AM UTC+2, Leon Ma wrote: Hi, André Thanks for the quick response. Actually I'm trying to do some prototyping to see how hard to migrate my spray application into akka-http. Here're my case: I have

[akka-user] Re: akka-http non standard return codes.

2015-08-20 Thread André
Hi Tomasz, I think akka.http.ParserSettings.withCustomStatusCodes is what you're looking for. Its spec is here https://github.com/akka/akka/blob/release-2.3-dev/akka-http-core/src/test/scala/akka/http/impl/engine/parsing/ResponseParserSpec.scala#L60-L69 . HTH André On Thursday, August 20

[akka-user] Re: REST service with Akka and Java

2015-08-05 Thread André
This http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0/java/http/should get you started. The High-level Server-Side API http://doc.akka.io/docs/akka-stream-and-http-experimental/1.0/java/http/routing-dsl/index.html section covers the RESTy stuff. Cheers André On Wednesday

Re: [akka-user] Re: Server attacked. What could have been done?

2015-07-20 Thread André
I think the problem here is that we currently absolutize all requests ( code https://github.com/akka/akka/blob/release-2.3-dev/akka-http-core/src/main/scala/akka/http/impl/engine/server/HttpServerBluePrint.scala#L71-L78 ). This will always fail with HTTP/1.0 request as they are always relative

Re: [akka-user] Akka http load balancer

2015-05-28 Thread André
Source (and edit button) are here https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/http/client-side/request-level.rst. ;) On Thursday, May 28, 2015 at 8:09:27 AM UTC+2, zergood wrote: Mistake in docs

Re: [akka-user] Akka http load balancer

2015-05-28 Thread André
A quick search revealed some more places that needed fixing. PR submitted https://github.com/akka/akka/pull/17594. On Thursday, May 28, 2015 at 9:22:35 AM UTC+2, André wrote: Source (and edit button) are here https://github.com/akka/akka/blob/release-2.3-dev/akka-docs-dev/rst/scala/http

[akka-user] Re: 500 ISE for Client Side Error Bug Report

2015-04-16 Thread André
From https://tools.ietf.org/html/rfc7231#section-4.3.1: A payload within a GET request message has no defined semantics; sending a payload body on a GET request might cause some existing implementations to reject the request. (Some for HEAD/DELETE/CONNECT) Perhaps we should relax this

[akka-user] Re: 500 ISE for Client Side Error Bug Report

2015-04-15 Thread André
Hi Kevin, see https://github.com/akka/akka/blob/release-2.3-dev/akka-http-core/src/main/scala/akka/http/model/HttpMessage.scala#L133 Cheers, André On Wednesday, April 15, 2015 at 4:51:33 AM UTC+2, Kevin Meredith wrote: There's a Github issue, titled, 500 ISE for Client Side Error - https

[akka-user] Re: Akka Http Client - User-Agent header

2015-01-21 Thread André
:24 PM UTC+1, Grzegorz Wilkowicz wrote: Hi, What about other custom headers: X-Forwarded-For, SOAPAction, etc? How can I add them to the request? W dniu czwartek, 8 stycznia 2015 09:26:11 UTC+1 użytkownik André napisał: Hi Marcin, the user agent string is a config property and configured

Re: [akka-user] akka-http-experimental: Using the spray DSL: how to complete a route with a Source[ByteString]?

2015-01-20 Thread André
/server/directives/MarshallingDirectivesSpec.scala#L103-L117for examples. Cheers André On Tuesday, January 20, 2015 at 2:14:49 PM UTC+1, Allan Brighton wrote: Hi Roland, I wasn't sure how to use the new streaming APIs from the spray DSL, so I used the akka-http core API instead

[akka-user] Re: Akka Http Client - User-Agent header

2015-01-08 Thread André
Hi Marcin, the user agent string is a config property and configured here https://github.com/akka/akka/blob/release-2.3-dev/akka-http-core/src/main/resources/reference.conf#L69-L73 . Cheers André On Wednesday, January 7, 2015 9:14:23 PM UTC+1, Marcin Gosk wrote: Hey guys, is it possible

Re: [akka-user] akka-http / routing DSL: How to set response content type?

2014-12-12 Thread André
Hi Jo, as Björn and Mathias exlained there's no need to set the Content-Type explicitly. Just import ScalaXmlSupport and complete with a NodeSeq (example https://github.com/akka/akka/blob/release-2.3-dev/akka-http-tests/src/test/scala/akka/http/server/TestServer.scala) or alternatively

[akka-user] Akka remote - one sender's messages missing

2014-10-28 Thread Marc-André Laverdière
Hello everybody! I am a n00b to Akka. I am trying to add some instrumentation code to an application. I use Soot for doing the code transformation, and Akka for the communications. I have to instrument both a client and a server that communicate with each other. When running tests, I found