Skip to content
tRPC

Partners

Function: httpLink()

On this page

httpLink<TRouter>(opts): TRPCLink<TRouter>

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

A terminating link that sends each call in its own HTTP request. It can send FormData and binary inputs.

Type Parameters

Type ParameterDefault type
TRouter extends AnyRouterAnyRouter

Parameters

ParameterType
optsHTTPLinkOptions<TRouter["_def"]["_config"]["$types"]>

Returns

TRPCLink<TRouter>

See

https://trpc.io/docs/client/links/httpLink