use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Deserialize, Serialize, Debug, Clone)]
#[serde(rename_all = "UPPERCASE")]
pub enum HttpMethod {
GET,
POST,
PUT,
DELETE,
HEAD,
}
#[derive(Serialize, Deserialize)]
pub struct HttpRequest {
pub id: String,
pub method: HttpMethod,
pub url: String,
pub headers: HashMap<String, String>,
pub query_params: Option<Vec<(String, String)>>,
pub body: Option<String>,
}