[][src]Struct eve_rs::Response

pub struct Response { /* fields omitted */ }

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]

Trait Implementations

impl Clone for Response[src]

impl Debug for Response[src]

impl Default for Response[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.