[akka-user] Re: akka-http: access to httpresponse

2016-01-06 Thread ash.ta
actually the solution above doesn't work, i just saw that contet-type arrives as text/plain. -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Search the archives: https://gro

[akka-user] Re: akka-http: access to httpresponse

2016-01-06 Thread ash.ta
hey konrad, thanks a lot for help. i have another question related to this issue. now when i have an access to httpresponse object i add a custom response header to it, i try to return a json string. i tried something like response.withEntity( json_string ).addHeader( new RawHeader( "Content-Typ

[akka-user] Re: akka-http: access to httpresponse

2016-01-05 Thread Konrad Malawski
I improved the docs slightly to show this style of completing as well: https://github.com/akka/akka/pull/19350 -- Konrad -- >> Read the docs: http://akka.io/docs/ >> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> Sear