Skip to content

A lower level Connection API for the Client #1449

@seanmonstar

Description

@seanmonstar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-clientArea: client.C-featureCategory: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions