Enum reqores::HttpMethod
source · [−]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
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin for HttpMethod
impl UnwindSafe for HttpMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more