Skip to main content

http_of_chain

Function http_of_chain 

Source
fn http_of_chain<'a>(
    calls: &[&'a ExprMethodCall],
) -> Option<(Kind, String, Target, Option<&'a Expr>)>
Expand description

The HTTP method a chain names, if any, with the URL it goes to: request(Method::PUT, url) (reqwest, http, hyper, any path ending in Method::X), or a builder’s .method(Method::PUT) / .method("PUT") with the URL from .uri(..) or .url(..). The last element is the URL’s expression, when the target was taken from it (a gate may compare it at run time).