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

Function handleStreamLocalFile

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

Source from the content-addressed store, hash-verified

325}
326
327func handleStreamLocalFile(w http.ResponseWriter, r *http.Request) {
328 path := r.URL.Query().Get("path")
329 if path == "" {
330 http.Error(w, "path is required", http.StatusBadRequest)
331 return
332 }
333 no404 := r.URL.Query().Get("no404")
334 handleLocalStreamFile(w, r, path, no404 != "")
335}
336
337func handleStreamFile(w http.ResponseWriter, r *http.Request) {
338 path := r.URL.Query().Get("path")

Callers

nothing calls this directly

Calls 3

handleLocalStreamFileFunction · 0.85
GetMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected