Enum restless_core::Method
source · pub enum Method {
Get,
Head,
Post,
Put,
Delete,
Connect,
Options,
Trace,
Patch,
}
Expand description
HTTP Method.
HTTP defines a set of request methods. These define if a request mutates something, if it can be cached, if it is idempotent and the semantics of the request. See HTTP request methods for an explainer of these.
Variants§
Get
Requests a representation of the specified resource. Should only retrieve data.
Head
Similar to a Get
request, but without the response body. Only retrieves headers.
Post
Submits an entry to the specified resource. Often causes a change in state or side-effects.
Put
Replaces the target resource with the request payload. Is idempotent.
Delete
Deletes the specified resource on the server.
Connect
Establishes a tunnel to the server identified by the target resource.
Options
Describes the communication options for the target resource.
Trace
Performs a message loop-back test to the target resource.
Patch
Applies partial modifications to the target resource.
Trait Implementations§
source§impl Ord for Method
impl Ord for Method
source§impl PartialEq for Method
impl PartialEq for Method
source§impl PartialOrd for Method
impl PartialOrd for Method
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more