MCPcopy Create free account
hub / github.com/eth-easl/dirigent / GetHandler

Method GetHandler

workload/http_workload.go:163–169  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

161}
162
163func (mux *Multiplexer) GetHandler(path string) func(w http.ResponseWriter, r *http.Request) {
164 f, ok := mux.handlers[path]
165 if ok {
166 return f
167 }
168 return nil
169}
170
171func (mux *Multiplexer) HandleFunc(path string, f func(w http.ResponseWriter, r *http.Request)) {
172 mux.handlers[path] = f

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected