pub fn delete<T: DeserializeOwned>(url: &str) -> Result<T, Error>Expand description
Remove a resource.
delete is a name Rust leaves free, so the method keeps the word it is
called everywhere else — here, and in Method::Delete.
A service that answers 204 sends no body, and no body reads as null, which
is what an answer type of () receives:
simple::http::delete::<()>("https://api.example.com/leads/L1")?;