Extended parameters for creating a resource with streaming support.

Remarks

This interface extends CreateParameters to include an optional flag for returning an object instead of a stream.

interface CreateStreamParameters {
    body?: Record<string, any>;
    headers?: OutgoingHttpHeaders;
    query?: Record<string, any>;
    returnObject?: boolean;
    signal?: AbortSignal;
    url: string;
}

Hierarchy (view full)

Properties

body?: Record<string, any>

Optional body content for the request.

headers?: OutgoingHttpHeaders

Optional headers for the request.

query?: Record<string, any>

Optional query parameters for the request.

returnObject?: boolean

Flag to indicate whether to return the result as an object or a stream.

signal?: AbortSignal

Optional abort signal for the request.

url: string

The URL of the resource to create.