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

Function createHTTPServer

scripts/bench/server.js:44–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44function createHTTPServer() {
45 const server = httpServer.createServer({
46 root: join(__dirname, 'benchmarks'),
47 robots: true,
48 cache: 'no-store',
49 headers: {
50 'Access-Control-Allow-Origin': '*',
51 'Access-Control-Allow-Credentials': 'true',
52 },
53 });
54 server.listen(8080);
55 return server;
56}
57
58function serveBenchmark(benchmark, http2) {
59 if (http2) {

Callers 1

serveBenchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected