pub enum Method {
Dummy,
Connect,
Delete,
Get,
Head,
Options,
Patch,
Post,
Put,
Trace,
}
Expand description
Method of this Hyper Text Transfer Protocol Request.
Variants§
Dummy
Placeholder.
Connect
Establish a Tunnel to the Server identified by the Target Resource.
Delete
Delete the Specified Resource.
Get
Request a Representation of the Specified Resource. Requests using this Method shall only retrieve data.
Head
Asks for a Response identical to that of a GET Request, but without the Response Content.
Options
Describe the Communication Options for the Target Resource.
Patch
Apply Partial Modifications to a Resource.
Post
Submit an Entity to the Specified Resource, often causing a Change in State or Side Effects on the Server.
Put
Replace all Current Representations of the Target Resource with the Request Payload.
Trace
Perform a Message Loop-Back Test along the Path to the Target Resource.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Method
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