-
Notifications
You must be signed in to change notification settings - Fork 1
http_method
github-actions edited this page Nov 21, 2024
·
1 revision
- 这是一个枚举类,定义了各种 HTTP 方法,包括
GET、POST、PUT、DELETE等常见方法以及一个表示未知方法的UNKNOWN。
- 参数:
-
method:HttpMethod类型的 HTTP 方法枚举值。
-
- 返回值:
std::string类型,对应的 HTTP 方法字符串表示。 - 作用:将给定的 HTTP 方法枚举值转换为字符串表示。
- 参数:
-
method:字符串类型的 HTTP 方法表示。
-
- 返回值:
HttpMethod类型,对应的 HTTP 方法枚举值。 - 作用:将给定的字符串形式的 HTTP 方法转换为枚举值。