Response payload — a string, number, or object.
Either a numeric HTTP status code, or a ResponseInit object
that is merged into the response (status defaults to 200).
A Response with a JSON body and the configured headers.
return res({ id: user.id }, 201);
Generated using TypeDoc
Builds a JSON
Responseusing Apiker's per-request response headers.The payload is normalized (strings/numbers become
{ message }) and pretty-printed with 4-space indentation whenapiker.debugis enabled.