-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
A lower level Connection API for the Client #1449
Copy link
Copy link
Closed
Labels
A-clientArea: client.Area: client.C-featureCategory: feature. This is adding a new feature.Category: feature. This is adding a new feature.
Milestone
Description
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 vs Serve/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 implements Service. 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-clientArea: client.Area: client.C-featureCategory: feature. This is adding a new feature.Category: feature. This is adding a new feature.