Skip to content

Commit b1bb0e4

Browse files
authored
doc: remove mention of deprecated ValidateRequestHeaderLayer::bearer in lib.rs comment
1 parent 7be16d2 commit b1bb0e4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tower-http/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@
7070
//! .layer(PropagateHeaderLayer::new(HeaderName::from_static("x-request-id")))
7171
//! // If the response has a known size set the `Content-Length` header
7272
//! .layer(SetResponseHeaderLayer::overriding(CONTENT_TYPE, content_length_from_response))
73-
//! // Authorize requests using a token
74-
//! .layer(ValidateRequestHeaderLayer::bearer("passwordlol"))
7573
//! // Accept only application/json, application/* and */* in a request's Accept header
7674
//! .layer(ValidateRequestHeaderLayer::accept("application/json"))
7775
//! // Wrap a `Service` in our middleware stack

0 commit comments

Comments
 (0)