Skip to main content
Version: 11.x

Type Alias: HTTPLinkOptions<TRoot>

HTTPLinkOptions<TRoot>: HTTPLinkBaseOptions<TRoot> & object

Type declaration

headers?

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

Headers to be set on outgoing requests or a callback that of said headers

See

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

Type Parameters

Type Parameter
TRoot extends AnyClientTypes

Defined in

packages/client/dist/links/httpLink.d.ts:4