MCPcopy Create free account
hub / github.com/cloudflare/cfssl / simpleHandle

Function simpleHandle

api/api_test.go:17–28  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

15)
16
17func simpleHandle(w http.ResponseWriter, r *http.Request) error {
18 _, _, err := ProcessRequestOneOf(r, [][]string{
19 {"compliment"},
20 {"critique"},
21 })
22 if err != nil {
23 return err
24 }
25
26 return SendResponse(w, ty)
27
28}
29
30func cleverHandle(w http.ResponseWriter, r *http.Request) error {
31 _, matched, err := ProcessRequestFirstMatchOf(r, [][]string{

Callers

nothing calls this directly

Calls 2

ProcessRequestOneOfFunction · 0.85
SendResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…