pub enum Method {
Get,
Head,
Post,
Put,
Delete,
Connect,
Options,
Trace,
Patch,
Custom(String),
}
Expand description
An HTTP request method.
Variants§
Get
The GET method
Head
The HEAD method
Post
The POST method
Put
The PUT method
Delete
The DELETE method
Connect
The CONNECT method
Options
The OPTIONS method
Trace
The TRACE method
Patch
The PATCH method
Custom(String)
A custom method, use with care: the string will be embedded in your request as-is.
Trait Implementations§
source§impl PartialEq<Method> for Method
impl PartialEq<Method> for Method
impl Eq for Method
impl StructuralEq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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