pub fn request(method: &str, path: &str) -> Request
Expand description
Make a request with the HTTP verb as a parameter.
This allows making requests with verbs that don’t have a dedicated method.
If you’ve got an already-parsed Url, try request_url.
let resp: ureq::Response = ureq::request("OPTIONS", "http://example.com/")
.call()?;