MCPcopy Index your code
hub / github.com/cortexproject/cortex / ForwardRequest

Method ForwardRequest

tools/querytee/proxy_backend.go:54–61  ·  view source on GitHub ↗
(orig *http.Request)

Source from the content-addressed store, hash-verified

52}
53
54func (b *ProxyBackend) ForwardRequest(orig *http.Request) (int, []byte, error) {
55 req, err := b.createBackendRequest(orig)
56 if err != nil {
57 return 0, nil, err
58 }
59
60 return b.doBackendRequest(req)
61}
62
63func (b *ProxyBackend) createBackendRequest(orig *http.Request) (*http.Request, error) {
64 req, err := http.NewRequest(orig.Method, orig.URL.String(), nil)

Callers 1

Calls 2

createBackendRequestMethod · 0.95
doBackendRequestMethod · 0.95

Tested by

no test coverage detected