Skip to content
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

Connector implementation crates have to pick http1/http2 #2376

Closed
sfackler opened this issue Dec 24, 2020 · 0 comments · Fixed by #2377
Closed

Connector implementation crates have to pick http1/http2 #2376

sfackler opened this issue Dec 24, 2020 · 0 comments · Fixed by #2377
Labels
A-client Area: client. C-feature Category: feature. This is adding a new feature. E-easy Effort: easy. A task that would be a great starting point for a new contributor.

Comments

@sfackler
Copy link
Contributor

The low-level connection APIs like Connected/Connection/HttpConnector all require one of http1 or http2 to be set. This means that external crates like hyper-openssl have to pick one of those features to enable, which is kind of out of scope for what they actually need to do. It would probably make sense for those bits of the client API to only require client and not http1 or http2 to make things less weird.

@seanmonstar seanmonstar added A-client Area: client. E-easy Effort: easy. A task that would be a great starting point for a new contributor. C-feature Category: feature. This is adding a new feature. labels Dec 24, 2020
benesch added a commit to benesch/hyper that referenced this issue Dec 24, 2020
Make it possible to refer to Connected, Connection, HttpConnector, etc.
without enabling either of the http1/http2 features. This makes feature
selection work better for downstream libraries like hyper-openssl, which
don't want to commit to any particular protocol.

Fix hyperium#2376.
benesch added a commit to benesch/hyper that referenced this issue Dec 24, 2020
Make it possible to refer to Connected, Connection, HttpConnector, etc.
without enabling either of the http1/http2 features. This makes feature
selection work better for downstream libraries like hyper-openssl, which
don't want to commit to any particular protocol.

Fix hyperium#2376.
benesch added a commit to benesch/hyper that referenced this issue Dec 24, 2020
Make it possible to refer to Connected, Connection, HttpConnector, etc.
without enabling either of the http1/http2 features. This makes feature
selection work better for downstream libraries like hyper-openssl, which
don't want to commit to any particular protocol.

Fix hyperium#2376.
benesch added a commit to benesch/hyper that referenced this issue Dec 24, 2020
Make it possible to refer to Connected, Connection, HttpConnector, etc.
without enabling either of the http1/http2 features. This makes feature
selection work better for downstream libraries like hyper-openssl, which
don't want to commit to any particular protocol.

Fix hyperium#2376.
benesch added a commit to benesch/hyper that referenced this issue Dec 28, 2020
Make it possible to refer to Connected, Connection, HttpConnector, etc.
without enabling either of the http1/http2 features. This makes feature
selection work better for downstream libraries like hyper-openssl, which
don't want to commit to any particular protocol.

Fix hyperium#2376.
seanmonstar pushed a commit that referenced this issue Dec 28, 2020
Make it possible to refer to Connected, Connection, HttpConnector, etc.
without enabling either of the http1/http2 features. This makes feature
selection work better for downstream libraries like hyper-openssl, which
don't want to commit to any particular protocol.

Fix #2376.
BenxiangGe pushed a commit to BenxiangGe/hyper that referenced this issue Jul 26, 2021
…2377)

Make it possible to refer to Connected, Connection, HttpConnector, etc.
without enabling either of the http1/http2 features. This makes feature
selection work better for downstream libraries like hyper-openssl, which
don't want to commit to any particular protocol.

Fix hyperium#2376.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-client Area: client. C-feature Category: feature. This is adding a new feature. E-easy Effort: easy. A task that would be a great starting point for a new contributor.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants