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

Method finish

devtools/devtools.go:256–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254}
255
256func (w *pipeResponseWriter) finish() {
257 if w.wasHijacked {
258 return
259 }
260 if !w.wroteHeader {
261 w.WriteHeader(http.StatusInternalServerError)
262 }
263 if !w.sentResponse {
264 w.sendResponse()
265 }
266 w.pw.Close()
267 <-w.done
268}
269
270func (w *pipeResponseWriter) sendResponse() {
271 if w.sentResponse {

Callers 2

uploadFunction · 0.80
HandleHijackMethod · 0.80

Calls 3

WriteHeaderMethod · 0.95
sendResponseMethod · 0.95
CloseMethod · 0.45

Tested by

no test coverage detected