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

Function request

fixtures/flight/server/global.js:77–87  ·  view source on GitHub ↗
(options, body)

Source from the content-addressed store, hash-verified

75}
76
77function request(options, body) {
78 return new Promise((resolve, reject) => {
79 const req = http.request(options, res => {
80 resolve(res);
81 });
82 req.on('error', e => {
83 reject(e);
84 });
85 body.pipe(req);
86 });
87}
88
89async function renderApp(req, res, next) {
90 // Proxy the request to the regional server.

Callers 2

renderAppFunction · 0.70
global.jsFile · 0.70

Calls 3

onMethod · 0.80
resolveFunction · 0.50
rejectFunction · 0.50

Tested by

no test coverage detected