manas_http 0.1.1

This crate provides extended functionality for handling http semantics, that integrates into [`hyper`](https://docs.rs/hyper/latest/hyper/index.html) ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! I define traits to define namespaced infallible http
//! services.
//!

use super::HttpService;
use crate::uri::invariant::NormalAbsoluteHttpUri;

/// A trait for infallible http services, which are defined against a bounded uri namespace.
pub trait NamespacedHttpService<ReqBody, ResBody>: HttpService<ReqBody, ResBody> {
    /// Check if given uri is in target namespace of this service.
    fn has_in_uri_ns(&self, uri: &NormalAbsoluteHttpUri) -> bool;
}