-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
A lower level Connection API for the Client #1449
Comments
This would be great! |
The API I've been prototyping has a similar look to the h2 client, where you provide an already connected At this level, the internals can be configured to allow HTTP upgrades and CONNECTs (where as the higher level
|
If we made |
That's a definite possibility! |
The
Client
is a higher level API that, among other things, provides a connection pool. Similar to how the server has higher and lower level APIs (Server
vsServe
/Connection
), the client should gain a lower level connection based API. This would allow finer grained control over when connections are made, and would allow external pool implementations (cc #1253).Implementation
There would be a new
hyper::client::Connection
type, which implementsService
. It would represent a single connection bound to HTTP. It would not reconnect itself when it is closed, someone managing the connection would handle that.The text was updated successfully, but these errors were encountered: