Skip to content

Commit

Permalink
Export http::header::HeaderValue as http::HeaderValue (hyperium#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshleeb authored and carllerche committed Jun 26, 2019
1 parent f5e97e4 commit 73002d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion benches/header_value.rs
Expand Up @@ -5,7 +5,7 @@ extern crate http;
extern crate test;

use bytes::Bytes;
use http::header::HeaderValue;
use http::HeaderValue;
use test::Bencher;

static SHORT: &'static [u8] = b"localhost";
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Expand Up @@ -55,8 +55,8 @@
//! to edit the request/response:
//!
//! ```
//! use http::{Response, StatusCode};
//! use http::header::{CONTENT_TYPE, HeaderValue};
//! use http::{HeaderValue, Response, StatusCode};
//! use http::header::CONTENT_TYPE;
//!
//! fn add_server_headers<T>(response: &mut Response<T>) {
//! response.headers_mut()
Expand Down Expand Up @@ -118,7 +118,7 @@
//! function:
//!
//! ```
//! use http::header::HeaderValue;
//! use http::HeaderValue;
//!
//! let value = HeaderValue::from_static("text/html");
//! assert_eq!(value.as_bytes(), b"text/html");
Expand All @@ -127,7 +127,7 @@
//! And header values can also be parsed like names:
//!
//! ```
//! use http::header::HeaderValue;
//! use http::HeaderValue;
//!
//! let value = "text/html";
//! let value = value.parse::<HeaderValue>().unwrap();
Expand Down Expand Up @@ -180,7 +180,7 @@ pub use convert::HttpTryFrom;
pub use error::{Error, Result};
pub use extensions::Extensions;
#[doc(no_inline)]
pub use header::HeaderMap;
pub use header::{HeaderMap, HeaderValue};
pub use method::Method;
pub use request::Request;
pub use response::Response;
Expand Down

0 comments on commit 73002d2

Please sign in to comment.