pub enum HttpMethod {
Connect,
Delete,
Get,
Head,
Options,
Patch,
Post,
Put,
Trace,
Other(String),
}Expand description
Methods to be used in HTTP requests
Variants§
Connect
The CONNECT method establishes a tunnel to the server identified by the target resource.
Delete
The DELETE method deletes the specified resource
Get
The GET method requests a representation of the specified resource
Head
The HEAD method asks for a response identical to a GET request, but without the
response body
Options
The OPTIONS method describes the communication options for the target resource
Patch
The PATCH method applies partial modifications to a resource
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
Trace
The TRACE method performs a message loop-back test along the path to the target resource
Other(String)
Other/Unknown method
Trait Implementations§
Source§impl Clone for HttpMethod
impl Clone for HttpMethod
Source§fn clone(&self) -> HttpMethod
fn clone(&self) -> HttpMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more