MCPcopy Index your code
hub / github.com/prometheus/prometheus / JSONCodec

Struct JSONCodec

web/api/v1/json_codec.go:39–39  ·  view source on GitHub ↗

JSONCodec is a Codec that encodes API responses as JSON.

Source from the content-addressed store, hash-verified

37
38// JSONCodec is a Codec that encodes API responses as JSON.
39type JSONCodec struct{}
40
41func (JSONCodec) ContentType() MIMEType {
42 return MIMEType{Type: "application", SubType: "json"}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected