Type Alias: HTTPBatchStreamLinkOptions<TRoot>
On this page
HTTPBatchStreamLinkOptions<
TRoot>:HTTPBatchLinkOptions<TRoot> &object
Defined in: packages/client/dist/index.d.mts:267
Options for httpBatchStreamLink. Takes the same options as
httpBatchLink, plus streamHeader.
Type declaration
streamHeader?
optionalstreamHeader:"trpc-accept"|"accept"
Which header to use to signal the server that the client wants a streaming response.
'trpc-accept'(default): sendstrpc-accept: application/jsonlheader'accept': sendsAccept: application/jsonlheader, which can avoid CORS preflight for cross-origin streaming queries. Be aware thatapplication/jsonlis not an official MIME type and so this is not completely spec-compliant - you should test that your infrastructure supports this value.
Default
'trpc-accept'Type Parameters
| Type Parameter |
|---|
TRoot extends AnyClientTypes |
See
https://trpc.io/docs/client/links/httpBatchStreamLink#options