RequestMethod

Type Alias RequestMethod 

Source
pub type RequestMethod = Method;
Expand description

An alias for Method, representing the HTTP request method.

Aliased Type§

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

Variants§

§

Get

Represents the HTTP GET method.

§

Post

Represents the HTTP POST method.

§

Put

Represents the HTTP PUT method.

§

Delete

Represents the HTTP DELETE method.

§

Patch

Represents the HTTP PATCH method.

§

Head

Represents the HTTP HEAD method.

§

Options

Represents the HTTP OPTIONS method.

§

Connect

Represents the HTTP CONNECT method.

§

Trace

Represents the HTTP TRACE method.

§

Unknown(String)

Unknown