Enum htrpc::types::HttpMethod
[−]
[src]
pub enum HttpMethod { 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, }
HTTP Method.
See IANA's HTTP Method Registry 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
Methods
impl Method
[src]
Trait Implementations
impl Hash for Method
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Copy for Method
[src]
impl Clone for Method
[src]
fn clone(&self) -> Method
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Method> for Method
[src]
fn eq(&self, __arg_0: &Method) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for Method
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.