API Server Routes

本文研究了 Route 部分的源码,配备源码进行进一步理解,可以加深理解,增强相关设计能力。

This paper studies the source code of the Route section. You should read the source code at the same time. It can enhance your design capacity.

APIServerHandler

Overview

The figure below shows the APIServerHandlercore assembly. It is mainly divided into Restful and NonRestful two parts. - Restful is prioritized, and if the processing is successful, exit. does not execute the NonRestful section; - if the RESTful section does not have a target function, the NonRestful section is executed. FullHandlerChain is used for HTTP processing entry points, linking the middleware features, and boots the request to the Director for processing.

The following is the APIServerdefault HandlerChain build process.

Last updated