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
 5@json
 6export class HttpRequest {
 7  constructor(
 8    public method: string,
 9    public url: string,
10    public body: string,
11    public header: Map<string, Array<string>>,
12  ) {}
13}
14
15@json
16export class HttpResponse {
17  constructor(
18    public statusCode: u32,
19    public body: string,
20  ) {}
21}