aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
blob: ebc21f2c63745e0c8ecab6879c24b1ad1604589f (plain)
1
2
3
4
5
6
7
8
9
10
use async_trait::async_trait;
use hyper::{Body, Request, Response};

pub mod proxy_child;
pub mod serve_static;

#[async_trait]
pub trait HttpHandler: Send + Sync {
    async fn handle(&self, request: Request<Body>) -> Response<Body>;
}