Struct actix_router::RouterBuilder [−][src]
pub struct RouterBuilder<T, U = ()> { /* fields omitted */ }
Implementations
pub fn path<P: IntoPattern>(
&mut self,
path: P,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
pub fn path<P: IntoPattern>(
&mut self,
path: P,
resource: T
) -> &mut (ResourceDef, T, Option<U>)
Register resource for specified path.
Register resource for specified path prefix.
Register resource for ResourceDef