MCPcopy Create free account
hub / github.com/zalando/skipper / ServeHTTP

Method ServeHTTP

net/query.go:14–20  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

12}
13
14func (q *ValidateQueryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
15 if err := validateQuery(r.URL.RawQuery); err != nil {
16 http.Error(w, "Invalid query", http.StatusBadRequest)
17 return
18 }
19 q.Handler.ServeHTTP(w, r)
20}
21
22type ValidateQueryLogHandler struct {
23 Handler http.Handler

Callers 2

TestQueryHandlerFunction · 0.95
ServeHTTPMethod · 0.45

Calls 2

validateQueryFunction · 0.85
ErrorMethod · 0.65

Tested by 1

TestQueryHandlerFunction · 0.76