feat: support request-id header

This commit is contained in:
arcanis committed 2026-03-08 02:51:30 +02:00
1 parent 437ae2c16c
commit a809a4b67f
18 files changed
+424 -68

No files matched your search

+1
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";