[−][src]Struct rusty_express::prelude::Request
Fields
method: REST
uri: String
Methods
impl Request
[src]
pub fn new() -> Self
[src]
pub fn header(&self, field: &str) -> Option<String>
[src]
pub fn keep_alive(&self) -> bool
[src]
pub fn cookie(&self, key: &str) -> Option<String>
[src]
pub fn cookie_iter(&self) -> Iter<String, String>
[src]
pub fn scheme(&self, field: &str) -> Option<Vec<String>>
[src]
pub fn uri_fragment(&self) -> String
[src]
pub fn param(&self, key: &str) -> Option<String>
[src]
pub fn param_iter(&self) -> Iter<String, String>
[src]
pub fn client_info(&self) -> Option<SocketAddr>
[src]
pub fn host_info(&self) -> String
[src]
#[must_use]
pub fn form_data(&self) -> HashMap<String, String>
[src]
pub fn json(&self) -> String
[src]
Trait Implementations
impl RequestWriter for Request
[src]
fn write_header(&mut self, key: &str, val: &str, allow_override: bool)
[src]
fn write_scheme(&mut self, key: &str, val: Vec<String>, allow_override: bool)
[src]
fn create_scheme(&mut self, scheme: HashMap<String, Vec<String>>)
[src]
fn set_cookie(&mut self, key: &str, val: &str, allow_override: bool)
[src]
fn create_cookie(&mut self, cookie: HashMap<String, String>)
[src]
fn set_param(&mut self, key: &str, val: &str)
[src]
fn create_param(&mut self, params: HashMap<String, String>)
[src]
fn set_fragment(&mut self, fragment: String)
[src]
fn set_host(&mut self, host: String)
[src]
fn set_client(&mut self, addr: SocketAddr)
[src]
fn extend_body(&mut self, content: &str)
[src]
impl Default for Request
[src]
Auto Trait Implementations
impl Sync for Request
impl Send for Request
impl Unpin for Request
impl RefUnwindSafe for Request
impl UnwindSafe for Request
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,