feat: support request-id header

This commit is contained in:
2026-03-08 02:12:46 +02:00
parent 437ae2c16c
commit a809a4b67f
18 changed files with 424 additions and 68 deletions

View File

@@ -40,6 +40,7 @@ export class Client {
const headers: Record<string, string> = {
Accept: "application/json",
"X-Request-ID": crypto.randomUUID(),
};
if (json !== undefined) {
headers["Content-Type"] = "application/json";