Upgrading fastify 2 to 3
Unknown2.15.3 → 3.29.5
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
DepDelta is still reading the release notes in this range. This updates as they come in.
No longer states a Node.js requirement from 3.18.1 (was >=6).
Adds @fastify/ajv-compiler ^1.0.0, @fastify/error ^2.0.0, fast-content-type-parse ^1.0.0, process-warning ^1.0.0, semver ^7.3.2.
Drops ajv, middie, readable-stream.
Installs 48 packages in all (was 45).
Also installs fast-uri, queue-microtask, require-from-string.
No longer installs inherits, path-to-regexp, safe-buffer, string_decoder, util-deprecate.
Moves ajv 6.15.0 → 6.15.0, 8.20.0, avvio 6.5.0 → 7.2.5, cookie 0.4.2 → 0.5.0, fast-json-stringify 1.21.0 → 2.7.13, fast-redact 2.1.0 → 3.5.0, find-my-way 2.2.5 → 4.5.1, json-schema-traverse 0.4.1 → 0.4.1, 1.0.0, light-my-request 3.8.0 → 4.12.0, pino 5.17.0 → 6.14.0, pino-std-serializers 2.5.0 → 3.2.0, quick-format-unescaped 3.0.3 → 4.0.4, sonic-boom 0.7.7 → 1.4.1, tiny-lru 7.0.6 → 8.0.2. Your build may pick other versions.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
interface FastifyError - added:
property FastifyError.validation?: ValidationResult[]
- removed:
export = fastify - removed:
function fastify<HttpServer extends (http.Server | http2.Http2Server) = http.Server, HttpRequest extends (http.IncomingMessage | http2.Http2ServerRequest) = http.IncomingMessage, HttpResponse extends (http.ServerResponse | http2.Http2ServerResponse) = http.ServerResponse>(opts?: fastify.ServerOptions): fastify.FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
index fastify.RegisterOptions[key: string]: any - removed:
interface fastify.FastifyContext - removed:
interface fastify.FastifyError extends Error - removed:
interface fastify.FastifyInstance<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse> - removed:
interface fastify.FastifyReply<HttpResponse> - removed:
interface fastify.FastifyRequest<HttpRequest = http.IncomingMessage, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> - removed:
interface fastify.HTTPInjectOptions extends LightMyRequest.InjectOptions - removed:
interface fastify.HTTPInjectResponse extends LightMyRequest.Response - removed:
interface fastify.ListenOptions - removed:
interface fastify.Logger - removed:
interface fastify.RegisterOptions<HttpServer, HttpRequest, HttpResponse> - removed:
interface fastify.RouteOptions<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> extends RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> - removed:
interface fastify.RouteSchema - removed:
interface fastify.RouteShorthandOptions<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> - removed:
interface fastify.ServerOptions - removed:
interface fastify.ServerOptionsAsHttp extends ServerOptions - removed:
interface fastify.ServerOptionsAsHttp2 extends ServerOptions - removed:
interface fastify.ServerOptionsAsSecure extends ServerOptions - removed:
interface fastify.ServerOptionsAsSecureHttp extends ServerOptionsAsHttp, ServerOptionsAsSecure - removed:
interface fastify.ServerOptionsAsSecureHttp2 extends ServerOptionsAsHttp2, ServerOptionsAsSecure - removed:
interface fastify.ValidationResult - removed:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], opts: { bodyLimit?: number }, parser: ContentTypeParser<HttpRequest>): void - removed:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], opts: { parseAs: 'buffer'; bodyLimit?: number }, parser: BodyParser<HttpRequest, Buffer>): void - removed:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], opts: { parseAs: 'string'; bodyLimit?: number }, parser: BodyParser<HttpRequest, string>): void - removed:
method fastify.FastifyInstance.addContentTypeParser(contentType: string | string[], parser: ContentTypeParser<HttpRequest>): void - removed:
method fastify.FastifyInstance.addHook(name: 'onClose', hook: (instance: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, done: () => void) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'onError', hook: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>, error: FastifyError, done: () => void) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'onRegister', hook: (instance: FastifyInstance) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'onRequest', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'onResponse', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'onRoute', hook: (opts: RouteOptions<HttpServer, HttpRequest, HttpResponse> & { path: string, prefix: string }) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'onSend', hook: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>, payload: any, done: (err?: Error, value?: any) => void) => void): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'preHandler', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'preParsing', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'preSerialization', hook: FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addHook(name: 'preValidation', hook: FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.addSchema(schema: object): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.after(afterListener: (err: Error) => void): void - removed:
method fastify.FastifyInstance.after(afterListener: (err: Error, context: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, done: Function) => void): void - removed:
method fastify.FastifyInstance.after(afterListener: (err: Error, done: Function) => void): void - removed:
method fastify.FastifyInstance.all<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.all<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.close(closeListener: () => void): void - removed:
method fastify.FastifyInstance.close<T = any>(): Promise<T> - removed:
method fastify.FastifyInstance.decorate(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.decorateReply(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.decorateRequest(name: string, decoration: any, dependencies?: Array<string>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.delete<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.delete<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.get<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.get<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.getSchemas(): { [shemaId: string]: Object } - removed:
method fastify.FastifyInstance.hasContentTypeParser(contentType: string): boolean - removed:
method fastify.FastifyInstance.hasDecorator(name: string): boolean - removed:
method fastify.FastifyInstance.hasReplyDecorator(name: string): boolean - removed:
method fastify.FastifyInstance.hasRequestDecorator(name: string): boolean - removed:
method fastify.FastifyInstance.head<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.head<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.inject(): LightMyRequest.Chain - removed:
method fastify.FastifyInstance.inject(opts: HTTPInjectOptions | string): Promise<HTTPInjectResponse> - removed:
method fastify.FastifyInstance.inject(opts: HTTPInjectOptions | string, cb: (err: Error, res: HTTPInjectResponse) => void): void - removed:
method fastify.FastifyInstance.listen(callback: (err: Error, address: string) => void): void - removed:
method fastify.FastifyInstance.listen(options: ListenOptions): Promise<string> - removed:
method fastify.FastifyInstance.listen(options: ListenOptions, callback: (err: Error, address: string) => void): void - removed:
method fastify.FastifyInstance.listen(port: number, address: string, backlog: number, callback: (err: Error, address: string) => void): void - removed:
method fastify.FastifyInstance.listen(port: number, address: string, callback: (err: Error, address: string) => void): void - removed:
method fastify.FastifyInstance.listen(port: number, address?: string, backlog?: number): Promise<string> - removed:
method fastify.FastifyInstance.listen(port: number, callback: (err: Error, address: string) => void): void - removed:
method fastify.FastifyInstance.listen(sockFile: string): Promise<string> - removed:
method fastify.FastifyInstance.listen(sockFile: string, callback: (err: Error, address: string) => void): void - removed:
method fastify.FastifyInstance.options<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.options<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.patch<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.patch<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.post<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.post<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.printRoutes(): string - removed:
method fastify.FastifyInstance.put<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.put<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(url: string, opts: RouteShorthandOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>, handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.ready(): Promise<FastifyInstance<HttpServer, HttpRequest, HttpResponse>> - removed:
method fastify.FastifyInstance.ready(readyListener: (err: Error) => void): void - removed:
method fastify.FastifyInstance.ready(readyListener: (err: Error, context: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, done: Function) => void): void - removed:
method fastify.FastifyInstance.ready(readyListener: (err: Error, done: Function) => void): void - removed:
method fastify.FastifyInstance.register<Options extends RegisterOptions<HttpServer, HttpRequest, HttpResponse>, PluginInstance extends Function>(plugin: Plugin<HttpServer, HttpRequest, HttpResponse, Options, PluginInstance>, options?: Options): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.route<Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody>(opts: RouteOptions<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.setErrorHandler<E = FastifyError>(handler: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, error: E, request: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>) => void): void - removed:
method fastify.FastifyInstance.setNotFoundHandler(handler: (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, request: FastifyRequest<HttpRequest>, reply: FastifyReply<HttpResponse>) => void): void - removed:
method fastify.FastifyInstance.setReplySerializer(handler: (payload: string | object | Buffer | NodeJS.ReadableStream, statusCode: number) => string): void - removed:
method fastify.FastifyInstance.setSchemaCompiler(schemaCompiler: SchemaCompiler): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.setSchemaResolver(schemaResolver: SchemaResolver): FastifyInstance<HttpServer, HttpRequest, HttpResponse> - removed:
method fastify.FastifyInstance.use(middleware: Middleware<HttpServer, HttpRequest, HttpResponse>): void - removed:
method fastify.FastifyInstance.use(path: string, middleware: Middleware<HttpServer, HttpRequest, HttpResponse>): void - removed:
method fastify.FastifyInstance.use(path: string[], middleware: Middleware<HttpServer, HttpRequest, HttpResponse>): void - removed:
method fastify.FastifyReply.callNotFound(): void - removed:
method fastify.FastifyReply.code(statusCode: number): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.getHeader(name: string): string | undefined - removed:
method fastify.FastifyReply.getResponseTime(): number - removed:
method fastify.FastifyReply.hasHeader(name: string): boolean - removed:
method fastify.FastifyReply.header(name: string, value: any): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.headers(headers: { [key: string]: any }): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.redirect(statusCode: number, url: string): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.redirect(url: string): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.removeHeader(name: string): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.send<T>(payload?: T): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.serialize(payload: any): string - removed:
method fastify.FastifyReply.serializer(fn: Function): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.status(statusCode: number): FastifyReply<HttpResponse> - removed:
method fastify.FastifyReply.type(contentType: string): FastifyReply<HttpResponse> - removed:
method fastify.Logger.debug(msg: string, ...args: any[]): void - removed:
method fastify.Logger.debug(obj: {}, msg?: string, ...args: any[]): void - removed:
method fastify.Logger.error(msg: string, ...args: any[]): void - removed:
method fastify.Logger.error(obj: {}, msg?: string, ...args: any[]): void - removed:
method fastify.Logger.fatal(msg: string, ...args: any[]): void - removed:
method fastify.Logger.fatal(obj: {}, msg?: string, ...args: any[]): void - removed:
method fastify.Logger.info(msg: string, ...args: any[]): void - removed:
method fastify.Logger.info(obj: {}, msg?: string, ...args: any[]): void - removed:
method fastify.Logger.trace(msg: string, ...args: any[]): void - removed:
method fastify.Logger.trace(obj: {}, msg?: string, ...args: any[]): void - removed:
method fastify.Logger.warn(msg: string, ...args: any[]): void - removed:
method fastify.Logger.warn(obj: {}, msg?: string, ...args: any[]): void - removed:
namespace fastify - removed:
property fastify.FastifyContext.config: any - removed:
property fastify.FastifyError.statusCode?: number - removed:
property fastify.FastifyError.validation?: Array<ValidationResult> - removed:
property fastify.FastifyInstance.log: Logger - removed:
property fastify.FastifyInstance.schemaCompiler: SchemaCompiler - removed:
property fastify.FastifyInstance.server: HttpServer - removed:
property fastify.FastifyReply.context: FastifyContext - removed:
property fastify.FastifyReply.request: FastifyRequest - removed:
property fastify.FastifyReply.res: HttpResponse - removed:
property fastify.FastifyReply.sent: boolean - removed:
property fastify.FastifyRequest.body: Body - removed:
property fastify.FastifyRequest.headers: Headers - removed:
property fastify.FastifyRequest.hostname: string - removed:
property fastify.FastifyRequest.id: any - removed:
property fastify.FastifyRequest.ip: string - removed:
property fastify.FastifyRequest.ips: string[] - removed:
property fastify.FastifyRequest.log: Logger - removed:
property fastify.FastifyRequest.params: Params - removed:
property fastify.FastifyRequest.query: Query - removed:
property fastify.FastifyRequest.raw: HttpRequest - removed:
property fastify.FastifyRequest.req: HttpRequest - removed:
property fastify.ListenOptions.backlog?: number - removed:
property fastify.ListenOptions.exclusive?: boolean - removed:
property fastify.ListenOptions.host?: string - removed:
property fastify.ListenOptions.ipv6Only?: boolean - removed:
property fastify.ListenOptions.path?: string - removed:
property fastify.ListenOptions.port?: number - removed:
property fastify.ListenOptions.readableAll?: boolean - removed:
property fastify.ListenOptions.writableAll?: boolean - removed:
property fastify.RegisterOptions.logSerializers?: Object - removed:
property fastify.RegisterOptions.prefix?: string - removed:
property fastify.RouteOptions.handler: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body> - removed:
property fastify.RouteOptions.method: HTTPMethod | HTTPMethod[] - removed:
property fastify.RouteOptions.url: string - removed:
property fastify.RouteSchema.body?: JSONSchema - removed:
property fastify.RouteSchema.headers?: JSONSchema - removed:
property fastify.RouteSchema.params?: JSONSchema - removed:
property fastify.RouteSchema.querystring?: JSONSchema - removed:
property fastify.RouteSchema.response?: { [code: number]: JSONSchema, [code: string]: JSONSchema } - removed:
property fastify.RouteShorthandOptions.attachValidation?: boolean - removed:
property fastify.RouteShorthandOptions.bodyLimit?: number - removed:
property fastify.RouteShorthandOptions.config?: any - removed:
property fastify.RouteShorthandOptions.handler?: RequestHandler<HttpRequest, HttpResponse, Query, Params, Headers, Body> - removed:
property fastify.RouteShorthandOptions.logLevel?: string - removed:
property fastify.RouteShorthandOptions.logSerializers?: Object - removed:
property fastify.RouteShorthandOptions.onRequest?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - removed:
property fastify.RouteShorthandOptions.onResponse?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse>> - removed:
property fastify.RouteShorthandOptions.onSend?: | FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - removed:
property fastify.RouteShorthandOptions.preHandler?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - removed:
property fastify.RouteShorthandOptions.preParsing?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - removed:
property fastify.RouteShorthandOptions.preSerialization?: FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddlewareWithPayload<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - removed:
property fastify.RouteShorthandOptions.preValidation?: | FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body> | Array<FastifyMiddleware<HttpServer, HttpRequest, HttpResponse, Query, Params, Headers, Body>> - removed:
property fastify.RouteShorthandOptions.prefixTrailingSlash?: 'slash' | 'no-slash' | 'both' - removed:
property fastify.RouteShorthandOptions.schema?: RouteSchema - removed:
property fastify.RouteShorthandOptions.schemaCompiler?: SchemaCompiler - removed:
property fastify.RouteShorthandOptions.version?: string - removed:
property fastify.ServerOptions.ajv?: { customOptions?: ajv.Options, plugins?: Array<Array<any>|String> } - removed:
property fastify.ServerOptions.bodyLimit?: number - removed:
property fastify.ServerOptions.caseSensitive?: boolean - removed:
property fastify.ServerOptions.disableRequestLogging?: boolean - removed:
property fastify.ServerOptions.genReqId?: (req: FastifyRequest) => number | string - removed:
property fastify.ServerOptions.ignoreTrailingSlash?: boolean - removed:
property fastify.ServerOptions.logger?: any - removed:
property fastify.ServerOptions.maxParamLength?: number - removed:
property fastify.ServerOptions.modifyCoreObjects?: boolean - removed:
property fastify.ServerOptions.onConstructorPoisoning?: 'error' | 'remove' | 'ignore' - removed:
property fastify.ServerOptions.onProtoPoisoning?: 'error' | 'remove' | 'ignore' - removed:
property fastify.ServerOptions.pluginTimeout?: number - removed:
property fastify.ServerOptions.querystringParser?: (str: string) => { [key: string]: string | string[] } - removed:
property fastify.ServerOptions.requestIdHeader?: string - removed:
property fastify.ServerOptions.requestIdLogLabel?: string - removed:
property fastify.ServerOptions.return503OnClosing?: boolean - removed:
property fastify.ServerOptions.serverFactory?: ServerFactoryFunction - removed:
property fastify.ServerOptions.trustProxy?: string | number | boolean | Array<string> | TrustProxyFunction - removed:
property fastify.ServerOptions.versioning? : { storage() : { get(version: String) : Function | null, set(version: String, store: Function) : void, del(version: String) : void, empty() : void }, deriveVersion<Context>(req: Object, ctx?: Context) : String } - removed:
property fastify.ServerOptionsAsHttp.http2?: false - removed:
property fastify.ServerOptionsAsHttp2.http2: true - removed:
property fastify.ServerOptionsAsSecure.https: http2.SecureServerOptions - removed:
property fastify.ValidationResult.dataPath: string - removed:
property fastify.ValidationResult.keyword: string - removed:
property fastify.ValidationResult.message: string - removed:
property fastify.ValidationResult.params: { [type: string]: string } - removed:
property fastify.ValidationResult.schemaPath: string - removed:
type fastify.BodyParser<HttpRequest, RawBody extends string | Buffer> = ((req: HttpRequest, rawBody: RawBody, done: (err: Error | null, body?: any) => void) => void) | ((req: HttpRequest, rawBody: RawBody) => Promise<any>) - removed:
type fastify.ContentTypeParser<HttpRequest> = ((req: HttpRequest, done: (err: Error | null, body?: any) => void) => void) | ((req: HttpRequest) => Promise<any>) - removed:
type fastify.DefaultBody = any - removed:
type fastify.DefaultHeaders = { [k: string]: any } - removed:
type fastify.DefaultParams = { [k: string]: any } - removed:
type fastify.DefaultQuery = { [k: string]: any } - removed:
type fastify.FastifyMiddleware<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest, Query, Params, Headers, Body>, reply: FastifyReply<HttpResponse… - removed:
type fastify.FastifyMiddlewareWithPayload<HttpServer = http.Server, HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: FastifyRequest<HttpRequest, Query, Params, Headers, Body>, reply: FastifyReply<HttpResponse… - removed:
type fastify.HTTPMethod = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT' | 'OPTIONS' - removed:
type fastify.JSONSchema = Object - removed:
type fastify.Middleware<HttpServer, HttpRequest, HttpResponse> = (this: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, req: HttpRequest, res: HttpResponse, callback: (err?: FastifyError) => void) => void - removed:
type fastify.Plugin<HttpServer, HttpRequest, HttpResponse, Options, PluginInstance extends Function = Function> = PluginInstance extends () => Promise<void> ? ((instance: FastifyInstance<HttpServer, HttpRequest, HttpResponse>, options: Options) => Promise<void>) : (instanc… - removed:
type fastify.RequestHandler<HttpRequest = http.IncomingMessage, HttpResponse = http.ServerResponse, Query = DefaultQuery, Params = DefaultParams, Headers = DefaultHeaders, Body = DefaultBody> = (this: FastifyInstance<http.Server, HttpRequest, HttpResponse>, request: FastifyRequest<HttpRequest, Query, Params, Headers, Body>, reply: FastifyReply<HttpRes… - removed:
type fastify.SchemaCompiler = (schema: Object) => Function - removed:
type fastify.SchemaResolver = (ref: string) => Object - removed:
type fastify.ServerFactoryFunction = (handler: ServerFactoryHandlerFunction, options: ServerOptions) => http.Server | http2.Http2Server - removed:
type fastify.ServerFactoryHandlerFunction = (request: http.IncomingMessage | http2.Http2ServerRequest, response: http.ServerResponse | http2.Http2ServerResponse) => void - removed:
type fastify.TrustProxyFunction = (addr: string, index: number) => boolean - changed:
function fastify(opts?: fastify.ServerOptionsAsHttp): fastify.FastifyInstance<http.Server, http.IncomingMessage, http.ServerResponse> → function fastify<Server extends http.Server, Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>, Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(opts?: FastifyServerOptions<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger> & PromiseLike<FastifyI… - changed:
function fastify(opts?: fastify.ServerOptionsAsHttp2): fastify.FastifyInstance<http2.Http2Server, http2.Http2ServerRequest, http2.Http2ServerResponse> → function fastify<Server extends http2.Http2SecureServer, Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>, Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(opts: FastifyHttp2SecureOptions<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger> & Prom… - changed:
function fastify(opts?: fastify.ServerOptionsAsSecureHttp): fastify.FastifyInstance<https.Server, http.IncomingMessage, http.ServerResponse> → function fastify<Server extends http2.Http2Server, Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>, Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(opts: FastifyHttp2Options<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger> & PromiseLike<Fast… - changed:
function fastify(opts?: fastify.ServerOptionsAsSecureHttp2): fastify.FastifyInstance<http2.Http2SecureServer, http2.Http2ServerRequest, http2.Http2ServerResponse> → function fastify<Server extends https.Server, Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>, Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(opts: FastifyHttpsOptions<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger> & PromiseLike<FastifyIn… - added:
declare module '@fastify/error' - added:
default fastify - added:
export * from './types/hooks' - added:
export * from './types/register' - added:
export { AddContentTypeParser } from './types/content-type-parser' - added:
export { CallbackFunc as LightMyRequestCallback } from 'light-my-request' - added:
export { Chain as LightMyRequestChain } from 'light-my-request' - added:
export { ConstructorAction } from './types/content-type-parser' - added:
export { ContextConfigDefault } from './types/utils' - added:
export { FastifyBodyParser } from './types/content-type-parser' - added:
export { FastifyContentTypeParser } from './types/content-type-parser' - added:
export { FastifyContext } from './types/context' - added:
export { FastifyContextConfig } from './types/context' - added:
export { FastifyError } from '@fastify/error' - added:
export { FastifyInstance } from './types/instance' - added:
export { FastifyLogFn } from './types/logger' - added:
export { FastifyLoggerInstance } from './types/logger' - added:
export { FastifyLoggerOptions } from './types/logger' - added:
export { FastifyPlugin } from './types/plugin' - added:
export { FastifyPluginAsync } from './types/plugin' - added:
export { FastifyPluginCallback } from './types/plugin' - added:
export { FastifyPluginOptions } from './types/plugin' - added:
export { FastifyReply } from './types/reply' - added:
export { FastifyRequest } from './types/request' - added:
export { FastifySchema } from './types/schema' - added:
export { FastifySchemaCompiler } from './types/schema' - added:
export { FastifyServerFactory } from './types/serverFactory' - added:
export { FastifyServerFactoryHandler } from './types/serverFactory' - added:
export { HTTPMethods } from './types/utils' - added:
export { InjectOptions } from 'light-my-request' - added:
export { LogLevel } from './types/logger' - added:
export { PrintRoutesOptions } from './types/instance' - added:
export { ProtoAction } from './types/content-type-parser' - added:
export { RawReplyDefaultExpression } from './types/utils' - added:
export { RawRequestDefaultExpression } from './types/utils' - added:
export { RawServerBase } from './types/utils' - added:
export { RawServerDefault } from './types/utils' - added:
export { RequestBodyDefault } from './types/utils' - added:
export { RequestGenericInterface } from './types/request' - added:
export { RequestHeadersDefault } from './types/utils' - added:
export { RequestParamsDefault } from './types/utils' - added:
export { RequestQuerystringDefault } from './types/utils' - added:
export { Response as LightMyRequestResponse } from 'light-my-request' - added:
export { RouteHandler } from './types/route' - added:
export { RouteHandlerMethod } from './types/route' - added:
export { RouteOptions } from './types/route' - added:
export { RouteShorthandMethod } from './types/route' - added:
export { RouteShorthandOptions } from './types/route' - added:
export { RouteShorthandOptionsWithHandler } from './types/route' - added:
export { getDefaultJsonParser } from './types/content-type-parser' - added:
export { hasContentTypeParser } from './types/content-type-parser' - added:
interface ConnectionError extends Error - added:
interface ValidationResult - added:
property ConnectionError.bytesParsed: number - added:
property ConnectionError.code: string - added:
property ConnectionError.rawPacket: { type: string, data: number[] } - added:
property ValidationResult.dataPath: string - added:
property ValidationResult.keyword: string - added:
property ValidationResult.message: string - added:
property ValidationResult.params: Record<string, string | string[]> - added:
property ValidationResult.schemaPath: string - added:
type FastifyHttp2Options<Server extends http2.Http2Server, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> = FastifyServerOptions<Server, Logger> & { http2: true, http2SessionTimeout?: number } - added:
type FastifyHttp2SecureOptions<Server extends http2.Http2SecureServer, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> = FastifyServerOptions<Server, Logger> & { http2: true, https: http2.SecureServerOptions, http2SessionTimeout?: number } - added:
type FastifyHttpsOptions<Server extends https.Server, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> = FastifyServerOptions<Server, Logger> & { https: https.ServerOptions } - added:
type FastifyServerOptions<RawServer extends RawServerBase = RawServerDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> = { ignoreTrailingSlash?: boolean, connectionTimeout?: number, keepAliveTimeout?: number, maxRequestsPerSocket?: number, forceCloseConnections?: boolean, request…
- added:
call AddContentTypeParser(contentType: string | string[] | RegExp, opts: { bodyLimit?: number }, parser: FastifyContentTypeParser<RawServer, RawRequest>): void - added:
call AddContentTypeParser(contentType: string | string[] | RegExp, parser: FastifyContentTypeParser<RawServer, RawRequest>): void - added:
call AddContentTypeParser<parseAs extends string | Buffer>(contentType: string | string[] | RegExp, opts: { parseAs: parseAs extends Buffer ? 'buffer' : 'string'; bodyLimit?: number }, parser: FastifyBodyParser<parseAs, RawServer, RawRequest>): void - added:
interface AddContentTypeParser<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>> - added:
type ConstructorAction = 'error' | 'remove' | 'ignore' - added:
type FastifyBodyParser<RawBody extends string | Buffer, RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface> = ((request: FastifyRequest<RouteGeneric, RawServer, RawRequest>, rawBody: RawBody, done: ContentTypeParserDoneFunction) => void) | ((request: FastifyRequest<Rou… - added:
type FastifyContentTypeParser<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface> = ((request: FastifyRequest<RouteGeneric, RawServer, RawRequest>, payload: RawRequest) => Promise<any>) | ((request: FastifyRequest<RouteGeneric, RawServer, RawR… - added:
type ProtoAction = 'error' | 'remove' | 'ignore' - added:
type getDefaultJsonParser = (onProtoPoisoning: ProtoAction, onConstructorPoisoning: ConstructorAction) => FastifyBodyParser<string> - added:
type hasContentTypeParser = (contentType: string | RegExp) => boolean - added:
type removeAllContentTypeParsers = () => void - added:
type removeContentTypeParser = (contentType: string | RegExp | (string | RegExp)[]) => void
- added:
interface FastifyContext<ContextConfig = ContextConfigDefault> - added:
interface FastifyContextConfig - added:
property FastifyContext.config: FastifyContextConfig & ContextConfig
- added:
call onCloseAsyncHookHandler(instance: FastifyInstance<RawServer, RawRequest, RawReply, Logger>): Promise<unknown> - added:
call onCloseHookHandler(instance: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, done: HookHandlerDoneFunction): void - added:
call onErrorAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, error: TError): Promise<unknown> - added:
call onErrorHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, error: TError, done: () => void): void - added:
call onReadyAsyncHookHandler(this: FastifyInstance): Promise<unknown> - added:
call onReadyHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, done: HookHandlerDoneFunction): void - added:
call onRegisterHookHandler(instance: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, opts: RegisterOptions & Options, done: HookHandlerDoneFunction): Promise<unknown> | void - added:
call onRequestAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>): Promise<unknown> - added:
call onRequestHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, done: HookHandlerDoneFunction): void - added:
call onResponseAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>): Promise<unknown> - added:
call onResponseHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, done: HookHandlerDoneFunction): void - added:
call onRouteHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, opts: RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> & { routePath: string; path: string; prefix: string }): Promise<unknown> | void - added:
call onSendAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, payload: OnSendPayload): Promise<unknown> - added:
call onSendHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, payload: OnSendPayload, done: DoneFuncWithErrOrRes): void - added:
call onTimeoutAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>): Promise<unknown> - added:
call onTimeoutHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, done: HookHandlerDoneFunction): void - added:
call preHandlerAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>): Promise<unknown> - added:
call preHandlerHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, done: HookHandlerDoneFunction): void - added:
call preParsingAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, payload: RequestPayload): Promise<RequestPayload | unknown> - added:
call preParsingHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, payload: RequestPayload, done: <TError extends Error = FastifyError>(err?: TError | null, res?: RequestPayload) => void): void - added:
call preSerializationAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, payload: PreSerializationPayload): Promise<unknown> - added:
call preSerializationHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, payload: PreSerializationPayload, done: DoneFuncWithErrOrRes): void - added:
call preValidationAsyncHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>): Promise<unknown> - added:
call preValidationHookHandler(this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>, done: HookHandlerDoneFunction): void - added:
interface onCloseAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> - added:
interface onCloseHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> - added:
interface onErrorAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, TError extend… - added:
interface onErrorHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, TError extends Err… - added:
interface onReadyAsyncHookHandler - added:
interface onReadyHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> - added:
interface onRegisterHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance, Options extends FastifyPluginOptions = FastifyPluginOptions> - added:
interface onRequestAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger exte… - added:
interface onRequestHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends F… - added:
interface onResponseAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger ext… - added:
interface onResponseHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends… - added:
interface onRouteHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends Fas… - added:
interface onSendAsyncHookHandler<OnSendPayload, RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault,… - added:
interface onSendHookHandler<OnSendPayload, RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logg… - added:
interface onTimeoutAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger exte… - added:
interface onTimeoutHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends F… - added:
interface preHandlerAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger ext… - added:
interface preHandlerHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends… - added:
interface preParsingAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger ext… - added:
interface preParsingHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends… - added:
interface preSerializationAsyncHookHandler<PreSerializationPayload, RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = C… - added:
interface preSerializationHookHandler<PreSerializationPayload, RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = Contex… - added:
interface preValidationAsyncHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger… - added:
interface preValidationHookHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger exten…
- added:
interface FastifyInstance<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> - added:
interface PrintRoutesOptions - added:
method FastifyInstance.addHook(name: 'onClose', hook: onCloseAsyncHookHandler<RawServer, RawRequest, RawReply, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook(name: 'onClose', hook: onCloseHookHandler<RawServer, RawRequest, RawReply, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook(name: 'onReady', hook: onReadyAsyncHookHandler): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook(name: 'onReady', hook: onReadyHookHandler): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook(name: 'onRegister', hook: onRegisterHookHandler<RawServer, RawRequest, RawReply, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<OnSendPayload = unknown, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onSend', hook: onSendAsyncHookHandler<OnSendPayload, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawR… - added:
method FastifyInstance.addHook<OnSendPayload = unknown, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onSend', hook: onSendHookHandler<OnSendPayload, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply,… - added:
method FastifyInstance.addHook<PreSerializationPayload = unknown, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'preSerialization', hook: preSerializationAsyncHookHandler<PreSerializationPayload, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): Fas… - added:
method FastifyInstance.addHook<PreSerializationPayload = unknown, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'preSerialization', hook: preSerializationHookHandler<PreSerializationPayload, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyI… - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onError', hook: onErrorAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, FastifyError, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onError', hook: onErrorHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, FastifyError, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onRequest', hook: onRequestHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onResponse', hook: onResponseAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onResponse', hook: onResponseHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onRoute', hook: onRouteHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onTimeout', hook: onTimeoutAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'onTimeout', hook: onTimeoutHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'preHandler', hook: preHandlerAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'preHandler', hook: preHandlerHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'preValidation', hook: preValidationAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(name: 'preValidation', hook: preValidationHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault>(name: 'onRequest', hook: onRequestAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault>(name: 'preParsing', hook: preParsingAsyncHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addHook<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault>(name: 'preParsing', hook: preParsingHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.addSchema(schema: unknown): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.after(): FastifyInstance<RawServer, RawRequest, RawReply, Logger> & PromiseLike<undefined> - added:
method FastifyInstance.after(afterListener: (err: Error) => void): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.close(): Promise<undefined> - added:
method FastifyInstance.close(closeListener: () => void): undefined - added:
method FastifyInstance.decorate<T>(property: string | symbol, value: T extends (...args: any[]) => any ? (this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, ...args: Parameters<T>) => ReturnType<T> : T, dependencies?: string[]): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.decorateReply<T>(property: string | symbol, value: T extends (...args: any[]) => any ? (this: FastifyReply, ...args: Parameters<T>) => ReturnType<T> : T, dependencies?: string[]): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.decorateRequest<T>(property: string | symbol, value: T extends (...args: any[]) => any ? (this: FastifyRequest, ...args: Parameters<T>) => ReturnType<T> : T, dependencies?: string[]): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.getSchema(schemaId: string): unknown - added:
method FastifyInstance.getSchemas(): Record<string, unknown> - added:
method FastifyInstance.hasDecorator(decorator: string | symbol): boolean - added:
method FastifyInstance.hasReplyDecorator(decorator: string | symbol): boolean - added:
method FastifyInstance.hasRequestDecorator(decorator: string | symbol): boolean - added:
method FastifyInstance.inject(): LightMyRequestChain - added:
method FastifyInstance.inject(opts: InjectOptions | string): Promise<LightMyRequestResponse> - added:
method FastifyInstance.inject(opts: InjectOptions | string, cb: LightMyRequestCallback): void - added:
method FastifyInstance.listen(opts: { port: number; host?: string; backlog?: number }): Promise<string> - added:
method FastifyInstance.listen(opts: { port: number; host?: string; backlog?: number }, callback: (err: Error|null, address: string) => void): void - added:
method FastifyInstance.listen(port: number | string, address: string, backlog: number, callback: (err: Error|null, address: string) => void): void - added:
method FastifyInstance.listen(port: number | string, address: string, callback: (err: Error|null, address: string) => void): void - added:
method FastifyInstance.listen(port: number | string, address?: string, backlog?: number): Promise<string> - added:
method FastifyInstance.listen(port: number | string, callback: (err: Error|null, address: string) => void): void - added:
method FastifyInstance.printPlugins(): string - added:
method FastifyInstance.printRoutes(opts?: PrintRoutesOptions): string - added:
method FastifyInstance.ready(): FastifyInstance<RawServer, RawRequest, RawReply, Logger> & PromiseLike<undefined> - added:
method FastifyInstance.ready(readyListener: (err: Error) => void): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.route<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, SchemaCompiler = FastifySchema>(opts: RouteOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.routing(req: RawRequest, res: RawReply): void - added:
method FastifyInstance.setDefaultRoute(defaultRoute: DefaultRoute<RawRequest, RawReply>): void - added:
method FastifyInstance.setErrorHandler<TError extends Error = FastifyError, RouteGeneric extends RouteGenericInterface = RouteGenericInterface>(handler: (this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, error: TError, request: FastifyRequest<RouteGeneric, RawServer, RawRequest>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric>) => void | Promise<RouteGeneric['Repl… - added:
method FastifyInstance.setNotFoundHandler<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig extends ContextConfigDefault = ContextConfigDefault> (opts: { preValidation?: preValidationHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> | preValidationHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig>[]; preHandler?: preHa… - added:
method FastifyInstance.setNotFoundHandler<RouteGeneric extends RouteGenericInterface = RouteGenericInterface> (handler: (request: FastifyRequest<RouteGeneric, RawServer, RawRequest>, reply: FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric>) => void): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.setReplySerializer(replySerializer: (payload: unknown, statusCode: number) => string): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.setSchemaController(schemaControllerOpts: FastifySchemaControllerOptions): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.setSchemaErrorFormatter(errorFormatter: (errors: FastifySchemaValidationError[], dataVar: string) => Error): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.setSerializerCompiler<T = FastifySchema>(schemaCompiler: FastifySerializerCompiler<T>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
method FastifyInstance.setValidatorCompiler<T = FastifySchema>(schemaCompiler: FastifySchemaCompiler<T>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
property FastifyInstance.addContentTypeParser: AddContentTypeParser<RawServer, RawRequest> - added:
property FastifyInstance.all: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.defaultTextParser: FastifyBodyParser<string> - added:
property FastifyInstance.delete: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.errorHandler: (error: FastifyError, request: FastifyRequest, reply: FastifyReply) => void - added:
property FastifyInstance.get: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.getDefaultJsonParser: getDefaultJsonParser - added:
property FastifyInstance.getDefaultRoute: DefaultRoute<RawRequest, RawReply> - added:
property FastifyInstance.hasContentTypeParser: hasContentTypeParser - added:
property FastifyInstance.head: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.initialConfig: Readonly<{ connectionTimeout?: number, keepAliveTimeout?: number, forceCloseConnections?: boolean, bodyLimit?: number, caseSensitive?: boolean, http2?: boolean, https?: boolean | Readonly<{ allowHTTP1: boolean }>, ignoreTrailingSlash?: boolean, disableRequestLogging?: boolean, maxParamLength?: number, onProtoPoisoning?: ProtoAction, onConstructorPoisoning?:… - added:
property FastifyInstance.log: Logger - added:
property FastifyInstance.options: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.patch: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.post: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.prefix: string - added:
property FastifyInstance.put: RouteShorthandMethod<RawServer, RawRequest, RawReply> - added:
property FastifyInstance.register: FastifyRegister<FastifyInstance<RawServer, RawRequest, RawReply, Logger> & PromiseLike<undefined>> - added:
property FastifyInstance.removeAllContentTypeParsers: removeAllContentTypeParsers - added:
property FastifyInstance.removeContentTypeParser: removeContentTypeParser - added:
property FastifyInstance.server: RawServer - added:
property FastifyInstance.version: string - added:
property PrintRoutesOptions.commonPrefix?: boolean - added:
property PrintRoutesOptions.includeHooks?: boolean - added:
property PrintRoutesOptions.includeMeta?: boolean | (string | symbol)[]
- added:
call FastifyLogFn(msg: string, ...args: unknown[]): void - added:
call FastifyLogFn(obj: unknown, msg?: string, ...args: unknown[]): void - added:
index Bindings[key: string]: unknown - added:
interface Bindings - added:
interface ChildLoggerOptions - added:
interface FastifyLogFn - added:
interface FastifyLoggerInstance - added:
interface FastifyLoggerOptions<RawServer extends RawServerBase = RawServerDefault, RawRequest extends FastifyRequest<RouteGenericInterface, RawServer, RawRequestDefaultExpression<RawServer>> = FastifyRequest<RouteGenericInterface, RawServer, RawRequestDefaultExpression<RawServer>>, RawReply extends FastifyReply<RawServer, RawRequestDefaultExpression<RawServer>, RawReplyDefaultExpression<RawServer… - added:
interface FastifyLoggerStreamDestination - added:
interface PrettyOptions - added:
interface redactOptions - added:
method FastifyLoggerInstance.child(bindings: Bindings, options?: ChildLoggerOptions): FastifyLoggerInstance - added:
method FastifyLoggerStreamDestination.write(msg: string): void - added:
property Bindings.level?: LogLevel | string - added:
property Bindings.serializers?: { [key: string]: SerializerFn } - added:
property ChildLoggerOptions.level?: LogLevel | string - added:
property ChildLoggerOptions.redact?: string[] | redactOptions | undefined - added:
property ChildLoggerOptions.serializers?: { [key: string]: SerializerFn } | undefined - added:
property FastifyLoggerInstance.debug: FastifyLogFn - added:
property FastifyLoggerInstance.error: FastifyLogFn - added:
property FastifyLoggerInstance.fatal: FastifyLogFn - added:
property FastifyLoggerInstance.info: FastifyLogFn - added:
property FastifyLoggerInstance.trace: FastifyLogFn - added:
property FastifyLoggerInstance.warn: FastifyLogFn - added:
property FastifyLoggerOptions.file?: string - added:
property FastifyLoggerOptions.genReqId?: (req: RawRequest) => string - added:
property FastifyLoggerOptions.level?: string - added:
property FastifyLoggerOptions.prettyPrint?: boolean | PrettyOptions - added:
property FastifyLoggerOptions.serializers?: { req?: (req: RawRequest) => { method?: string; url?: string; version?: string; hostname?: string; remoteAddress?: string; remotePort?: number; [key: string]: unknown }; err?: (err: FastifyError) => { type: string; message: string; stack: string; [key: string]: unknown }; res?: (res: RawReply) => { statusCode: string | number; [key: string]: unknown } } - added:
property FastifyLoggerOptions.stream?: FastifyLoggerStreamDestination - added:
property PrettyOptions.colorize?: boolean - added:
property PrettyOptions.crlf?: boolean - added:
property PrettyOptions.errorLikeObjectKeys?: string[] - added:
property PrettyOptions.errorProps?: string - added:
property PrettyOptions.ignore?: string - added:
property PrettyOptions.levelFirst?: boolean - added:
property PrettyOptions.messageFormat?: false | string - added:
property PrettyOptions.messageKey?: string - added:
property PrettyOptions.search?: string - added:
property PrettyOptions.suppressFlushSyncWarning?: boolean - added:
property PrettyOptions.timestampKey?: string - added:
property PrettyOptions.translateTime?: boolean | string - added:
property redactOptions.censor?: string | ((v: any) => any) | undefined - added:
property redactOptions.paths: string[] - added:
property redactOptions.remove?: boolean | undefined - added:
type LogLevel = 'info' | 'error' | 'debug' | 'fatal' | 'warn' | 'trace' - added:
type SerializerFn = (value: unknown) => unknown
- added:
type FastifyPlugin<Options extends FastifyPluginOptions = Record<never, never>> = FastifyPluginCallback<Options> | FastifyPluginAsync<Options> - added:
type FastifyPluginAsync<Options extends FastifyPluginOptions = Record<never, never>, Server extends RawServerBase = RawServerDefault> = (instance: FastifyInstance<Server, RawRequestDefaultExpression<Server>, RawReplyDefaultExpression<Server>>, opts: Options) => Promise<void> - added:
type FastifyPluginCallback<Options extends FastifyPluginOptions = Record<never, never>, Server extends RawServerBase = RawServerDefault> = (instance: FastifyInstance<Server, RawRequestDefaultExpression<Server>, RawReplyDefaultExpression<Server>>, opts: Options, done: (err?: Error) => void) => void - added:
type FastifyPluginOptions = Record<string, any>
- added:
call FastifyRegister<Options extends FastifyPluginOptions>(plugin: FastifyPluginAsync<Options>, opts?: FastifyRegisterOptions<Options>): T - added:
call FastifyRegister<Options extends FastifyPluginOptions>(plugin: FastifyPluginCallback<Options> | FastifyPluginAsync<Options> | Promise<{ default: FastifyPluginCallback<Options> }> | Promise<{ default: FastifyPluginAsync<Options> }>, opts?: FastifyRegisterOptions<Options>): T - added:
call FastifyRegister<Options extends FastifyPluginOptions>(plugin: FastifyPluginCallback<Options>, opts?: FastifyRegisterOptions<Options>): T - added:
interface FastifyRegister<T = void> - added:
interface RegisterOptions - added:
property RegisterOptions.logLevel?: LogLevel - added:
property RegisterOptions.logSerializers?: Record<string, (value: any) => string> - added:
property RegisterOptions.prefix?: string - added:
type FastifyRegisterOptions<Options> = (RegisterOptions & Options) | ((instance: FastifyInstance) => RegisterOptions & Options)
- added:
interface FastifyReply<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault> - added:
interface ReplyGenericInterface - added:
method FastifyReply.callNotFound(): void - added:
method FastifyReply.code(statusCode: number): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.getHeader(key: string): string | undefined - added:
method FastifyReply.getHeaders(): { [key: string]: number | string | string[] | undefined } - added:
method FastifyReply.getResponseTime(): number - added:
method FastifyReply.hasHeader(key: string): boolean - added:
method FastifyReply.header(key: string, value: any): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.headers(values: { [key: string]: any }): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.hijack(): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.redirect(statusCode: number, url: string): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.redirect(url: string): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.removeHeader(key: string): void - added:
method FastifyReply.send(payload?: RouteGeneric['Reply']): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.serialize(payload: any): string - added:
method FastifyReply.serializer(fn: (payload: any) => string): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.status(statusCode: number): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
method FastifyReply.then(fulfilled: () => void, rejected: (err: Error) => void): void - added:
method FastifyReply.type(contentType: string): FastifyReply<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig> - added:
property FastifyReply.context: FastifyContext<ContextConfig> - added:
property FastifyReply.log: FastifyLoggerInstance - added:
property FastifyReply.raw: RawReply - added:
property FastifyReply.request: FastifyRequest<RouteGeneric, RawServer, RawRequest> - added:
property FastifyReply.sent: boolean - added:
property FastifyReply.server: FastifyInstance - added:
property FastifyReply.statusCode: number - added:
property ReplyGenericInterface.Reply?: ReplyDefault
- added:
interface FastifyRequest<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> - added:
interface RequestGenericInterface - added:
property FastifyRequest.body: RouteGeneric['Body'] - added:
property FastifyRequest.context: FastifyContext<ContextConfig> - added:
property FastifyRequest.headers: RawRequest['headers'] & RouteGeneric['Headers'] - added:
property FastifyRequest.id: any - added:
property FastifyRequest.log: Logger - added:
property FastifyRequest.params: RouteGeneric['Params'] - added:
property FastifyRequest.query: RouteGeneric['Querystring'] - added:
property FastifyRequest.raw: RawRequest - added:
property FastifyRequest.server: FastifyInstance - added:
property FastifyRequest.validationError?: Error & { validation: any; validationContext: string } - added:
property RequestGenericInterface.Body?: RequestBodyDefault - added:
property RequestGenericInterface.Headers?: RequestHeadersDefault - added:
property RequestGenericInterface.Params?: RequestParamsDefault - added:
property RequestGenericInterface.Querystring?: RequestQuerystringDefault - added:
readonly property FastifyRequest.connection: RawRequest['socket'] - added:
readonly property FastifyRequest.hostname: string - added:
readonly property FastifyRequest.ip: string - added:
readonly property FastifyRequest.ips?: string[] - added:
readonly property FastifyRequest.is404: boolean - added:
readonly property FastifyRequest.method: string - added:
readonly property FastifyRequest.protocol: 'http' | 'https' - added:
readonly property FastifyRequest.req: RawRequest - added:
readonly property FastifyRequest.routerMethod: string - added:
readonly property FastifyRequest.routerPath: string - added:
readonly property FastifyRequest.socket: RawRequest['socket'] - added:
readonly property FastifyRequest.url: string
- added:
call RouteShorthandMethod<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(path: string, handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>): FastifyInstance<RawServer, RawRequest, RawReply, Logger> - added:
call RouteShorthandMethod<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, SchemaCompiler = FastifySchema, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(path: string, opts: RouteShorthandOptions<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, Logger>, handler: RouteHandlerMethod<RawServer, RawRe… - added:
call RouteShorthandMethod<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, SchemaCompiler = FastifySchema, Logger extends FastifyLoggerInstance = FastifyLoggerInstance>(path: string, opts: RouteShorthandOptionsWithHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, SchemaCompiler, Logger>): FastifyInstance<RawServer, RawRe… - added:
interface RouteGenericInterface extends RequestGenericInterface, ReplyGenericInterface - added:
interface RouteOptions<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, SchemaCompiler = Fastify… - added:
interface RouteShorthandMethod<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>> - added:
interface RouteShorthandOptions<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, SchemaCompiler… - added:
interface RouteShorthandOptionsWithHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Sche… - added:
property RouteOptions.handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> - added:
property RouteOptions.method: HTTPMethods | HTTPMethods[] - added:
property RouteOptions.url: string - added:
property RouteShorthandOptions.attachValidation?: boolean - added:
property RouteShorthandOptions.bodyLimit?: number - added:
property RouteShorthandOptions.config?: FastifyContext<ContextConfig>['config'] - added:
property RouteShorthandOptions.constraints?: { [name: string]: any } - added:
property RouteShorthandOptions.errorHandler?: (this: FastifyInstance, error: FastifyError, request: FastifyRequest, reply: FastifyReply) => void - added:
property RouteShorthandOptions.exposeHeadRoute?: boolean - added:
property RouteShorthandOptions.logLevel?: LogLevel - added:
property RouteShorthandOptions.onError?: onErrorHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, FastifyError, Logger> | onErrorHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, FastifyError, Logger>[] - added:
property RouteShorthandOptions.onRequest?: onRequestHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | onRequestHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.onResponse?: onResponseHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | onResponseHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.onSend?: onSendHookHandler<unknown, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | onSendHookHandler<unknown, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.onTimeout?: onTimeoutHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | onTimeoutHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.preHandler?: preHandlerHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | preHandlerHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.preParsing?: preParsingHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | preParsingHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.preSerialization?: preSerializationHookHandler<unknown, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | preSerializationHookHandler<unknown, RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.preValidation?: preValidationHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> | preValidationHookHandler<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger>[] - added:
property RouteShorthandOptions.prefixTrailingSlash?: 'slash'|'no-slash'|'both' - added:
property RouteShorthandOptions.schema?: FastifySchema - added:
property RouteShorthandOptions.schemaErrorFormatter?: (errors: FastifySchemaValidationError[], dataVar: string) => Error - added:
property RouteShorthandOptions.serializerCompiler?: FastifySerializerCompiler<SchemaCompiler> - added:
property RouteShorthandOptions.validatorCompiler?: FastifySchemaCompiler<SchemaCompiler> - added:
property RouteShorthandOptions.version?: string - added:
property RouteShorthandOptionsWithHandler.handler: RouteHandlerMethod<RawServer, RawRequest, RawReply, RouteGeneric, ContextConfig, Logger> - added:
type DefaultRoute<Request, Reply> = (req: Request, res: Reply) => void - added:
type RouteHandler<RouteGeneric extends RouteGenericInterface = RouteGenericInterface, RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> = (this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: Fa… - added:
type RouteHandlerMethod<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>, RouteGeneric extends RouteGenericInterface = RouteGenericInterface, ContextConfig = ContextConfigDefault, Logger extends FastifyLoggerInstance = FastifyLoggerInstance> = (this: FastifyInstance<RawServer, RawRequest, RawReply, Logger>, request: FastifyRequest<RouteGeneric, RawServer, RawRequest, ContextConfig, Logger>, reply: Fa…
- added:
call FastifyValidationResult(data: any): boolean | PromiseLike<any> | { error?: Error, value?: any } - added:
interface FastifyRouteSchemaDef<T> - added:
interface FastifySchema - added:
interface FastifySchemaControllerOptions - added:
interface FastifySchemaValidationError - added:
interface FastifyValidationResult - added:
property FastifyRouteSchemaDef.httpPart?: string - added:
property FastifyRouteSchemaDef.httpStatus?: string - added:
property FastifyRouteSchemaDef.method: string - added:
property FastifyRouteSchemaDef.schema: T - added:
property FastifyRouteSchemaDef.url: string - added:
property FastifySchema.body?: unknown - added:
property FastifySchema.headers?: unknown - added:
property FastifySchema.params?: unknown - added:
property FastifySchema.querystring?: unknown - added:
property FastifySchema.response?: unknown - added:
property FastifySchemaControllerOptions.bucket?: (parentSchemas?: unknown) => { addSchema(schema: unknown): FastifyInstance; getSchema(schemaId: string): unknown; getSchemas(): Record<string, unknown> } - added:
property FastifySchemaControllerOptions.compilersFactory?: { buildValidator?: ValidatorCompiler; buildSerializer?: (externalSchemas: unknown, serializerOptsServerOption: FastifyServerOptions['serializerOpts']) => FastifySerializerCompiler<unknown> } - added:
property FastifySchemaValidationError.dataPath: string - added:
property FastifySchemaValidationError.message?: string - added:
property FastifyValidationResult.errors?: FastifySchemaValidationError[] | null - added:
type FastifySchemaCompiler<T> = (routeSchema: FastifyRouteSchemaDef<T>) => FastifyValidationResult - added:
type FastifySerializerCompiler<T> = (routeSchema: FastifyRouteSchemaDef<T>) => (data: any) => string
- added:
call FastifyServerFactory(handler: FastifyServerFactoryHandler<RawServer>, opts: Record<string, unknown>): RawServer - added:
interface FastifyServerFactory<RawServer extends RawServerBase = RawServerDefault> - added:
type FastifyServerFactoryHandler<RawServer extends RawServerBase = RawServerDefault, RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>, RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>> = RawServer extends http.Server | https.Server ? (request: http.IncomingMessage & RawRequest, response: http.ServerResponse & RawReply) => void : (request: http2…
- added:
type ContextConfigDefault = unknown - added:
type HTTPMethods = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT' | 'OPTIONS' - added:
type RawReplyDefaultExpression<RawServer extends RawServerBase = RawServerDefault> = RawServer extends http.Server | https.Server ? http.ServerResponse : RawServer extends http2.Http2Server | http2.Http2SecureServer ? http2.Http2ServerResponse… - added:
type RawRequestDefaultExpression<RawServer extends RawServerBase = RawServerDefault> = RawServer extends http.Server | https.Server ? http.IncomingMessage : RawServer extends http2.Http2Server | http2.Http2SecureServer ? http2.Http2ServerRequest… - added:
type RawServerBase = http.Server | https.Server | http2.Http2Server | http2.Http2SecureServer - added:
type RawServerDefault = http.Server - added:
type ReplyDefault = unknown - added:
type RequestBodyDefault = unknown - added:
type RequestHeadersDefault = unknown - added:
type RequestParamsDefault = unknown - added:
type RequestQuerystringDefault = unknown