Enum tiny_http::Method [] [src]

pub enum Method {
    Get,
    Head,
    Post,
    Put,
    Delete,
    Connect,
    Options,
    Trace,
    Patch,
    NonStandard(AsciiString),
}

HTTP request methods

As per RFC 7231 and RFC 5789

Variants

GET

HEAD

POST

PUT

DELETE

CONNECT

OPTIONS

TRACE

PATCH

Request methods not standardized by the IETF

Methods

impl Method
[src]

Trait Implementations

impl Debug for Method
[src]

Formats the value using the given formatter.

impl Clone for Method
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromStr for Method
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Method
[src]

Formats the value using the given formatter.

impl PartialEq for Method
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Method
[src]