Enum http_test_server::http::Method[][src]

pub enum Method {
    GET,
    POST,
    PUT,
    DELETE,
    PATCH,
}

HTTP methods

Variants

Methods

impl Method
[src]

compares with string equivalent

let method = Method::POST;

assert!(method.equal("POST"));

Trait Implementations

impl Debug for Method
[src]

Formats the value using the given formatter. Read more

impl Clone for Method
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 !=.

Auto Trait Implementations

impl Send for Method

impl Sync for Method