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

Struct staticReject

handler/direct_test.go:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type staticReject struct {
16 status int
17 body string
18}
19
20func (r staticReject) Validate(_ context.Context, wr http.ResponseWriter, _ *http.Request) (string, bool) {
21 wr.WriteHeader(r.status)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected