You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm implementing HTTP/2 client to send push notification request to APNS (token based)
And I'm on researching stage now, and I read an issue on hyper, which led me here.
I'm a bit confused differences between hyper and hyper-h2
I guess hyper-h2 is next version of hyper since @Lukasa shows up in both repositories,(hyper@github, hyper-h2@github) and I can find recent commits in hyper-h2 repository
Am I right? If not, are they intended different purpose?
(for example, hyper supports I/O things like requests whereas hyper-h2 doesn't but supports high-level interfaces)
In I/O part in hyper-h2 documentation it seems that hyper-h2 doesn't do I/O things so I need to implement writing/receiving data or utilize other network packages, such as twisted.
hyper supports Request Integration but hyper-h2 doesn't seem to.
My question is: is there any way that I can integrate hyper-h2 into requests for client side?
hyper-h2 is not the next version of hyper. It is instead a core part of hyper. If you do pip install hyper you will notice that pip installs a package called h2: that package is hyper-h2.
hyper-h2 is intended as a building block for HTTP/2 implementations. If you're trying to integrate with APNS then you can either use something like Twisted along with hyper-h2 to write an asynchronous APNS client, or you can use hyper along with something like Requests to write a synchronous one. Either way works.
TL;DR: hyper-h2 isn't replacing hyper, it's a part of hyper.
Hi,
I'm implementing HTTP/2 client to send push notification request to APNS (token based)
And I'm on researching stage now, and I read an issue on
hyper
, which led me here.I'm a bit confused differences between
hyper
andhyper-h2
I guess
hyper-h2
is next version ofhyper
since @Lukasa shows up in both repositories,(hyper@github, hyper-h2@github) and I can find recent commits inhyper-h2
repositoryAm I right? If not, are they intended different purpose?
(for example,
hyper
supports I/O things likerequests
whereashyper-h2
doesn't but supports high-level interfaces)In I/O part in
hyper-h2
documentation it seems thathyper-h2
doesn't do I/O things so I need to implement writing/receiving data or utilize other network packages, such astwisted
.hyper
supports Request Integration buthyper-h2
doesn't seem to.My question is: is there any way that I can integrate
hyper-h2
intorequests
for client side?Since Best Practices for Managing Connections by Apple encourages using connection pool and
requests
supports it, It would be greathyper-h2
supportsrequests
integrationThank you in advance!
The text was updated successfully, but these errors were encountered: