delete

Function delete 

Source
pub fn delete(
    url: impl Into<String>,
    headers: impl IntoIterator<Item = (String, String)>,
) -> Result<Response, HttpDeleteError>
Expand description

HTTP DELETE


fn f() -> Result<(), HttpDeleteError> {
http::delete("https://gomomento.com", [])?;
http::delete(
    "https://gomomento.com",
    [
        ("authorization".to_string(), "abc123".to_string()),
    ]
)?;