diff --git a/spring/webflux/spring webflux.md b/spring/webflux/spring webflux.md index fd139bd..1b9e3cd 100644 --- a/spring/webflux/spring webflux.md +++ b/spring/webflux/spring webflux.md @@ -178,5 +178,101 @@ server.start(); ### WebHandler API `org.springframework.web.server` package基于`HttpHandler`构建,提供了通用的Web API。Web Api由多个`WebException`, 多个`WebFilter`, 一个`WebHandler`组件构成,组成了一个chain。 +相比于`HttpHandler`仅仅是对不同http server的抽象,`WebHandler`提供了一个更加通用、更加广泛的功能集合: +- user sessions attributes +- request attributes +- resolved `Locale` or `Principal` for request +- abstractions for multipart data +#### bean types for WebHttpHandlerBuilder auto-detect +在spring上下文中,`WebHttpHandlerBuilder`可以自动探测到如下类型的components: +
| Bean name | +Bean type | +Count | +Description | +
|---|---|---|---|
<any> |
+
|
+0..N |
+Provide handling for exceptions from the chain of |
+
<any> |
+
|
+0..N |
+Apply interception style logic to before and after the rest of the filter chain and
+ the target |
+
|
+
|
+1 |
+The handler for the request. |
+
|
+
|
+0..1 |
+The manager for |
+
|
+
|
+0..1 |
+For access to |
+
|
+
|
+0..1 |
+The resolver for |
+
|
+
|
+0..1 |
+For processing forwarded type headers, either by extracting and removing them or by removing them only. + Not used by default. |
+