1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 20:55:51 +02:00

wrap LanguageTags type in new AnyOrSome type to support wildcards (#2480)

This commit is contained in:
Rob Ede
2021-12-02 13:59:25 +00:00
committed by GitHub
parent c4b20df56a
commit 075d871e63
9 changed files with 469 additions and 136 deletions

View File

@@ -55,7 +55,7 @@ pub trait Header: IntoHeaderValue {
fn name() -> HeaderName;
/// Parse a header
fn parse<T: HttpMessage>(msg: &T) -> Result<Self, ParseError>;
fn parse<M: HttpMessage>(msg: &M) -> Result<Self, ParseError>;
}
/// Convert `http::HeaderMap` to our `HeaderMap`.