routerify 2.0.0-beta-2

A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use hyper::Method;

pub(crate) const HEADER_NAME_X_POWERED_BY: &'static str = "x-powered-by";
pub(crate) const HEADER_VALUE_X_POWERED_BY: &'static str = concat!("Routerify v", env!("CARGO_PKG_VERSION"));

pub(crate) const ALL_POSSIBLE_HTTP_METHODS: [Method; 9] = [
    Method::GET,
    Method::POST,
    Method::PUT,
    Method::PATCH,
    Method::DELETE,
    Method::CONNECT,
    Method::HEAD,
    Method::OPTIONS,
    Method::TRACE,
];