Function hyper_stub::proxy_client_fn_ok [−][src]
pub fn proxy_client_fn_ok<F>(
handler: F
) -> Client<impl Connect> where
F: Fn(Request<Body>) -> Response<Body> + Send + Sync + Copy + 'static,
Creates a hyper client whose requests are converted to responses by being passed through the given handler function.
See proxy_client_fn
if errors or asynchronous processing are required.