Skip to content
tRPC

Partners

Type Alias: HTTPLinkOptions<TRoot>

On this page

HTTPLinkOptions<TRoot>: HTTPLinkBaseOptions<TRoot> & object

Defined in: packages/client/src/links/httpLink.ts:32

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