pub enum HttpMethod {
    Get,
    Post,
    Put,
    Delete,
    Patch,
}
Expand description

The enum representing http request method

The variants’ documentations are taken from MDN, which is written by Mozilla Contributors, licensed under CC=BY-SA v2.5

Variants

Get

The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.

Post

The POST method submits an entity to the specified resource, often causing a change in state or side effects on the server.

Put

The PUT method replaces all current representations of the target resource with the request payload.

Delete

The DELETE method deletes the specified resource.

Patch

The PATCH method applies partial modifications to a resource.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.