Remove Headers from the public API. (#224)

It turns out Headers is actually an internal-only API. None of the
user-facing types use it.

Unfortunately, making it unexported also required deleting the doctests,
since doctests can only run against a public interface.
This commit is contained in:
Jacob Hoffman-Andrews
2020-11-22 00:15:13 -08:00
committed by GitHub
parent 213d64086c
commit 6a7b064f2a
2 changed files with 13 additions and 26 deletions

View File

@@ -7,16 +7,14 @@ use url::Url;
#[cfg(feature = "cookies")]
use cookie::Cookie;
use crate::body::{self, BodySize, Payload, SizedReader};
use crate::error::{Error, ErrorKind};
use crate::header;
use crate::header::{get_header, Header};
use crate::resolve::ArcResolver;
use crate::response::Response;
use crate::stream::{self, connect_test, Stream};
use crate::Agent;
use crate::{
body::{self, BodySize, Payload, SizedReader},
header::get_header,
};
use crate::{Header, Response};
/// A Unit is fully-built Request, ready to execute.
///