pub struct Request { /* private fields */ }
Implementations
sourceimpl Request
impl Request
pub fn get_uri(&self) -> String
pub fn get_method(&self) -> String
pub fn get(&self, field: &str) -> Value
pub fn json(&self) -> Value
pub fn get_query(&self, name: &str) -> Option<String>
pub fn get_querystring(&self) -> HashMap<String, String>
pub fn get_param(&self, name: &str) -> Option<String>
pub fn get_params(&self) -> HashMap<String, String>
pub fn get_headers(&self) -> HashMap<String, String>
pub fn get_header(&self, header: String) -> String
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more