核心文件
核心文件
¥Core Documents
有关完整目录 (TOC),请参阅 below。以下列表是完整 TOC 的子集,按照对读者最可能重要的顺序详细介绍了 Fastify 核心 API 和概念:
¥For the full table of contents (TOC), see below. The following list is a subset of the full TOC that detail core Fastify APIs and concepts in order of most likely importance to the reader:
Server:记录核心 Fastify API。包括工厂函数和工厂函数返回的对象的文档。
¥Server: Documents the core Fastify API. Includes documentation for the factory function and the object returned by the factory function.
生命周期:解释 Fastify 请求生命周期并说明 钩子 可与其集成的位置。
¥Lifecycle: Explains the Fastify request lifecycle and illustrates where Hooks are available for integrating with it.
路由:详细介绍如何使用 Fastify 注册路由以及 Fastify 如何构建和评估路由 trie。
¥Routes: Details how to register routes with Fastify and how Fastify builds and evaluates the routing trie.
请求:详细信息传递到每个请求处理程序的 Fastify 请求对象。
¥Request: Details Fastify's request object that is passed into each request handler.
响应:详细信息 Fastify 的响应对象可用于每个请求处理程序。
¥Reply: Details Fastify's response object available to each request handler.
验证和序列化:详细信息 Fastify 对验证传入数据的支持以及 Fastify 如何序列化数据以进行响应。
¥Validation and Serialization: Details Fastify's support for validating incoming data and how Fastify serializes data for responses.
插件:解释 Fastify 的插件架构和 API。
¥Plugins: Explains Fastify's plugin architecture and API.
封装:解释了构建所有 Fastify 插件的核心概念。
¥Encapsulation: Explains a core concept upon which all Fastify plugins are built.
装饰器:解释服务器、请求和响应装饰器 API。
¥Decorators: Explains the server, request, and response decorator APIs.
钩子:详细介绍了 Fastify 插件可以将自身注入到 Fastify 对请求生命周期的处理中的 API。
¥Hooks: Details the API by which Fastify plugins can inject themselves into Fastify's handling of the request lifecycle.
参考文档目录
¥Reference Documentation Table Of Contents
该目录按字母顺序排列。
¥This table of contents is in alphabetical order.
内容类型解析器:记录 Fastify 的默认内容类型解析器以及如何添加对新内容类型的支持。
¥Content Type Parser: Documents Fastify's default content type parser and how to add support for new content types.
装饰器:解释服务器、请求和响应装饰器 API。
¥Decorators: Explains the server, request, and response decorator APIs.
封装:解释了构建所有 Fastify 插件的核心概念。
¥Encapsulation: Explains a core concept upon which all Fastify plugins are built.
错误:详细说明 Fastify 如何处理错误并列出 Fastify 生成的标准错误集。
¥Errors: Details how Fastify handles errors and lists the standard set of errors Fastify generates.
钩子:详细介绍了 Fastify 插件可以将自身注入到 Fastify 对请求生命周期的处理中的 API。
¥Hooks: Details the API by which Fastify plugins can inject themselves into Fastify's handling of the request lifecycle.
HTTP2:详细信息 Fastify 的 HTTP2 支持。
¥HTTP2: Details Fastify's HTTP2 support.
生命周期:解释 Fastify 请求生命周期并说明 钩子 可与其集成的位置。
¥Lifecycle: Explains the Fastify request lifecycle and illustrates where Hooks are available for integrating with it.
日志:详细信息 Fastify 包括日志记录以及如何自定义它。
¥Logging: Details Fastify's included logging and how to customize it.
长期支持:解释 Fastify 的长期支持 (LTS) 保证以及 semver 合同可能出现的例外情况。
¥Long Term Support: Explains Fastify's long term support (LTS) guarantee and the exceptions possible to the semver contract.
中间件:详细信息 Fastify 对 Express.js 风格中间件的支持。
¥Middleware: Details Fastify's support for Express.js style middleware.
插件:解释 Fastify 的插件架构和 API。
¥Plugins: Explains Fastify's plugin architecture and API.
响应:详细信息 Fastify 的响应对象可用于每个请求处理程序。
¥Reply: Details Fastify's response object available to each request handler.
请求:详细信息传递到每个请求处理程序的 Fastify 请求对象。
¥Request: Details Fastify's request object that is passed into each request handler.
路由:详细介绍如何使用 Fastify 注册路由以及 Fastify 如何构建和评估路由 trie。
¥Routes: Details how to register routes with Fastify and how Fastify builds and evaluates the routing trie.
Server:记录核心 Fastify API。包括工厂函数和工厂函数返回的对象的文档。
¥Server: Documents the core Fastify API. Includes documentation for the factory function and the object returned by the factory function.
TypeScript:记录 Fastify 的 TypeScript 支持,并提供使用 Fastify 在 TypeScript 中编写应用的建议。
¥TypeScript: Documents Fastify's TypeScript support and provides recommendations for writing applications in TypeScript that utilize Fastify.
验证和序列化:详细信息 Fastify 对验证传入数据的支持以及 Fastify 如何序列化数据以进行响应。
¥Validation and Serialization: Details Fastify's support for validating incoming data and how Fastify serializes data for responses.
警告:详细说明 Fastify 发出的警告以及解决方法。
¥Warnings: Details the warnings Fastify emits and how to solve them.