pub enum HttpMethod {
Get,
Head,
Post,
Put,
Delete,
}Expand description
The verbs a request can use.
Variants§
Get
Reads the resource.
Head
Asks for the headers only, without the body.
Post
Sends the request body to the server for processing.
Put
Replaces the resource with the request body.
Delete
Removes the resource.
Implementations§
Trait Implementations§
Source§impl Clone for HttpMethod
impl Clone for HttpMethod
impl Copy for HttpMethod
Source§impl Debug for HttpMethod
impl Debug for HttpMethod
Source§impl Default for HttpMethod
impl Default for HttpMethod
impl Eq for HttpMethod
Source§impl Hash for HttpMethod
impl Hash for HttpMethod
Source§impl PartialEq for HttpMethod
impl PartialEq for HttpMethod
impl StructuralPartialEq for HttpMethod
Auto Trait Implementations§
impl Freeze for HttpMethod
impl RefUnwindSafe for HttpMethod
impl Send for HttpMethod
impl Sync for HttpMethod
impl Unpin for HttpMethod
impl UnsafeUnpin for HttpMethod
impl UnwindSafe for HttpMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more