MCPcopy Index your code
hub / github.com/nodejs/node / logRequest

Function logRequest

test/common/proxy-server.js:9–15  ·  view source on GitHub ↗
(logs, req)

Source from the content-addressed store, hash-verified

7const fixtures = require('./fixtures');
8
9function logRequest(logs, req) {
10 logs.push({
11 method: req.method,
12 url: req.url,
13 headers: { ...req.headers },
14 });
15}
16
17// This creates a minimal proxy server that logs the requests it gets
18// to an array before performing proxying.

Callers 1

createProxyServerFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected