Skip to content

@loontail/minecraft-kit v0.8.14 / HttpHeaders

Type alias: HttpHeaders

ts
type HttpHeaders: Readonly<Record<string, string>>;

Subset of fetch headers the library actually uses.

Example

ts
import type { HttpHeaders } from "@loontail/minecraft-kit";

const headers: HttpHeaders = { authorization: `Bearer ${token}`, accept: "application/json" };
await kit["http"]?.request("https://example.com", { headers });

Source

src/types/http.ts:12

MIT License