gortex 在框架層整合 body 上限、CORS、CSRF、JWT、rate limit 與 log 遮蔽:JWT 鎖定 HS256,在 proxy 後按 IP 做 rate limit 要配 TrustedProxies。
多數 Go web 框架(Gin、Echo、chi)都長在 net/http 上,http.Handler 與 ServeHTTP 是唯一的抽象,middleware 就是包一層 Handler 的閉包,外層先跑。
← 標籤