[−][src]Struct eve_rs::Request
Implementations
impl Request
[src]
pub async fn from_hyper(
socket_addr: SocketAddr,
req: HyperRequest<Body>
) -> Self
[src]
socket_addr: SocketAddr,
req: HyperRequest<Body>
) -> Self
pub fn get_body_bytes(&self) -> &[u8]
[src]
pub fn get_body(&self) -> Result<String, Utf8Error>
[src]
pub fn get_method(&self) -> &HttpMethod
[src]
pub fn get_length(&self) -> u128
[src]
pub fn get_path(&self) -> String
[src]
pub fn get_full_url(&self) -> String
[src]
pub fn get_origin(&self) -> Option<String>
[src]
pub fn get_query_string(&self) -> String
[src]
pub fn get_host(&self) -> String
[src]
pub fn get_host_and_port(&self) -> String
[src]
pub fn get_content_type(&self) -> String
[src]
pub fn get_charset(&self) -> Option<String>
[src]
pub fn get_protocol(&self) -> String
[src]
pub fn is_secure(&self) -> bool
[src]
pub fn get_ip(&self) -> IpAddr
[src]
pub fn is(&self, mimes: &[&str]) -> bool
[src]
pub fn get_version(&self) -> String
[src]
pub fn get_version_major(&self) -> u8
[src]
pub fn get_version_minor(&self) -> u8
[src]
pub fn get_header(&self, field: &str) -> Option<String>
[src]
pub fn get_headers(&self) -> &HashMap<String, Vec<String>>
[src]
pub fn set_header(&mut self, field: &str, value: &str)
[src]
pub fn append_header(&mut self, key: String, value: String)
[src]
pub fn remove_header(&mut self, field: &str)
[src]
pub fn get_query(&self) -> &HashMap<String, String>
[src]
pub fn get_params(&self) -> &HashMap<String, String>
[src]
pub fn get_cookies(&self) -> &Vec<Cookie>
[src]
pub fn get_cookie(&self, name: &str) -> Option<&Cookie>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Request
[src]
impl Send for Request
[src]
impl Sync for Request
[src]
impl Unpin for Request
[src]
impl UnwindSafe for Request
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,