URL1Handler is a http.HandlerFunc that hangs.
(w http.ResponseWriter, req *http.Request)
| 35 | |
| 36 | // URL1Handler is a http.HandlerFunc that hangs. |
| 37 | func URL1Handler(w http.ResponseWriter, req *http.Request) { |
| 38 | // Respond the HTTP header to unblock the http.Get() function. |
| 39 | w.Header().Set("Content-Type", "text/plain; charset=utf-8") |
| 40 | w.Header().Set("Content-Length", "100000") |
| 41 | w.WriteHeader(200) |
| 42 | b := [4096]byte{} |
| 43 | _, _ = w.Write(b[:]) |
| 44 | <-Unblock |
| 45 | } |
| 46 | |
| 47 | // URL2Handler is a http.HandlerFunc that hangs. |
| 48 | func URL2Handler(w http.ResponseWriter, req *http.Request) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…