Type Alias: HTTPBatchStreamLinkOptions<TRoot>
HTTPBatchStreamLinkOptions<
TRoot>:HTTPBatchLinkOptions<TRoot> &object
Defined in: packages/client/src/links/httpBatchStreamLink.ts:21
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
ts'trpc-accept'
ts'trpc-accept'
Type Parameters
| Type Parameter |
|---|
TRoot extends AnyClientTypes |