Struct sapper::SapperRouter
[−]
[src]
pub struct SapperRouter { /* fields omitted */ }
Methods
impl SapperRouter
[src]
fn new() -> SapperRouter
[src]
fn route<H>(
&mut self,
method: Method,
glob: &'static str,
handler: H
) -> &mut SapperRouter where
H: SapperHandler + 'static,
[src]
&mut self,
method: Method,
glob: &'static str,
handler: H
) -> &mut SapperRouter where
H: SapperHandler + 'static,
fn get<H: SapperHandler + 'static>(
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
[src]
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
Like route, but specialized to the Get
method.
fn post<H: SapperHandler + 'static>(
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
[src]
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
Like route, but specialized to the Post
method.
fn put<H: SapperHandler + 'static>(
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
[src]
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
Like route, but specialized to the Put
method.
fn delete<H: SapperHandler + 'static>(
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
[src]
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
Like route, but specialized to the Delete
method.
fn head<H: SapperHandler + 'static>(
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
[src]
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
Like route, but specialized to the Head
method.
fn patch<H: SapperHandler + 'static>(
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
[src]
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
Like route, but specialized to the Patch
method.
fn options<H: SapperHandler + 'static>(
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
[src]
&mut self,
glob: &'static str,
handler: H
) -> &mut SapperRouter
Like route, but specialized to the Options
method.
fn into_router(
&self
) -> &HashMap<Method, Vec<(&'static str, Arc<Box<SapperHandler>>)>>
[src]
&self
) -> &HashMap<Method, Vec<(&'static str, Arc<Box<SapperHandler>>)>>