1 Webflux Demo
1.1 启动过程
1.2 请求流程
2 Webflux核心组件
2.1 HttpHandler
Every HTTP server has some API for HTTP request handling. HttpHandler is a simple contract with one method to handle a request and response. It is intentionally minimal. Its main purpose is to provide a common, Reactive Streams based API for HTTP request handling over different servers.
Netty中的调用:
Reactor Netty:
HttpHandler handler = ...
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter