MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / serveTransparentGIF

Function serveTransparentGIF

pkg/web/web.go:212–217  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

210}
211
212func serveTransparentGIF(w http.ResponseWriter) {
213 gifBytes, _ := base64.StdEncoding.DecodeString(TransparentGif64)
214 w.Header().Set("Content-Type", "image/gif")
215 w.WriteHeader(http.StatusOK)
216 w.Write(gifBytes)
217}
218
219func handleLocalStreamFile(w http.ResponseWriter, r *http.Request, path string, no404 bool) {
220 http.NewResponseController(w).SetWriteDeadline(time.Time{})

Callers 2

handleLocalStreamFileFunction · 0.85

Calls 4

WriteMethod · 0.65
SetMethod · 0.45
HeaderMethod · 0.45
WriteHeaderMethod · 0.45

Tested by

no test coverage detected