Struct rust_xfinal::Response
source · [−]pub struct Response<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Response<'a>
impl<'a> Response<'a>
pub fn remove_header(&mut self, key: String)
pub fn add_header(&mut self, key: String, value: String)
pub fn header_exist(&self, s: &str) -> bool
pub fn write_string(&mut self, v: &str) -> ResponseConfig<'_, 'a>
pub fn write_binary(&mut self, v: Vec<u8>) -> ResponseConfig<'_, 'a>
pub fn write_state(&mut self, code: u16)
pub fn write_file(&mut self, path: String) -> ResponseConfig<'_, 'a>
pub fn get_conn(&self) -> Rc<RefCell<&'a mut TcpStream>>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Response<'a>
impl<'a> !Send for Response<'a>
impl<'a> !Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> !UnwindSafe for Response<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more