Methods
2025年3月31日小于 1 分钟hyperlanewebrustmethodstype
提示
hyperlane
框架的 Methods
内部具体类型定义如下
/// Defines the `Methods` enum, representing HTTP request methods.
///
/// The `Methods` enum includes commonly used HTTP methods such as `GET` and `POST`.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Methods {
/// 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),
}