[−][src]Struct eve_rs::Response
Implementations
impl Response
[src]
pub fn new() -> Self
[src]
pub fn get_status(&self) -> u16
[src]
pub fn get_status_message(&self) -> &str
[src]
pub fn set_status(&mut self, code: u16)
[src]
pub fn set_content_length(&mut self, length: usize)
[src]
pub fn get_headers(&self) -> &HashMap<String, Vec<String>>
[src]
pub fn get_header(&self, field: &str) -> Option<String>
[src]
pub fn set_header(&mut self, key: &str, value: &str)
[src]
pub fn append_header(&mut self, key: &str, value: &str)
[src]
pub fn remove_header(&mut self, field: &str)
[src]
pub fn get_content_type(&self) -> String
[src]
pub fn set_content_type(&mut self, content_type: &str)
[src]
pub fn redirect(&mut self, url: &str)
[src]
pub fn attachment(&mut self, file_name: Option<&str>)
[src]
pub fn get_last_modified(&self) -> Option<String>
[src]
pub fn set_last_modified(&mut self, last_modified: &str)
[src]
pub fn set_etag(&mut self, etag: &str)
[src]
pub fn get_body(&self) -> &Vec<u8>
[src]
pub fn set_body(&mut self, data: &str)
[src]
pub fn set_body_bytes(&mut self, data: &[u8])
[src]
pub fn set_cookie(&mut self, cookie: Cookie)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Response
[src]
impl Send for Response
[src]
impl Sync for Response
[src]
impl Unpin for Response
[src]
impl UnwindSafe for Response
[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>,