MCPcopy
hub / github.com/perkeep/perkeep / ServeHTTP

Method ServeHTTP

app/hello/main.go:65–69  ·  view source on GitHub ↗
(rw http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

63}
64
65func (h *helloHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
66 rw.Header().Set("Content-Type", "text/plain; charset=utf-8")
67 rw.WriteHeader(200)
68 fmt.Fprintf(rw, "Hello %s\n", h.who)
69}
70
71func main() {
72 flag.Parse()

Callers

nothing calls this directly

Calls 2

SetMethod · 0.65
WriteHeaderMethod · 0.45

Tested by

no test coverage detected