MCPcopy
hub / github.com/fastify/fastify / getSerializationFunction

Method getSerializationFunction

types/reply.d.ts:68–68  ·  view source on GitHub ↗
(httpStatus: string, contentType?: string)

Source from the content-addressed store, hash-verified

66 serialize(payload: any): string | ArrayBuffer | Buffer;
67 // Serialization Methods
68 getSerializationFunction(httpStatus: string, contentType?: string): ((payload: { [key: string]: unknown }) => string) | undefined;
69 getSerializationFunction(schema: { [key: string]: unknown }): ((payload: { [key: string]: unknown }) => string) | undefined;
70 compileSerializationSchema(schema: { [key: string]: unknown }, httpStatus?: string, contentType?: string): (payload: { [key: string]: unknown }) => string;
71 serializeInput(input: { [key: string]: unknown }, schema: { [key: string]: unknown }, httpStatus?: string, contentType?: string): string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected