/
symbols.js
52 lines (50 loc) · 2.48 KB
/
symbols.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'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