Aggregator: Add mutation and validation handlers (#92036)

This commit is contained in:
Todd Treece
2024-08-21 19:12:53 +03:00
committed by GitHub
parent 6891eb1d35
commit 2d43fdb29b
17 changed files with 1243 additions and 27 deletions
@@ -0,0 +1,13 @@
package fakes
import "net/http"
func NewFakeHTTPHandler(status int, res []byte) http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
w.WriteHeader(status)
_, err := w.Write(res)
if err != nil {
panic(err)
}
}
}