pub type Headers = HeaderMap;Expand description
请求头映射提取器
获取所有请求头的键值对映射。
Aliased Type§
pub struct Headers { /* private fields */ }Trait Implementations§
Source§impl<S> FromRequestParts<S> for Headers
impl<S> FromRequestParts<S> for Headers
Source§type Error = ExtractorError
type Error = ExtractorError
提取过程中可能发生的错误
Source§fn from_request_parts(
parts: &RequestParts,
_state: &S,
) -> Result<Self, Self::Error>
fn from_request_parts( parts: &RequestParts, _state: &S, ) -> Result<Self, Self::Error>
从请求中提取数据 Read more