Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/alibaba/anyproxy
/ isViaProxy
Function
isViaProxy
test/util/HttpUtil.js:278–280 ·
view source on GitHub ↗
(req)
Source
from the content-addressed store, hash-verified
276
* verify
if
the request data is a valid proxy request, by checking specified header
277
*/
278
function
isViaProxy(req) {
279
return
req.headers[
'via-proxy'
] ===
'true'
;
280
}
281
282
/*
283
* check
if
url is supported by request moudle
Callers
1
testWrapper
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected