We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0102d96 commit 5bad0a6Copy full SHA for 5bad0a6
02nio/nio02/src/main/java/io/github/kimmking/gateway/filter/HeaderRequestFilter.java
@@ -0,0 +1,12 @@
1
+packageio.github.kimmking.gateway.filter;
2
+
3
+importio.netty.channel.ChannelHandlerContext;
4
+importio.netty.handler.codec.http.FullHttpRequest;
5
6
+publicclassHeaderRequestFilterimplementsHttpRequestFilter{
7
+@Override
8
+publicvoidfilter(FullHttpRequestfullRequest, ChannelHandlerContextctx){
9
+// 在headers中增加一对属性 "nio:nova"
10
+fullRequest.headers().add("nio","nova");
11
+ }
12
+}
0 commit comments