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: &str = "x-powered-by";
pub(crate) const HEADER_VALUE_X_POWERED_BY: &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,
];