suborbital/http/method.rs
1pub enum Method {
2 GET,
3 HEAD,
4 OPTIONS,
5 POST,
6 PUT,
7 PATCH,
8 DELETE,
9}
10
11impl From<Method> for i32 {
12 fn from(field_type: Method) -> Self {
13 match field_type {
14 Method::GET => 0,
15 Method::HEAD => 1,
16 Method::OPTIONS => 2,
17 Method::POST => 3,
18 Method::PUT => 4,
19 Method::PATCH => 5,
20 Method::DELETE => 6,
21 }
22 }
23}