Initial abstract implementation of middlewares

This commit is contained in:
yusing
2024-09-25 14:12:40 +08:00
parent 48bf31fd0e
commit 72df9ff3e4
10 changed files with 244 additions and 17 deletions

View File

@@ -0,0 +1,7 @@
package middleware
var AddXForwarded = &Middleware{
rewrite: func(r *ProxyRequest) {
r.SetXForwarded()
},
}