Struct sincere::Group
[−]
[src]
pub struct Group { pub routes: Vec<Route>, // some fields omitted }
Fields
routes: Vec<Route>
Methods
impl Group
[src]
fn new(prefix: &str) -> Group
fn get<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
fn post<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
fn put<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
fn delete<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
fn option<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
fn head<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,
H: Fn(&mut Request, &mut Response) + Send + Sync + 'static,