You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.5 KiB
53 lines
2.5 KiB
3 years ago
|
'use strict'
|
||
|
|
||
|
const keys = {
|
||
|
kAvvioBoot: Symbol('fastify.avvioBoot'),
|
||
|
kChildren: Symbol('fastify.children'),
|
||
|
kBodyLimit: Symbol('fastify.bodyLimit'),
|
||
|
kRoutePrefix: Symbol('fastify.routePrefix'),
|
||
|
kLogLevel: Symbol('fastify.logLevel'),
|
||
|
kLogSerializers: Symbol('fastify.logSerializers'),
|
||
|
kHooks: Symbol('fastify.hooks'),
|
||
|
kHooksDeprecatedPreParsing: Symbol('fastify.hooks.DeprecatedPreParsing'),
|
||
|
kSchemaController: Symbol('fastify.schemaController'),
|
||
|
kSchemaHeaders: Symbol('headers-schema'),
|
||
|
kSchemaParams: Symbol('params-schema'),
|
||
|
kSchemaQuerystring: Symbol('querystring-schema'),
|
||
|
kSchemaBody: Symbol('body-schema'),
|
||
|
kSchemaResponse: Symbol('response-schema'),
|
||
|
kSchemaErrorFormatter: Symbol('fastify.schemaErrorFormatter'),
|
||
|
kReplySerializerDefault: Symbol('fastify.replySerializerDefault'),
|
||
|
kContentTypeParser: Symbol('fastify.contentTypeParser'),
|
||
|
kReply: Symbol('fastify.Reply'),
|
||
|
kRequest: Symbol('fastify.Request'),
|
||
|
kRequestPayloadStream: Symbol('fastify.RequestPayloadStream'),
|
||
|
kRequestAcceptVersion: Symbol('fastify.RequestAcceptVersion'),
|
||
|
kCanSetNotFoundHandler: Symbol('fastify.canSetNotFoundHandler'),
|
||
|
kFourOhFour: Symbol('fastify.404'),
|
||
|
kFourOhFourLevelInstance: Symbol('fastify.404LogLevelInstance'),
|
||
|
kFourOhFourContext: Symbol('fastify.404ContextKey'),
|
||
|
kDefaultJsonParse: Symbol('fastify.defaultJSONParse'),
|
||
|
kReplySerializer: Symbol('fastify.reply.serializer'),
|
||
|
kReplyIsError: Symbol('fastify.reply.isError'),
|
||
|
kReplyHeaders: Symbol('fastify.reply.headers'),
|
||
|
kReplyTrailers: Symbol('fastify.reply.trailers'),
|
||
|
kReplyHasStatusCode: Symbol('fastify.reply.hasStatusCode'),
|
||
|
kReplySent: Symbol('fastify.reply.sent'),
|
||
|
kReplySentOverwritten: Symbol('fastify.reply.sentOverwritten'),
|
||
|
kReplyStartTime: Symbol('fastify.reply.startTime'),
|
||
|
kReplyEndTime: Symbol('fastify.reply.endTime'),
|
||
|
kReplyErrorHandlerCalled: Symbol('fastify.reply.errorHandlerCalled'),
|
||
|
kReplyIsRunningOnErrorHook: Symbol('fastify.reply.isRunningOnErrorHook'),
|
||
|
kSchemaVisited: Symbol('fastify.schemas.visited'),
|
||
|
kState: Symbol('fastify.state'),
|
||
|
kOptions: Symbol('fastify.options'),
|
||
|
kDisableRequestLogging: Symbol('fastify.disableRequestLogging'),
|
||
|
kPluginNameChain: Symbol('fastify.pluginNameChain'),
|
||
|
// This symbol is only meant to be used for fastify tests and should not be used for any other purpose
|
||
|
kTestInternals: Symbol('fastify.testInternals'),
|
||
|
kErrorHandler: Symbol('fastify.errorHandler'),
|
||
|
kKeepAliveConnections: Symbol('fastify.keepAliveConnections')
|
||
|
}
|
||
|
|
||
|
module.exports = keys
|