MCPcopy Create free account
hub / github.com/prometheus/prometheus / ContentType

Method ContentType

web/api/v1/codec.go:21–21  ·  view source on GitHub ↗

ContentType returns the MIME time that this Codec emits.

()

Source from the content-addressed store, hash-verified

19type Codec interface {
20 // ContentType returns the MIME time that this Codec emits.
21 ContentType() MIMEType
22
23 // CanEncode determines if this Codec can encode resp.
24 CanEncode(resp *Response) bool

Callers 2

respondMethod · 0.65
negotiateCodecMethod · 0.65

Implementers 2

JSONCodecweb/api/v1/json_codec.go
testCodecweb/api/v1/api_test.go

Calls

no outgoing calls

Tested by

no test coverage detected