Skip to main content

http_proxy_service

Function http_proxy_service 

Source
pub fn http_proxy_service<SV>(
    conf: &Arc<ServerConf>,
    inner: SV,
) -> Service<HttpProxy<SV, ()>>
where SV: ProxyHttp,
Expand description

Create a Service from the user implemented ProxyHttp.

The returned Service can be hosted by a pingora_core::server::Server directly.