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

Method EncodeResponse

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

EncodeResponse encodes a Response into an http response.

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

Source from the content-addressed store, hash-verified

72 EncodeRequest(context.Context, Request) (*http.Request, error)
73 // EncodeResponse encodes a Response into an http response.
74 EncodeResponse(context.Context, *http.Request, Response) (*http.Response, error)
75}
76
77// Merger is used by middlewares making multiple requests to merge back all responses into a single one.

Callers 8

RoundTripMethod · 0.65
TestResponseFunction · 0.65
TestMergeResponseFunction · 0.65
TestResponseFunction · 0.65
TestResponseWithStatsFunction · 0.65
TestSplitByDayFunction · 0.65

Calls

no outgoing calls

Tested by 7

TestResponseFunction · 0.52
TestMergeResponseFunction · 0.52
TestResponseFunction · 0.52
TestResponseWithStatsFunction · 0.52
TestSplitByDayFunction · 0.52