MCPcopy
hub / github.com/fastify/fastify / serializer

Method serializer

types/reply.d.ts:65–65  ·  view source on GitHub ↗
(fn: (payload: any) => string)

Source from the content-addressed store, hash-verified

63 callNotFound(): void;
64 type(contentType: string): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;
65 serializer(fn: (payload: any) => string): FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>;
66 serialize(payload: any): string | ArrayBuffer | Buffer;
67 // Serialization Methods
68 getSerializationFunction(httpStatus: string, contentType?: string): ((payload: { [key: string]: unknown }) => string) | undefined;

Callers 4

hooks.test.jsFile · 0.80
reply.test.jsFile · 0.80
get.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected