MCPcopy
hub / github.com/fastify/fastify / setReplySerializer

Method setReplySerializer

types/instance.d.ts:535–535  ·  view source on GitHub ↗

* Set the reply serializer for all routes.

(replySerializer: (payload: unknown, statusCode: number) => string)

Source from the content-addressed store, hash-verified

533 * Set the reply serializer for all routes.
534 */
535 setReplySerializer(replySerializer: (payload: unknown, statusCode: number) => string): FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>;
536
537 /*
538 * Set the schema error formatter for all routes.

Callers 3

instance.tst.tsFile · 0.80
reply.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected