MCPcopy Index your code
hub / github.com/ampproject/amphtml / callback

Function callback

build-system/server/amp4test.js:130–143  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

128 .send(`another client is withdrawing this ID [${key}]`);
129 }
130 const callback = function (result) {
131 if (result === undefined) {
132 // This happens when tearDown is called but no request
133 // of given ID has been received yet.
134 res.status(404).send(`Request of given ID not found: [${key}]`);
135 } else {
136 res.json({
137 headers: result.headers,
138 body: result.body,
139 url: result.url,
140 });
141 }
142 delete bank[req.params.bid][key];
143 };
144 if (result) {
145 callback(result);
146 } else {

Callers 10

amp4test.jsFile · 0.70
define-template.jsFile · 0.50
output.jsFile · 0.50
output.jsFile · 0.50
output.jsFile · 0.50
output.jsFile · 0.50
output.jsFile · 0.50
output.jsFile · 0.50
maybeParallelizeCommandFunction · 0.50
applyMethod · 0.50

Calls 2

sendMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected