GitRoot
Craft your forge, Build your project, Grow your community freely
1// SPDX-FileCopyrightText: 2026 Romain Maneschi <romain@gitroot.dev>
2//
3// SPDX-License-Identifier: MIT
4
5use serde::{Deserialize, Serialize};
6use std::collections::HashMap;
7
8#[derive(Debug, Deserialize, Serialize, Clone)]
9#[serde(rename_all = "camelCase")]
10pub struct HttpRequest {
11 pub method: String,
12 pub url: String,
13 pub body: String,
14 pub header: HashMap<String, Vec<String>>,
15}
16
17#[derive(Debug, Deserialize, Serialize, Clone)]
18#[serde(rename_all = "camelCase")]
19pub struct HttpResponse {
20 pub status_code: i32,
21 pub body: String,
22}