Struct httpbis::ServicePaths
[−]
[src]
pub struct ServicePaths { /* fields omitted */ }
Methods
impl ServicePaths
[src]
pub fn new() -> ServicePaths
[src]
pub fn set_service(&mut self, path: &str, service: Arc<Service>)
[src]
pub fn set_service_fn<F>(&mut self, path: &str, service: F) where
F: Fn(Headers, HttpPartStream) -> Response + Send + Sync + 'static,
[src]
F: Fn(Headers, HttpPartStream) -> Response + Send + Sync + 'static,
pub fn remove_service(&mut self, path: &str) -> Option<Arc<Service>>
[src]
Trait Implementations
impl Default for ServicePaths
[src]
fn default() -> ServicePaths
[src]
Returns the "default value" for a type. Read more