MCPcopy Index your code
hub / github.com/subtrace/subtrace / WriteHeader

Method WriteHeader

devtools/devtools.go:306–314  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

304}
305
306func (w *pipeResponseWriter) WriteHeader(code int) {
307 if w.wroteHeader {
308 return
309 }
310 w.wroteHeader = true
311
312 w.resp.StatusCode = code
313 w.resp.Status = fmt.Sprintf("%d %s", code, http.StatusText(code))
314}
315
316func (w *pipeResponseWriter) Write(b []byte) (int, error) {
317 if !w.wroteHeader {

Callers 3

finishMethod · 0.95
WriteMethod · 0.95
websocketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected