http_type/methods/
enum.rs

1/// Defines the `Method` enum, representing HTTP request methods.
2#[derive(Debug, Clone, PartialEq, Eq)]
3pub enum Method {
4    /// Represents the HTTP `GET` method.
5    GET,
6    /// Represents the HTTP `POST` method.
7    POST,
8    /// Represents the HTTP `PUT` method.
9    PUT,
10    /// Represents the HTTP `DELETE` method.
11    DELETE,
12    /// Represents the HTTP `PATCH` method.
13    PATCH,
14    /// Represents the HTTP `HEAD` method.
15    HEAD,
16    /// Represents the HTTP `OPTIONS` method.
17    OPTIONS,
18    /// Represents the HTTP `CONNECT` method.
19    CONNECT,
20    /// Represents the HTTP `TRACE` method.
21    TRACE,
22    /// Unknown
23    UNKNOWN(String),
24}