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;
        headers?: Record<string, string> | Headers;
        isBase64Encoded?: boolean;
        multiValueHeaders?: Record<string, string[]>;
        statusCode: number;
        statusMessage?: string;
        [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.

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