MCPcopy
hub / github.com/grafana/tempo / WriteHeader

Method WriteHeader

modules/frontend/mcp_tools.go:407–413  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

405}
406
407func (rb *responseBuffer) WriteHeader(code int) {
408 if rb.wroteHeader {
409 return // Prevent multiple calls
410 }
411 rb.status = code
412 rb.wroteHeader = true
413}
414
415func (rb *responseBuffer) Write(data []byte) (int, error) {
416 if !rb.wroteHeader {

Callers 15

WriteMethod · 0.95
TestObjectWithPrefixFunction · 0.45
TestDeleteFunction · 0.45
TestRetry_ClearBlockFunction · 0.45
TestDeleteFunction · 0.45
metadataMockedHandlerFunction · 0.45
ServeHTTPMethod · 0.45
TestAcceptHeaderIsSetFunction · 0.45
testFrontendFunction · 0.45
newFailedTestResponseFunction · 0.45

Calls

no outgoing calls

Tested by 13

TestObjectWithPrefixFunction · 0.36
TestDeleteFunction · 0.36
TestRetry_ClearBlockFunction · 0.36
TestDeleteFunction · 0.36
metadataMockedHandlerFunction · 0.36
TestAcceptHeaderIsSetFunction · 0.36
testFrontendFunction · 0.36
newFailedTestResponseFunction · 0.36
TestClient_TraceByIDFunction · 0.36
Test_ReportLoopFunction · 0.36