The HTTP/2 support in Akka HTTP is so far only server side, there is no
client implementation. So you would have to use some other HTTP client to
achieve that for now.

--
Johan
Akka Team

On Wed, Sep 6, 2017 at 2:50 PM, <[email protected]> wrote:

> Hi Friends,
>
> I have been using akka http for a year and found it to be useful.
>
> Recently I have a need to make Http 2.0 requests using akka http.
> Consider the below curl request. I want to convert the below curl request
> to an equivalent scala code using akka http.
>
>
> curl -d '{"aps":{"alert":{"title":"Hello from PushCrew","body":"Yay!
> Notification from Safari","action":"Click"},"url-args":["ss","ss"]}}'
> --cert 'h1.pem':'qwerty' -H "apns-topic: web.io.github.batra" --http2
> https://api.push.apple.com:443/3/device/0E705B379AD669DB060DEF1EF60A05
> 0A92F60366F97BBC08B1086241C455FE8A
>
> Notes: Its an Http 2.0 request, it uses pem encoded certificate file in
> the option "--cert"
> Let me know if you need any futher information.
>
>
>
> Thanks
> Mahesh
>
>
> --
> >>>>>>>>>> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      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 https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to