Skip to main content

RequestExt

Trait RequestExt 

Source
pub trait RequestExt {
    // Required method
    fn path(&self) -> &Path;
}
Expand description

hyper::Request extension trait that makes writing HttpResponders more convienent.

Required Methods§

Source

fn path(&self) -> &Path

The URI path of the Request.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RequestExt for Request<Body>

Source§

fn path(&self) -> &Path

The URI path of the Request.

Implementors§