MCPcopy
hub / github.com/ha/doozerd / ServeHTTP

Method ServeHTTP

src/pkg/web/web.go:34–37  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

32}
33
34func (sh stringHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
35 w.Header().Set("content-type", sh.contentType)
36 io.WriteString(w, sh.body)
37}
38
39func Serve(listener net.Listener) {
40 http.HandleFunc("/", viewHtml)

Callers 1

evServerFunction · 0.80

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected