MCPcopy
hub / github.com/ampproject/amphtml / getUrlPrefix

Function getUrlPrefix

build-system/server/app.js:1534–1536  ·  view source on GitHub ↗

* @param {express.Request} req * @return {string}

(req)

Source from the content-addressed store, hash-verified

1532 * @return {string}
1533 */
1534function getUrlPrefix(req) {
1535 return req.protocol + '://' + req.headers.host;
1536}
1537
1538/**
1539 * @param {string} filePath

Callers 2

proxyToAmpProxyFunction · 0.70
app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected