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