[−][src]Function surf::delete
ⓘImportant traits for Request<C>
pub fn delete(uri: impl AsRef<str>) -> Request<NativeClient>
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?;