Enum minreq::Method[][src]

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

An HTTP request method.

Variants

The GET method

The HEAD method

The POST method

The PUT method

The DELETE method

The CONNECT method

The OPTIONS method

The TRACE method

The PATCH method

A custom method, use with care: the string will be embedded in your request as-is.

Trait Implementations

impl Display for Method
[src]

Formats the Method to the form in the HTTP request, ie. Method::Get -> "GET", Method::Post -> "POST", etc.

Auto Trait Implementations

impl Send for Method

impl Sync for Method