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

FuncType HandlerFunc

api/api.go:29–29  ·  view source on GitHub ↗

HandlerFunc is similar to the http.HandlerFunc type; it serves as an adapter allowing the use of ordinary functions as Handlers. If f is a function with the appropriate signature, HandlerFunc(f) is a Handler object that calls f.

func(http.ResponseWriter, *http.Request) error

Source from the content-addressed store, hash-verified

27// f is a function with the appropriate signature, HandlerFunc(f) is a
28// Handler object that calls f.
29type HandlerFunc func(http.ResponseWriter, *http.Request) error
30
31// Handle calls f(w, r)
32func (f HandlerFunc) Handle(w http.ResponseWriter, r *http.Request) error {

Callers 7

NewHandlerFunction · 0.92
NewHandlerFunction · 0.92
NewInfoHandlerFunction · 0.92
NewHealthCheckFunction · 0.92
NewHandlerFunction · 0.92
TestRigidHandleFunction · 0.70
TestCleverHandleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…