core.botresponsestream.startstreaming | Medplum
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 [](/content/docs/sdk/core.botresponsestream.startstreaming#parameters "Direct link to Parameters"/index.html)
| Parameter | Type | Description |
|---|---|---|
| statusCode | number | HTTP status code (e.g., 200) |
| headers | Record<string, string> | HTTP headers to send |
Returns:
void