Skip to main content

HttpRequest

Trait HttpRequest 

Source
pub trait HttpRequest {
    // Required methods
    fn get_header(&self, name: &str) -> Option<&[u8]>;
    fn insert_extension<T>(&mut self, ext: T) -> Option<T>
       where T: Clone + Send + Sync + 'static;
}

Required Methods§

Source

fn get_header(&self, name: &str) -> Option<&[u8]>

Source

fn insert_extension<T>(&mut self, ext: T) -> Option<T>
where T: Clone + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl HttpRequest for HttpRequest

Source§

fn get_header(&self, name: &str) -> Option<&[u8]>

Source§

fn insert_extension<T>(&mut self, ext: T) -> Option<T>
where T: Clone + Send + Sync + 'static,

Source§

impl<R> HttpRequest for Request<R>

Source§

fn get_header(&self, name: &str) -> Option<&[u8]>

Source§

fn insert_extension<T>(&mut self, ext: T) -> Option<T>
where T: Clone + Send + Sync + 'static,

Implementors§