[go: up one dir, main page]

delete

Function delete 

Source
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.

Read more on MDN

§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?;