pub fn delete(uri: impl AsRef<str>) -> RequestBuilder ⓘ
Expand description
Perform a one-off DELETE
request.
§About the HTTP Method
The HTTP DELETE request method deletes the specified resource.
§Panics
This will panic if a malformed URL is passed.
§Errors
Returns errors from the middleware, http backend, and network sockets.
§Examples
let string = surf::delete("https://httpbin.org/delete").recv_string().await?;