MCPcopy Create free account
hub / github.com/ampproject/amphtml / saveVariableRequest

Function saveVariableRequest

build-system/server/variable-substitution.js:104–111  ·  view source on GitHub ↗

* @param {*} req require('express').Request * @param {*} res require('express').Response

(req, res)

Source from the content-addressed store, hash-verified

102 * @param {*} res require('express').Response
103 */
104function saveVariableRequest(req, res) {
105 res.setHeader('Access-Control-Allow-Credentials', true);
106 res.setHeader('Access-Control-Allow-Origin', '*');
107 res.setHeader('Access-Control-Allow-Methods', 'GET');
108 res.setHeader('Access-Control-Allow-Headers', 'text/plain');
109 variableSubstitution = req.query;
110 url = req.originalUrl;
111}
112
113/**
114 * @param {*} _req require('express').Request

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected