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