Function flawless_http::head

source ·
pub fn head<U: Into<String>>(url: U) -> Request<Flawless>
Expand description

Create a HEAD request.

use flawless_http::head;

let response = head("https://httpbin.org/get").send();
assert!(response.is_ok());