(w http.ResponseWriter, r *http.Request)
| 45 | } |
| 46 | |
| 47 | func 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 | |
| 57 | var ( |
| 58 | testServerMu sync.Mutex |
nothing calls this directly
no test coverage detected
searching dependent graphs…