HttpSinkOptions
Defined in: src/sinks/http.ts:16
Options for httpSink.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
fetch? |
SinkFetch |
Custom fetch (tests, proxies). Default globalThis.fetch. |
src/sinks/http.ts:32 |
format? |
"json" | "ndjson" |
Body format: - "json" (default) — { "stream", "tenant", "items": [...] }, application/json; - "ndjson" — one StreamItem JSON object per line, application/x-ndjson. |
src/sinks/http.ts:26 |
headers? |
SinkHeaders |
Extra headers (auth tokens…), static or resolved per batch. | src/sinks/http.ts:20 |
method? |
"POST" | "PUT" |
HTTP method. Default "POST". |
src/sinks/http.ts:28 |
timeoutMs? |
number |
Request timeout. Default 10 000 ms. | src/sinks/http.ts:30 |
url |
string |
Destination URL. | src/sinks/http.ts:18 |