MCPcopy Create free account
hub / github.com/cortexproject/cortex / DecodeResponse

Method DecodeResponse

pkg/querier/tripperware/query.go:70–70  ·  view source on GitHub ↗

DecodeResponse decodes a Response from an http response. The original request is also passed as a parameter this is useful for implementation that needs the request to merge result or build the result correctly.

(context.Context, *http.Response, Request)

Source from the content-addressed store, hash-verified

68 // The original request is also passed as a parameter this is useful for implementation that needs the request
69 // to merge result or build the result correctly.
70 DecodeResponse(context.Context, *http.Response, Request) (Response, error)
71 // EncodeRequest encodes a Request into an http request.
72 EncodeRequest(context.Context, Request) (*http.Request, error)
73 // EncodeResponse encodes a Response into an http response.

Callers 12

DoMethod · 0.65
TestCompressedResponseFunction · 0.65
TestResponseFunction · 0.65
TestMergeResponseFunction · 0.65
Benchmark_DecodeFunction · 0.65
TestResponseFunction · 0.65
TestResponseWithStatsFunction · 0.65
TestCompressedResponseFunction · 0.65

Calls

no outgoing calls

Tested by 11

TestCompressedResponseFunction · 0.52
TestResponseFunction · 0.52
TestMergeResponseFunction · 0.52
Benchmark_DecodeFunction · 0.52
TestResponseFunction · 0.52
TestResponseWithStatsFunction · 0.52
TestCompressedResponseFunction · 0.52