pub type HttpMethod = Method;Expand description
HTTP 方法提取器
获取当前请求的 HTTP 方法(GET、POST、PUT、DELETE 等)。
Aliased Type§
pub struct HttpMethod(/* private fields */);Trait Implementations§
Source§impl<S> FromRequestParts<S> for HttpMethod
impl<S> FromRequestParts<S> for HttpMethod
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