Type Alias: HTTPLinkOptions<TRoot>
On this page
HTTPLinkOptions<
TRoot>:HTTPLinkBaseOptions<TRoot> &object
Defined in: packages/client/dist/httpLink-Cd3n7PrK.d.mts:9
The options of httpLink.
Type declaration
headers?
optionalheaders: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 |