-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support making HTTP client requests using HTTP/2 #484
Comments
Is this issue available for being picked up? I should have time in the next few weeks. |
Sure - this is open for anyone to pick it up |
I was taking a look at this.
Is my understanding / approach right here? Tagging explicitly @raboof as I saw his name in some of the files involved in the changes + some HTTP/2 related work. |
A few thoughts here:
What we already have for HTTP/2:
What is missing:
In terms of essential functionality, it seems that not much is missing. Many backend usages that need an HTTP/2 client are already supported if you can do the "dispatch to the right host connection" (which only requires that you can keep the single managed connection as a state in your client shim). |
I don't think we should do it like this. Especially, we don't want another entry point like In theory, all existing APIs can be supported by "just" allowing What needs to be done when HTTP/2 is selected is to replace the code at pekko-http/http-core/src/main/scala/org/apache/pekko/http/impl/engine/client/PoolInterface.scala Lines 76 to 79 in 87f55da
On the surface, it might be enough to switch out those two lines with the HTTP/2 equivalent. I wouldn't surprised if there are some subtle issues/bugs remaining in Some notes on automatic negotiation:You can do protocol negotiation, either by being told that HTTP/2 protocol is available using the |
@samueleresca this is the first thing I would try. Hopefully, the flows implemented by |
Which is not quite the case right now. |
@jrudolph Thanks for the steering.
ACK on the above. So the apporach you are suggesting is to skip the initialization of the
What is your recommendation here? I'm seeing that |
See matsluni/aws-spi-akka-http#226 (comment) for context.
It appears that
Http().singleRequest(...)
only supports sending HTTP/1.1 requests.We have samples that use HTTP/2 requests but it might be nice to make it more straightforward.
The text was updated successfully, but these errors were encountered: