Stone.js API
    Preparing search index...

    Represents options for configuring a raw HTTP response.

    Extends the RawResponseOptions interface to include additional properties for managing response content, headers, status codes, and streaming files.

    interface RawHttpResponseOptions {
        body?: unknown;
        cookies?: string[];
        headers?: Record<string, string> | Headers;
        isBase64Encoded?: boolean;
        multiValueHeaders?: Record<string, string[]>;
        statusCode: number;
        statusMessage?: string;
        version?: "v1" | "v2" | "alb";
        [k: string | number | symbol]: unknown;
    }

    Hierarchy

    • RawResponseOptions
      • RawHttpResponseOptions

    Indexable

    • [k: string | number | symbol]: unknown
    Index
    body?: unknown

    The body of the HTTP response. Can be of any type, including strings, objects, or buffers.

    cookies?: string[]

    Response cookies as raw Set-Cookie strings (used by API Gateway HTTP API v2 / Function URLs).

    headers?: Record<string, string> | Headers

    Headers 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.

    isBase64Encoded?: boolean

    The encoding format of the response body, such as base64.

    multiValueHeaders?: Record<string, string[]>

    Multi-value response headers (used by API Gateway REST v1 / ALB to emit multiple Set-Cookie).

    statusCode: number

    The HTTP status code of the response (e.g., 200, 404).

    statusMessage?: string

    The status message accompanying the HTTP status code (e.g., OK, Not Found).

    version?: "v1" | "v2" | "alb"

    The detected trigger family, used to choose the correct multi-cookie response shape.