Encapsulation — fastify Architecture
Handles scope-isolated context for settings and decorators
Entity Profile
Dependency Diagram
graph TD subdomain_FastifyCore_Encapsulation["Encapsulation"] 0b45d343_dca0_8ce9_3c04_b9247e6fe4e1["schema.d.ts"] subdomain_FastifyCore_Encapsulation --> 0b45d343_dca0_8ce9_3c04_b9247e6fe4e1 167e2dad_f800_5644_7cef_c309ef787c03["fastify.test-d.ts"] subdomain_FastifyCore_Encapsulation --> 167e2dad_f800_5644_7cef_c309ef787c03 8bcaef15_640e_5040_4830_d2b0d10e5f11["config-validator.js"] subdomain_FastifyCore_Encapsulation --> 8bcaef15_640e_5040_4830_d2b0d10e5f11 7953b8a2_ad47_b619_8ba6_dd475b3f020d["request.js"] subdomain_FastifyCore_Encapsulation --> 7953b8a2_ad47_b619_8ba6_dd475b3f020d 797b4d9e_db3e_051a_9388_2143c0cc3d86["fastify.js"] subdomain_FastifyCore_Encapsulation --> 797b4d9e_db3e_051a_9388_2143c0cc3d86 67404b0a_9424_8c63_2e8b_e7204dee7273["context.js"] subdomain_FastifyCore_Encapsulation --> 67404b0a_9424_8c63_2e8b_e7204dee7273 b93a8a92_6479_d1f3_fee5_ac4551627a14["server.test.js"] subdomain_FastifyCore_Encapsulation --> b93a8a92_6479_d1f3_fee5_ac4551627a14 017fec44_8584_6b78_bc94_92f138a003b2["reply.js"] subdomain_FastifyCore_Encapsulation --> 017fec44_8584_6b78_bc94_92f138a003b2 0ce1e5b4_6528_64b9_59cc_a60e4a362bde["toolkit.js"] subdomain_FastifyCore_Encapsulation --> 0ce1e5b4_6528_64b9_59cc_a60e4a362bde 42121b24_218f_2c15_4701_40869d90d50a["schema-serialization.test.js"] subdomain_FastifyCore_Encapsulation --> 42121b24_218f_2c15_4701_40869d90d50a 9a1e9dba_d5e1_f903_8986_a5828fd29da9["decorate.js"] subdomain_FastifyCore_Encapsulation --> 9a1e9dba_d5e1_f903_8986_a5828fd29da9 79fa681c_e55a_d028_8368_ec4673767957["handle-request.test.js"] subdomain_FastifyCore_Encapsulation --> 79fa681c_e55a_d028_8368_ec4673767957 3e26529a_6758_550a_7d92_a74a68b91935["initial-config-validation.js"] subdomain_FastifyCore_Encapsulation --> 3e26529a_6758_550a_7d92_a74a68b91935 a3164fb6_1dee_1928_2295_452f08b48c7e["content-type-parser.d.ts"] subdomain_FastifyCore_Encapsulation --> a3164fb6_1dee_1928_2295_452f08b48c7e style subdomain_FastifyCore_Encapsulation fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- Context()
- FastifyValidationResult()
- Parser()
- Reply()
- Request()
- Symbol()
- _checkDecorators()
- add()
- add()
- addContentTypeParser()
- assertsRequestDecoration()
- buildCertificate()
- buildDefaultGenReqId()
- buildHooks()
- buildReply()
- buildRequest()
- checkDecorators()
- checkDependencies()
- checkDependencies()
- checkExistence()
- checkReferenceType()
- checkRequestExistence()
- compileSchemasForSerialization()
- compileSchemasForValidation()
- createDeferredPromise()
- createLogger()
- createPinoLogger()
- customLogger.child()
- customLogger.child()
- customLogger.debug()
- customLogger.error()
- customLogger.fatal()
- customLogger.info()
- customLogger.trace()
- customLogger.warn()
- customMethod()
- debug()
- decorate()
- decorateRequest()
- deepFreezeObject()
- defaultBuildPrettyMeta()
- defaultChildLoggerFactory()
- defaultResolveServerListeningText()
- defaultSchemaErrorFormatter()
- echoBody()
- err()
- error()
- existingParser()
- exports()
- fallbackErrorHandler()
- fastify()
- fourOhFour()
- getDefaultJsonParser()
- getDisplayName()
- getEssenceMediaType()
- getHandler()
- getHandler()
- getHeader()
- getLastEntryInMultiHeaderValue()
- getPluginName()
- getResponseSchema()
- getSchema()
- getSchemas()
- handleError()
- handler()
- handler()
- helper()
- hijack()
- hookIterator()
- isIPv6Missing()
- isValid()
- lightMyRequestCallback()
- listenCallback()
- logServerAddress()
- logStreamError()
- module()
- normalizeSchema()
- onListenHookRunner()
- onProtoPoisoning()
- onResponseHookIterator()
- onSendHook()
- onSendHookRunner()
- parameters()
- payloadMethod()
- plainTextParser()
- plugin()
- preHandlerCallbackInner()
- preParsingHookRunner()
- preSerializationHookEnd()
- putHandler()
- registerPlugin()
- registerPluginName()
- removeAll()
- removeContentTypeParser()
- req()
- reqIdGenFactory()
- request()
- request()
- run()
- runBadClientCall()
- safeWriteHead()
- schemaValidator()
- second()
- sendStream()
- sendStreamTrailer()
- serialize()
- serializers.res()
- setErrorHeaders()
- setErrorStatusCode()
- setup()
- setupResponseListeners()
- testAsync()
- testPluginOpts()
- testPluginOpts()
- testPluginOptsWithTypeAsync()
- testPluginOptsWithTypeAsync()
- testPluginWithHttp2WithType()
- testPluginWithTypeProviderAsync()
- type()
- validate()
- validate()
- validate10()
- validateAsyncQuery()
- validateInitialConfig()
- validateRegExp()
- validateSchemaErrorFormatter()
- validationCompleted()
Source Files
- lib/config-validator.js
- types/content-type-parser.d.ts
- test/context-config.test.js
- lib/context.js
- test/https/custom-https-server.test.js
- lib/decorate.js
- test/diagnostics-channel/error-before-handler.test.js
- lib/error-handler.js
- lib/error-status.js
- fastify.js
- test/types/fastify.test-d.ts
- lib/four-oh-four.js
- test/internals/handle-request.test.js
- test/helper.js
- lib/initial-config-validation.js
- test/issue-4959.test.js
- test/listen.5.test.js
- lib/logger-pino.js
- types/logger.d.ts
- test/types/logger.test-d.ts
- lib/plugin-override.js
- test/types/plugin.test-d.ts
- test/reply-error.test.js
- lib/reply.js
- lib/req-id-gen-factory.js
- lib/request.js
- test/schema-serialization.test.js
- types/schema.d.ts
- lib/server.js
- test/server.test.js
- test/toolkit.js
- test/types/type-provider.test-d.ts
- lib/validation.js
Source
- lib/config-validator.js
- types/content-type-parser.d.ts
- test/context-config.test.js
- lib/context.js
- test/https/custom-https-server.test.js
- lib/decorate.js
- test/diagnostics-channel/error-before-handler.test.js
- lib/error-handler.js
- lib/error-status.js
- fastify.js
- test/types/fastify.test-d.ts
- lib/four-oh-four.js
- test/internals/handle-request.test.js
- test/helper.js
- lib/initial-config-validation.js
- test/issue-4959.test.js
- test/listen.5.test.js
- lib/logger-pino.js
- types/logger.d.ts
- test/types/logger.test-d.ts
- lib/plugin-override.js
- test/types/plugin.test-d.ts
- test/reply-error.test.js
- lib/reply.js
- lib/req-id-gen-factory.js
- lib/request.js
- test/schema-serialization.test.js
- types/schema.d.ts
- lib/server.js
- test/server.test.js
- test/toolkit.js
- test/types/type-provider.test-d.ts
- lib/validation.js
Frequently Asked Questions
What is the Encapsulation subdomain?
Encapsulation is a subdomain in the fastify codebase, part of the FastifyCore domain. Handles scope-isolated context for settings and decorators It contains 33 source files.
Which domain does Encapsulation belong to?
Encapsulation belongs to the FastifyCore domain.
What functions are in Encapsulation?
The Encapsulation subdomain contains 127 function(s): Context, FastifyValidationResult, Parser, Reply, Request, Symbol, _checkDecorators, add, and 119 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free