# Type Alias: HTTPLinkOptions<TRoot>

> 

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

Defined in: [packages/client/src/links/httpLink.ts:32](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/links/httpLink.ts#L32)

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
