pub struct Request { /* private fields */ }Implementations§
Source§impl 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 Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more