Enum stream_httparse::Method[][src]

pub enum Method {
    OPTIONS,
    GET,
    HEAD,
    POST,
    PUT,
    DELETE,
    TRACE,
    CONNECT,
}

The different HTTP-Methods as defined by RFC 2616 5.1.1

Variants

OPTIONS

Requests the Communication-Options available for a given Ressource

GET

Retrieves the specified Ressource from the Server

HEAD

Identical to the GET-Method, but the Server is not required to return a Response-Body

POST

Used to post Data to the Server

PUT

Tells the Server to store the supplied Body under a given Ressource URI

DELETE

Requests that the given Data assosicated with the Ressource-URI is deleted

TRACE

Used to invoke a remote application-layer loopback

CONNECT

Reserved

Implementations

impl Method[src]

pub fn parse(raw_method: &str) -> Option<Method>[src]

Parses the raw Method into one of the known Methods, returns None if the Method is unknown

pub fn serialize(&self) -> &'static str[src]

Serializes the Method into a static String for that Method

Trait Implementations

impl Clone for Method[src]

impl Debug for Method[src]

impl Display for Method[src]

impl PartialEq<Method> for Method[src]

impl StructuralPartialEq for Method[src]

Auto Trait Implementations

impl RefUnwindSafe for Method

impl Send for Method

impl Sync for Method

impl Unpin for Method

impl UnwindSafe for Method

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.