(logs, req)
| 7 | const fixtures = require('./fixtures'); |
| 8 | |
| 9 | function 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. |
no test coverage detected