fn proxy_request(
    settings: Arc<Settings>,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
    warp::any()
        .and(with_settings(settings))
        .and(warp::method())
        .and(external_url())
        .and(warp::header::headers_cloned())
        .and(warp::body::stream())
        .and_then(handlers::proxy_request)
}
// Proxy/forward any other request.
Proxy/forward any other request.
Proxy / forward any other request .
fn proxy_request(
    settings: Arc<Settings>,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
    warp::any()
        .and(with_settings(settings))
        .and(warp::method())
        .and(external_url())
        .and(warp::header::headers_cloned())
        .and(warp::body::stream())
        .and_then(handlers::proxy_request)
}
fn proxy_request ( settings : Arc < Settings > , ) -> impl Filter < Extract = impl warp :: Reply , Error = warp :: Rejection > + Clone { warp :: any ( ) . and ( with_settings ( settings ) ) . and ( warp :: method ( ) ) . and ( external_url ( ) ) . and ( warp :: header :: headers_cloned ( ) ) . and ( warp :: body :: stream ( ) ) . and_then ( handlers :: proxy_request ) }
Proxy/forward any other request.
Proxy / forward any other request .
settings
Arc<Settings>
settings
Arc<Settings>