Skip to content

Add cargo features for http1 and http2 #2251

@seanmonstar

Description

@seanmonstar

It's likely some people only need to support certain protocol versions, and it would be nice if they could reduce the amount of code they have to depend on or compile if they don't need all of them. It likely makes sense to add http1 and http2 Cargo features, and the relevant code using those cfgs.

  • http1
  • http2

Metadata

Metadata

Assignees

Labels

B-breaking-changeBlocked: this is an "API breaking change".C-refactorCategory: refactor. This would improve the clarity of internal code.E-mediumEffort: medium. Some knowledge of how hyper internal works would be useful.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions