MCPcopy
hub / github.com/fastify/fastify / then

Method then

types/reply.d.ts:73–73  ·  view source on GitHub ↗
(fulfilled: () => void, rejected: (err: Error) => void)

Source from the content-addressed store, hash-verified

71 serializeInput(input: { [key: string]: unknown }, schema: { [key: string]: unknown }, httpStatus?: string, contentType?: string): string;
72 serializeInput(input: { [key: string]: unknown }, httpStatus: string, contentType?: string): unknown;
73 then(fulfilled: () => void, rejected: (err: Error) => void): void;
74 trailer: (
75 key: string,
76 fn: ((reply: FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>, payload: string | Buffer | null) => Promise<string>) | ((reply: FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>, payload: string | Buffer | null, done: (err: Error | null, value?: string) => void) => void)

Callers 15

readyFunction · 0.80
preValidationCallbackFunction · 0.80
validateParamFunction · 0.80
validateAsyncParamsFunction · 0.80
validateAsyncBodyFunction · 0.80
validateAsyncQueryFunction · 0.80
validateAsyncHeadersFunction · 0.80
wrapFunction · 0.80
nextFunction · 0.80
onReadFunction · 0.80
onDrainFunction · 0.80
sendWebStreamFunction · 0.80

Calls

no outgoing calls

Tested by 2

runBadClientCallFunction · 0.64