pub trait ResponseWriter {
Show 14 methods fn status(&mut self, status: u16); fn header(&mut self, field: &str, value: &str, allow_replace: bool); fn set_header(&mut self, field: &str, value: &str); 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<T: EngineContext + Send + Sync + 'static>(
        &mut self,
        file_path: &str,
        context: Box<T>
    ) -> 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§