Enum tiny_http::Method
[−]
[src]
pub enum Method { Get, Head, Post, Put, Delete, Connect, Options, Trace, Patch, NonStandard(AsciiString), }
Variants
Get
GET
Head
HEAD
Post
POST
Put
PUT
Delete
DELETE
Connect
CONNECT
Options
OPTIONS
Trace
TRACE
Patch
PATCH
NonStandard(AsciiString)
Request methods not standardized by the IETF
Methods
impl Method
[src]
Trait Implementations
impl Debug for Method
[src]
impl Clone for Method
[src]
fn clone(&self) -> Method
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl FromStr for Method
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Method, ()>
Parses a string s
to return a value of this type. Read more
impl Display for Method
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl PartialEq for Method
[src]
fn eq(&self, other: &Method) -> bool
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
This method tests for !=
.