Skip to content

Commit e43c35c

Browse files
committed
fix(headers): make Schemes, Basic, Protocol public
Expose Authorization header Scheme trait and Basic authorization Expose the Upgrade header Protocol
1 parent 50a23e0 commit e43c35c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/header/common/mod.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ pub use self::access_control::*;
1010
pub use self::accept::Accept;
1111
pub use self::accept_encoding::AcceptEncoding;
1212
pub use self::allow::Allow;
13-
pub use self::authorization::Authorization;
13+
pub use self::authorization::{Authorization, Scheme, Basic};
1414
pub use self::cache_control::{CacheControl, CacheDirective};
15-
pub use self::connection::Connection;
15+
pub use self::connection::{Connection, ConnectionOption};
1616
pub use self::content_length::ContentLength;
1717
pub use self::content_type::ContentType;
1818
pub use self::cookie::Cookies;
@@ -27,12 +27,10 @@ pub use self::referer::Referer;
2727
pub use self::server::Server;
2828
pub use self::set_cookie::SetCookie;
2929
pub use self::transfer_encoding::TransferEncoding;
30-
pub use self::upgrade::Upgrade;
30+
pub use self::upgrade::{Upgrade, Protocol};
3131
pub use self::user_agent::UserAgent;
3232
pub use self::vary::Vary;
3333

34-
pub use self::connection::ConnectionOption;
35-
3634
#[macro_export]
3735
macro_rules! bench_header(
3836
($name:ident, $ty:ty, $value:expr) => {

0 commit comments

Comments
 (0)