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

Method Write

pkg/web/web.go:96–105  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

94}
95
96func (rw *notFoundBlockingResponseWriter) Write(b []byte) (int, error) {
97 if rw.status == http.StatusNotFound {
98 // Block the write if it's a 404
99 return len(b), nil
100 }
101 if rw.status == 0 {
102 rw.WriteHeader(http.StatusOK)
103 }
104 return rw.w.Write(b)
105}
106
107func handleService(w http.ResponseWriter, r *http.Request) {
108 bodyData, err := io.ReadAll(r.Body)

Callers

nothing calls this directly

Calls 2

WriteHeaderMethod · 0.95
WriteMethod · 0.65

Tested by

no test coverage detected