OptionalbodyThe body of the HTTP response. Can be of any type, including strings, objects, or buffers.
OptionalcookiesResponse cookies as raw Set-Cookie strings (used by API Gateway HTTP API v2 / Function URLs).
OptionalheadersHeaders to include in the HTTP response. May be a Headers instance (from http-core) or a
plain record; the wrapper normalizes it and lifts out Set-Cookie.
OptionalisThe encoding format of the response body, such as base64.
OptionalmultiMulti-value response headers (used by API Gateway REST v1 / ALB to emit multiple Set-Cookie).
The HTTP status code of the response (e.g., 200, 404).
OptionalstatusThe status message accompanying the HTTP status code (e.g., OK, Not Found).
OptionalversionThe detected trigger family, used to choose the correct multi-cookie response shape.
Represents options for configuring a raw HTTP response.
Extends the
RawResponseOptionsinterface to include additional properties for managing response content, headers, status codes, and streaming files.