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:
@@ -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`.
|
||||
|
Reference in New Issue
Block a user