nuclear-router 0.1.0

A URL router library with focus on speed
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod handler;
mod service;
mod service_macro;

pub use self::handler::Handler;
pub use self::service::{RouterService, SharedRouterService};

use std::error::Error as StdError;
use std::future::Future;
use std::pin::Pin;

type Request = hyper::Request<hyper::Body>;
type Response = hyper::Response<hyper::Body>;

type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;
type BoxError = Box<dyn StdError + Send + Sync>;