Type Alias: FastifyHandlerOptions<TRouter, TRequest, TResponse>
On this page
FastifyHandlerOptions<
TRouter,TRequest,TResponse>:HTTPBaseHandlerOptions<TRouter,TRequest> &object&NodeHTTPCreateContextOption<TRouter,TRequest,TResponse>
Defined in: packages/server/src/adapters/fastify/fastifyRequestHandler.ts:27
The options of the Fastify adapter's request handler.
Type declaration
maxBodySize?
optionalmaxBodySize: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 |
TRequest extends FastifyRequest |
TResponse extends FastifyReply |