uhttp 0.22.0

Simple http server for humans
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::types::HyperInfallibleResponse;

pub type HandlerResponse = HyperInfallibleResponse;
pub type HandlerResult = anyhow::Result<HyperInfallibleResponse>;

pub type HandleFunc = Box<
  dyn Send
    + Sync
    + Fn(
      crate::Request,
      crate::Response,
    ) -> std::pin::Pin<
      Box<dyn Send + std::future::Future<Output = crate::Result<HyperInfallibleResponse>>>,
    >,
>;

pub type Result<T> = anyhow::Result<T>;