URL2Handler is a http.HandlerFunc that hangs.
(w http.ResponseWriter, req *http.Request)
| 46 | |
| 47 | // URL2Handler is a http.HandlerFunc that hangs. |
| 48 | func URL2Handler(w http.ResponseWriter, req *http.Request) { |
| 49 | // Respond the HTTP header to unblock the http.Get() function. |
| 50 | w.Header().Set("Content-Type", "text/plain; charset=utf-8") |
| 51 | w.Header().Set("Content-Length", "100000") |
| 52 | w.WriteHeader(200) |
| 53 | b := [4096]byte{} |
| 54 | _, _ = w.Write(b[:]) |
| 55 | <-Unblock |
| 56 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…