Skip to main content

http_proxy_service_with_name_custom

Function http_proxy_service_with_name_custom 

Source
pub fn http_proxy_service_with_name_custom<SV, C>(
    conf: &Arc<ServerConf>,
    inner: SV,
    name: &str,
    connector: C,
    on_custom: ProcessCustomSession<SV, C>,
) -> Service<HttpProxy<SV, C>>
where SV: ProxyHttp + Send + Sync + 'static, SV::CTX: Send + Sync + 'static, C: Connector,
Expand description

Create a Service from the user implemented ProxyHttp.

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