Hi Allan,

On Mon, Dec 22, 2014 at 9:03 PM, Allan Brighton <[email protected]> wrote:

> Is there an example http file server and client like this that works with
> the latest 1.0-M1 version?
>

Wait a little more and you will see some http documentation coming (1.0-M2
is coming! Ho Ho Ho!). The API got simplified, so you no longer need to do
IO(Http) ? X. I posted a simple example for using Http client with the new
API already on this ML:
https://groups.google.com/d/msg/akka-user/-mFoVZvK2wk/3i-sApqWDPIJ

-Endre


>
> On Thursday, November 20, 2014 4:11:38 PM UTC+1, rklaehn wrote:
>
>> On Thu, Nov 20, 2014 at 3:31 PM, Allan Brighton <[email protected]>
>> wrote:
>> > Thanks for the http server example. It works fine.
>> > Do you also have a matching example for the client side?
>> > I found akka.http.TestClient, which is a start, but does not give any
>> hints
>> > about reading the data from the server.
>> >
>> Sure. Based on the TestClient example, here is one that reads data
>> from the server and dumps it on the console.
>>
>> https://gist.github.com/rklaehn/3f26c3f80e5870831f52#file-client-example
>>
>> However, last time I tried this did not properly handle chunked
>> encoding. But that was 0.10-M1. I will have to try again.
>>
>> Also, I hope there will be a less verbose way to do a simple GET request.
>>
>  --
> >>>>>>>>>> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to