Skip to content

Documentation: HttpConnector requires the "tcp" feature #2374

Closed
@tux3

Description

@tux3

The docs.rs documentation for HttpConnector with hyper 0.14.1 says:

This is supported on crate feature client and (crate features http1 or http2) only.

As I understand it this seems based on of the following in hyper's lib.rs:

cfg_feature! {
    #![all(feature = "client", any(feature = "http1", feature = "http2"))]

    pub mod client;
    pub use crate::client::Client;
}

But it seems the HttpConnector struct also depends on the tcp feature.

#[cfg(feature = "tcp")]
pub use self::connect::HttpConnector;

I'm not sure how much control you have over this, but would it be possible to fix the doc to show the extra required feature? =)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: documentation.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions