MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / reject

Method reject

handler/handler.go:287–289  ·  view source on GitHub ↗
(reject auth.Auth, wr http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

285}
286
287func (s *ProxyHandler) reject(reject auth.Auth, wr http.ResponseWriter, req *http.Request) {
288 _, _ = reject.Validate(req.Context(), wr, req)
289}
290
291func trimAddrPort(addrPort string) string {
292 res, _, err := net.SplitHostPort(addrPort)

Callers 2

ServeHTTPMethod · 0.95
rejectAccessMethod · 0.95

Calls 1

ValidateMethod · 0.65

Tested by

no test coverage detected