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

Method WriteHeader

coderd/aibridged/transport.go:174–180  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

172}
173
174func (w *pipeResponseWriter) WriteHeader(status int) {
175 w.once.Do(func() {
176 w.status = status
177 w.frozenHeader = w.header.Clone()
178 close(w.gotHeaders)
179 })
180}
181
182func (w *pipeResponseWriter) Write(p []byte) (int, error) {
183 // net/http semantics: an implicit 200 OK on first Write if the handler

Calls 2

DoMethod · 0.65
CloneMethod · 0.45