core.botresponsestream.startstreaming
Home > @medplum/core > BotResponseStream > startStreaming
BotResponseStream.startStreaming() method
Starts streaming with the given status code and headers. Must be called before write() to commit the HTTP response.
Signature:
startStreaming(statusCode: number, headers: Record<string, string>): void;
Parameters
Parameter | Type | Description |
|---|---|---|
statusCode | number | HTTP status code (e.g., 200) |
headers | Record<string, string> | HTTP headers to send |
Returns:
void