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

Method WriteHeader

pkg/web/web.go:86–94  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

84}
85
86func (rw *notFoundBlockingResponseWriter) WriteHeader(status int) {
87 if status == http.StatusNotFound {
88 rw.status = status
89 return
90 }
91 rw.status = status
92 copyHeaders(rw.w.Header(), rw.headers)
93 rw.w.WriteHeader(status)
94}
95
96func (rw *notFoundBlockingResponseWriter) Write(b []byte) (int, error) {
97 if rw.status == http.StatusNotFound {

Callers 12

WriteMethod · 0.95
HandleWsInternalFunction · 0.45
handleServiceFunction · 0.45
handleWaveFileFunction · 0.45
serveTransparentGIFFunction · 0.45
WriteJsonErrorFunction · 0.45
WriteJsonSuccessFunction · 0.45
WebFnWrapFunction · 0.45
RunWebServerFunction · 0.45
handleVDomFunction · 0.45
SetupSSEMethod · 0.45

Calls 2

copyHeadersFunction · 0.85
HeaderMethod · 0.45

Tested by

no test coverage detected