MCPcopy
hub / github.com/NVIDIA/aistore / reverseNodeRequest

Method reverseNodeRequest

ais/proxy.go:1803–1807  ·  view source on GitHub ↗

reverse-proxy request

(w http.ResponseWriter, r *http.Request, si *cluster.Snode)

Source from the content-addressed store, hash-verified

1801
1802// reverse-proxy request
1803func (p *proxy) reverseNodeRequest(w http.ResponseWriter, r *http.Request, si *cluster.Snode) {
1804 parsedURL, err := url.Parse(si.URL(cmn.NetPublic))
1805 debug.AssertNoErr(err)
1806 p.reverseRequest(w, r, si.ID(), parsedURL)
1807}
1808
1809func (p *proxy) reverseRequest(w http.ResponseWriter, r *http.Request, nodeID string, parsedURL *url.URL) {
1810 rproxy := p.rproxy.loadOrStore(nodeID, parsedURL, p.rpErrHandler)

Callers 5

listBucketsMethod · 0.95
reverseHandlerMethod · 0.95
s3RedirectMethod · 0.95
headObjS3Method · 0.95
reverseToOwnerMethod · 0.80

Calls 5

reverseRequestMethod · 0.95
AssertNoErrFunction · 0.92
ParseMethod · 0.80
IDMethod · 0.65
URLMethod · 0.45

Tested by

no test coverage detected