# Function: httpLink()

> 

> **httpLink**\<`TRouter`\>(`opts`): [`TRPCLink`](https://trpc.io/docs/typedoc/react-query/index/type-aliases/TRPCLink.md)\<`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 Parameter | Default type |
| ------ | ------ |
| `TRouter` *extends* `AnyRouter` | `AnyRouter` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | [`HTTPLinkOptions`](https://trpc.io/docs/typedoc/react-query/index/type-aliases/HTTPLinkOptions.md)\<`TRouter`\[`"_def"`\]\[`"_config"`\]\[`"$types"`\]\> |

## Returns

[`TRPCLink`](https://trpc.io/docs/typedoc/react-query/index/type-aliases/TRPCLink.md)\<`TRouter`\>

## See

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