Enum mini_server::HTTPMethod
source · pub enum HTTPMethod {
CONNECT,
DELETE,
GET,
HEAD,
OPTIONS,
PATCH,
POST,
PUT,
TRACE,
}
Expand description
The HTTPMethod enum represents the HTTP methods that can be used in HTTP requests. Each variant corresponds to a standard HTTP method.
Variants§
CONNECT
Used to establish a network connection to a resource.
DELETE
Requests that a resource be removed.
GET
Requests a representation of a resource.
HEAD
Requests the headers of a resource without the body.
OPTIONS
Describes the communication options for the target resource.
PATCH
Applies partial modifications to a resource.
POST
Submits data to be processed to a specified resource.
PUT
Updates a resource or creates a new resource if it does not exist.
TRACE
Performs a message loop-back test along the path to the target resource.
Trait Implementations§
source§impl Clone for HTTPMethod
impl Clone for HTTPMethod
source§fn clone(&self) -> HTTPMethod
fn clone(&self) -> HTTPMethod
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HTTPMethod
impl Debug 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)