# Type Alias: HTTPLinkOptions<TRoot>

> 

> **HTTPLinkOptions**\<`TRoot`\>: `HTTPLinkBaseOptions`\<`TRoot`\> & `object`

Defined in: packages/client/dist/httpLink-Cd3n7PrK.d.mts:9

The options of `httpLink`.

## Type declaration

### headers?

> `optional` **headers**: `HTTPHeaders` \| (`opts`) => `HTTPHeaders` \| `Promise`\<`HTTPHeaders`\>

Headers for each request: an object, or a function of the operation
that returns them.

#### See

https://trpc.io/docs/client/headers

## Type Parameters

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

## See

https://trpc.io/docs/client/links/httpLink#httplink-options
