1 | 'use strict'
|
2 |
|
3 | const keys = {
|
4 | kAvvioBoot: Symbol('fastify.avvioBoot'),
|
5 | kChildren: Symbol('fastify.children'),
|
6 | kServerBindings: Symbol('fastify.serverBindings'),
|
7 | kBodyLimit: Symbol('fastify.bodyLimit'),
|
8 | kRoutePrefix: Symbol('fastify.routePrefix'),
|
9 | kLogLevel: Symbol('fastify.logLevel'),
|
10 | kLogSerializers: Symbol('fastify.logSerializers'),
|
11 | kHooks: Symbol('fastify.hooks'),
|
12 | kContentTypeParser: Symbol('fastify.contentTypeParser'),
|
13 | kState: Symbol('fastify.state'),
|
14 | kOptions: Symbol('fastify.options'),
|
15 | kDisableRequestLogging: Symbol('fastify.disableRequestLogging'),
|
16 | kPluginNameChain: Symbol('fastify.pluginNameChain'),
|
17 | kRouteContext: Symbol('fastify.context'),
|
18 | kPublicRouteContext: Symbol('fastify.routeOptions'),
|
19 | kGenReqId: Symbol('fastify.genReqId'),
|
20 |
|
21 | kSchemaController: Symbol('fastify.schemaController'),
|
22 | kSchemaHeaders: Symbol('headers-schema'),
|
23 | kSchemaParams: Symbol('params-schema'),
|
24 | kSchemaQuerystring: Symbol('querystring-schema'),
|
25 | kSchemaBody: Symbol('body-schema'),
|
26 | kSchemaResponse: Symbol('response-schema'),
|
27 | kSchemaErrorFormatter: Symbol('fastify.schemaErrorFormatter'),
|
28 | kSchemaVisited: Symbol('fastify.schemas.visited'),
|
29 |
|
30 | kRequest: Symbol('fastify.Request'),
|
31 | kRequestPayloadStream: Symbol('fastify.RequestPayloadStream'),
|
32 | kRequestAcceptVersion: Symbol('fastify.RequestAcceptVersion'),
|
33 | kRequestCacheValidateFns: Symbol('fastify.request.cache.validateFns'),
|
34 | kRequestOriginalUrl: Symbol('fastify.request.originalUrl'),
|
35 |
|
36 | kFourOhFour: Symbol('fastify.404'),
|
37 | kCanSetNotFoundHandler: Symbol('fastify.canSetNotFoundHandler'),
|
38 | kFourOhFourLevelInstance: Symbol('fastify.404LogLevelInstance'),
|
39 | kFourOhFourContext: Symbol('fastify.404ContextKey'),
|
40 | kDefaultJsonParse: Symbol('fastify.defaultJSONParse'),
|
41 |
|
42 | kReply: Symbol('fastify.Reply'),
|
43 | kReplySerializer: Symbol('fastify.reply.serializer'),
|
44 | kReplyIsError: Symbol('fastify.reply.isError'),
|
45 | kReplyHeaders: Symbol('fastify.reply.headers'),
|
46 | kReplyTrailers: Symbol('fastify.reply.trailers'),
|
47 | kReplyHasStatusCode: Symbol('fastify.reply.hasStatusCode'),
|
48 | kReplyHijacked: Symbol('fastify.reply.hijacked'),
|
49 | kReplyStartTime: Symbol('fastify.reply.startTime'),
|
50 | kReplyNextErrorHandler: Symbol('fastify.reply.nextErrorHandler'),
|
51 | kReplyEndTime: Symbol('fastify.reply.endTime'),
|
52 | kReplyErrorHandlerCalled: Symbol('fastify.reply.errorHandlerCalled'),
|
53 | kReplyIsRunningOnErrorHook: Symbol('fastify.reply.isRunningOnErrorHook'),
|
54 | kReplySerializerDefault: Symbol('fastify.replySerializerDefault'),
|
55 | kReplyCacheSerializeFns: Symbol('fastify.reply.cache.serializeFns'),
|
56 |
|
57 | kTestInternals: Symbol('fastify.testInternals'),
|
58 | kErrorHandler: Symbol('fastify.errorHandler'),
|
59 | kChildLoggerFactory: Symbol('fastify.childLoggerFactory'),
|
60 | kHasBeenDecorated: Symbol('fastify.hasBeenDecorated'),
|
61 | kKeepAliveConnections: Symbol('fastify.keepAliveConnections'),
|
62 | kRouteByFastify: Symbol('fastify.routeByFastify')
|
63 | }
|
64 |
|
65 | module.exports = keys
|