Skip to content

Commit c939c85

Browse files
committed
Finish up header trait
1 parent 7516664 commit c939c85

File tree

7 files changed

+0
-14
lines changed

7 files changed

+0
-14
lines changed

src/auth/basic_auth.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use anyhow::bail;
2-
31
use crate::auth::{AuthenticationScheme, Authorization};
42
use crate::headers::{HeaderName, HeaderValue, Headers, AUTHORIZATION};
53
use crate::Status;

src/conditional/if_match.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Apply the HTTP method if the ETag matches.
22
3-
use http::header::IF_MATCH;
4-
53
use crate::conditional::ETag;
64
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, IF_MATCH};
75

src/conditional/if_modified_since.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use http::header::IF_MODIFIED_SINCE;
2-
31
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, IF_MODIFIED_SINCE};
42
use crate::utils::{fmt_http_date, parse_http_date};
53

src/conditional/if_none_match.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//! This is used to update caches or to prevent uploading a new resource when
44
//! one already exists.
55
6-
use http::header::IF_NONE_MATCH;
7-
86
use crate::conditional::ETag;
97
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, IF_NONE_MATCH};
108

src/conditional/if_unmodified_since.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use http::header::IF_UNMODIFIED_SINCE;
2-
31
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, IF_UNMODIFIED_SINCE};
42
use crate::utils::{fmt_http_date, parse_http_date};
53

src/conditional/last_modified.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use http::header::LAST_MODIFIED;
2-
31
use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, LAST_MODIFIED};
42
use crate::utils::{fmt_http_date, parse_http_date};
53

src/content/accept.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use std::fmt::{self, Debug, Write};
99
use std::option;
1010
use std::slice;
1111

12-
use super::AcceptEncoding;
13-
1412
/// Client header advertising which media types the client is able to understand.
1513
///
1614
/// Using content negotiation, the server then selects one of the proposals, uses

0 commit comments

Comments
 (0)