http_type/methods/
type.rs

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