Skip to main content

call_decide

Function call_decide 

Source
pub async fn call_decide(
    state: &ProxyState,
    req_headers: &HeaderMap,
    method: &Method,
    path: &str,
    client_addr: SocketAddr,
    is_connect: bool,
) -> Result<DecideResponse, String>
Expand description

Call tf-daemon’s /v1/decide. Returns Err when the daemon is unreachable or returns a malformed body.