1use std::collections::HashMap;
2#[derive(Deserialize, Serialize)]
4pub struct Request {
5 pub url: String,
6 pub method: String,
7 pub body: String,
8 pub cf: HashMap<String, String>,
9 pub headers: HashMap<String, String>,
10}
11
12#[derive(Deserialize, Serialize)]
13pub struct Response {
14 pub status: u16,
15 pub headers: HashMap<String, String>,
16 pub body: String,
17}
18
19#[derive(Clone, PartialEq)]
20pub enum Method {
21 Get,
22 Head,
23 Post,
24 Put,
25 Delete,
26 Connect,
27 Options,
28 Trace,
29 Patch,
30}