http_type/methods/
enum.rs

1/// Defines the `Method` enum, representing HTTP request methods.
2///
3/// This enum provides a comprehensive list of standard HTTP methods,
4/// such as GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, CONNECT, and TRACE.
5/// It also includes an `UNKNOWN` variant for unrecognized methods.
6#[derive(Debug, Clone, PartialEq, Eq)]
7pub enum Method {
8    /// Represents the HTTP `GET` method.
9    GET,
10    /// Represents the HTTP `POST` method.
11    POST,
12    /// Represents the HTTP `PUT` method.
13    PUT,
14    /// Represents the HTTP `DELETE` method.
15    DELETE,
16    /// Represents the HTTP `PATCH` method.
17    PATCH,
18    /// Represents the HTTP `HEAD` method.
19    HEAD,
20    /// Represents the HTTP `OPTIONS` method.
21    OPTIONS,
22    /// Represents the HTTP `CONNECT` method.
23    CONNECT,
24    /// Represents the HTTP `TRACE` method.
25    TRACE,
26    /// Unknown
27    UNKNOWN(String),
28}