MCPcopy Create free account
hub / github.com/imroc/req / handleHTTP

Function handleHTTP

req_test.go:47–55  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

45}
46
47func handleHTTP(w http.ResponseWriter, r *http.Request) {
48 w.Header().Add("Method", r.Method)
49 switch r.Method {
50 case http.MethodGet:
51 handleGet(w, r)
52 case http.MethodPost:
53 handlePost(w, r)
54 }
55}
56
57var (
58 testServerMu sync.Mutex

Callers

nothing calls this directly

Calls 4

handleGetFunction · 0.85
handlePostFunction · 0.85
AddMethod · 0.80
HeaderMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…