# Type Alias: FastifyHandlerOptions<TRouter, TRequest, TResponse>

> 

> **FastifyHandlerOptions**\<`TRouter`, `TRequest`, `TResponse`\>: [`HTTPBaseHandlerOptions`](https://trpc.io/docs/typedoc/server/http/interfaces/HTTPBaseHandlerOptions.md)\<`TRouter`, `TRequest`\> & `object` & [`NodeHTTPCreateContextOption`](https://trpc.io/docs/typedoc/server/adapters/node-http/type-aliases/NodeHTTPCreateContextOption.md)\<`TRouter`, `TRequest`, `TResponse`\>

Defined in: [packages/server/src/adapters/fastify/fastifyRequestHandler.ts:27](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/server/src/adapters/fastify/fastifyRequestHandler.ts#L27)

The options of the Fastify adapter's request handler.

## Type declaration

### maxBodySize?

> `optional` **maxBodySize**: `number`

The largest request body, in bytes. A larger one gets a
`PAYLOAD_TOO_LARGE` error. It applies to bodies tRPC streams, such as
`multipart/form-data`; JSON bodies are read by Fastify, so limit them
with Fastify's `bodyLimit`.

## Type Parameters

| Type Parameter |
| ------ |
| `TRouter` *extends* [`AnyTRPCRouter`](https://trpc.io/docs/typedoc/server/index/type-aliases/AnyTRPCRouter.md) |
| `TRequest` *extends* `FastifyRequest` |
| `TResponse` *extends* `FastifyReply` |
