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

Function URL2Handler

cmd/panicweb/internal/internal.go:48–56  ·  view source on GitHub ↗

URL2Handler is a http.HandlerFunc that hangs.

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

Source from the content-addressed store, hash-verified

46
47// URL2Handler is a http.HandlerFunc that hangs.
48func 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}

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…