Trait rusty_express::prelude::ResponseWriter [] [src]

pub trait ResponseWriter {
    fn status(&mut self, status: u16);
fn header(&mut self, field: &str, value: &str, replace: bool);
fn send(&mut self, content: &str);
fn send_file(&mut self, file_path: &str) -> u16;
fn send_file_async(&mut self, file_loc: &str);
fn send_template(
        &mut self,
        file_path: &str,
        context: Box<EngineContext>
    ) -> u16;
fn set_cookie(&mut self, cookie: Cookie);
fn set_cookies(&mut self, cookie: &[Cookie]);
fn clear_cookies(&mut self);
fn can_keep_alive(&mut self, can_keep_alive: bool);
fn keep_alive(&mut self, to_keep: bool);
fn set_content_type(&mut self, content_type: &str);
fn redirect(&mut self, path: &str); }

Required Methods

Implementors