pub enum Method {
Get,
Head,
Post,
Put,
Delete,
Connect,
Options,
Trace,
Patch,
Extension(Box<str>),
}Expand description
HTTP method token (RFC 9110 Section 9).
Variants§
Implementations§
Source§impl Method
impl Method
Sourcepub fn is_idempotent(&self) -> bool
pub fn is_idempotent(&self) -> bool
True if the method is request-body safe by default (spec semantics).
Sourcepub fn is_cacheable(&self) -> bool
pub fn is_cacheable(&self) -> bool
Determine if the method is cacheable by default.
Trait Implementations§
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin 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