import { HTTPMetadata } from "@apideck/unify/models/components";
let value: HTTPMetadata = {
response: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
request: new Request("https://example.com"),
};
Field | Type | Required | Description |
---|---|---|---|
response |
Response | ✔️ | Raw HTTP response; suitable for custom response parsing |
request |
Request | ✔️ | Raw HTTP request; suitable for debugging |