pub trait HttpRequest: Send + Sync {
    // Required methods
    fn new() -> Self
       where Self: Sized;
    fn as_any(&self) -> &dyn Any;
    fn method(&self) -> &Method;
    fn scheme(&self) -> &Option<Scheme>;
    fn path_with_query(&self) -> &str;
    fn authority(&self) -> &str;
    fn headers(&self) -> Option<u32>;
    fn set_headers(&mut self, headers: u32);
    fn body(&self) -> Option<u32>;
    fn set_body(&mut self, body: u32);
}

Required Methods§

source

fn new() -> Selfwhere Self: Sized,

source

fn as_any(&self) -> &dyn Any

source

fn method(&self) -> &Method

source

fn scheme(&self) -> &Option<Scheme>

source

fn path_with_query(&self) -> &str

source

fn authority(&self) -> &str

source

fn headers(&self) -> Option<u32>

source

fn set_headers(&mut self, headers: u32)

source

fn body(&self) -> Option<u32>

source

fn set_body(&mut self, body: u32)

Implementors§