Enum rocket::http::hyper::Method [−][src]
pub enum Method {
Options,
Get,
Post,
Put,
Delete,
Head,
Trace,
Connect,
Patch,
Extension(String),
}
Expand description
The Request Method (VERB)
Currently includes 8 variants representing the 8 methods defined in RFC 7230, plus PATCH, and an Extension variant for all extensions.
It may make sense to grow this to include all variants currently registered with IANA, if they are at all common to use.
Variants
OPTIONS
GET
POST
PUT
DELETE
HEAD
TRACE
CONNECT
PATCH
Extension(String)
Method extensions. An example would be let m = Extension("FOO".to_string())
.
Tuple Fields of Extension
0: String
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Method
impl UnwindSafe for Method
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.