Function surf::delete [−][src]
pub fn delete(uri: impl AsRef<str>) -> RequestBuilderⓘNotable traits for RequestBuilder
impl Future for RequestBuilder type Output = Result<Response>;
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?;