MCPcopy
hub / github.com/grafana/dskit / getFormat

Function getFormat

kv/memberlist/http_status_handler.go:159–167  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

157}
158
159func getFormat(req *http.Request) string {
160 const viewFormat = "format"
161
162 format := ""
163 if len(req.Form[viewFormat]) > 0 {
164 format = req.Form[viewFormat][0]
165 }
166 return format
167}
168
169func viewMessage(w http.ResponseWriter, kv *KV, msg Message, format string) {
170 c := kv.GetCodec(msg.Pair.Codec)

Callers 1

ServeHTTPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected