MCPcopy Create free account
hub / github.com/maruel/panicparse / URL1Handler

Function URL1Handler

cmd/panicweb/internal/internal.go:37–45  ·  view source on GitHub ↗

URL1Handler is a http.HandlerFunc that hangs.

(w http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

35
36// URL1Handler is a http.HandlerFunc that hangs.
37func 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.
48func URL2Handler(w http.ResponseWriter, req *http.Request) {

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…