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

Function WriteTextResponse

pkg/util/http.go:81–86  ·  view source on GitHub ↗

Sends message as text/plain response with 200 status code.

(w http.ResponseWriter, message string)

Source from the content-addressed store, hash-verified

79
80// Sends message as text/plain response with 200 status code.
81func WriteTextResponse(w http.ResponseWriter, message string) {
82 w.Header().Set("Content-Type", "text/plain")
83
84 // Ignore inactionable errors.
85 _, _ = w.Write([]byte(message))
86}
87
88// Sends message as text/html response with 200 status code.
89func WriteHTMLResponse(w http.ResponseWriter, message string) {

Callers 3

TenantStatusHandlerFunction · 0.92
TenantsHandlerFunction · 0.92

Calls 3

SetMethod · 0.65
WriteMethod · 0.65
HeaderMethod · 0.45

Tested by

no test coverage detected