Skip to main content

IncomingRequestExt

Trait IncomingRequestExt 

Source
pub trait IncomingRequestExt: IncomingRequest {
    // Provided method
    fn try_from_http_request(
        request: Request<&[u8]>,
        path_args: &[&str],
    ) -> Result<Self, FromHttpRequestError> { ... }
}
Available on crate feature api only.
Expand description

Convenience functionality on top of IncomingRequest.

Provided Methods§

Source

fn try_from_http_request( request: Request<&[u8]>, path_args: &[&str], ) -> Result<Self, FromHttpRequestError>

Tries to convert the given http::Request into this request type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§