This commit is contained in:
Grbisba
2026-11-07 10:41:21 +03:00
parent 4c066ff191
commit 1e0d18e25b
306 changed files with 14036 additions and 627 deletions
@@ -0,0 +1,12 @@
package middleware
import "net/http"
func Instance(id string) Middleware {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("X-Instance-Id", id)
next.ServeHTTP(w, r)
})
}
}