MCPcopy Create free account
hub / github.com/vercel/examples / handleFavicon

Method handleFavicon

go/api/internal/handler/handler.go:46–54  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

44}
45
46func (h *Handler) handleFavicon(w http.ResponseWriter, r *http.Request) {
47 data, err := h.assets.ReadFile("public/favicon.ico")
48 if err != nil {
49 w.WriteHeader(http.StatusNotFound)
50 return
51 }
52 w.Header().Set("Content-Type", "image/x-icon")
53 w.Write(data)
54}
55
56func (h *Handler) handleGetData(w http.ResponseWriter, r *http.Request) {
57 items := []model.DataItem{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected