pub enum HttpMethod {
Show 39 variants
Acl,
BaselineControl,
Bind,
Checkin,
Checkout,
Connect,
Copy,
Delete,
Get,
Head,
Label,
Link,
Lock,
Merge,
Mkactivity,
Mkcalendar,
Mkcol,
Mkredirectref,
Mkworkspace,
Move,
Options,
Orderpatch,
Patch,
Post,
Pri,
Propfind,
Proppatch,
Put,
Rebind,
Report,
Search,
Trace,
Unbind,
Uncheckout,
Unlink,
Unlock,
Update,
Updateredirectref,
VersionControl,
}Expand description
HTTP Method.
See [IANA’s HTTP Method Registry] (https://www.iana.org/assignments/http-methods/http-methods.xhtml) for more details about each method.
§Examples
use miasht::Method;
assert_eq!(Method::try_from_str("GET"), Some(Method::Get));
assert_eq!(Method::try_from_str("get"), None); // case senstive
let method = Method::try_from_str("GET").unwrap();
assert_eq!(method.as_str(), "GET");
assert_eq!(method.to_string(), "GET");Variants§
Acl
BaselineControl
Bind
Checkin
Checkout
Connect
Copy
Delete
Get
Head
Label
Link
Lock
Merge
Mkactivity
Mkcalendar
Mkcol
Mkredirectref
Mkworkspace
Move
Options
Orderpatch
Patch
Post
Pri
Propfind
Proppatch
Put
Rebind
Report
Search
Trace
Unbind
Uncheckout
Unlink
Unlock
Update
Updateredirectref
VersionControl
Implementations§
Trait Implementations§
impl Copy for Method
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.