MCPcopy Index your code
hub / github.com/react/react / request

Function request

fixtures/flight-esm/server/global.js:24–34  ·  view source on GitHub ↗
(options, body)

Source from the content-addressed store, hash-verified

22app.use(compress());
23
24function request(options, body) {
25 return new Promise((resolve, reject) => {
26 const req = http.request(options, res => {
27 resolve(res);
28 });
29 req.on('error', e => {
30 reject(e);
31 });
32 body.pipe(req);
33 });
34}
35
36app.all('/', async function (req, res, next) {
37 // Proxy the request to the regional server.

Callers 1

global.jsFile · 0.70

Calls 3

onMethod · 0.80
resolveFunction · 0.50
rejectFunction · 0.50

Tested by

no test coverage detected