# Type Alias: HTTPBatchStreamLinkOptions<TRoot>

> 

> **HTTPBatchStreamLinkOptions**\<`TRoot`\>: [`HTTPBatchLinkOptions`](https://trpc.io/docs/typedoc/client/index/type-aliases/HTTPBatchLinkOptions.md)\<`TRoot`\> & `object`

Defined in: [packages/client/src/links/httpBatchStreamLink.ts:27](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/links/httpBatchStreamLink.ts#L27)

Options for [httpBatchStreamLink](https://trpc.io/docs/typedoc/client/index/functions/httpBatchStreamLink.md). Takes the same options as
`httpBatchLink`, plus `streamHeader`.

## Type declaration

### streamHeader?

> `optional` **streamHeader**: `"trpc-accept"` \| `"accept"`

Which header to use to signal the server that the client wants a streaming response.
- `'trpc-accept'` (default): sends `trpc-accept: application/jsonl` header
- `'accept'`: sends `Accept: application/jsonl` header, which can avoid CORS preflight for cross-origin streaming queries. Be aware that `application/jsonl` is 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'
```

## Type Parameters

| Type Parameter |
| ------ |
| `TRoot` *extends* `AnyClientTypes` |

## See

https://trpc.io/docs/client/links/httpBatchStreamLink#options
