We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c65ea2d commit 6520512Copy full SHA for 6520512
server.js
@@ -57,6 +57,10 @@ paths.forEach(pathDef => {
57
58
function getHandler(pathDef) {
59
return (req, res) => {
60
+ console.log(`Interception:`)
61
+ console.log(` Of type: ${req.method}`);
62
+ console.log(` From host: ${req.hostname}`);
63
+ console.log(` To route: ${req.originalUrl}`);
64
if (pathDef['parse']) {
65
parseRequest(req)
66
}
@@ -99,10 +103,6 @@ function saveRequest(pathDef, data) {
99
103
100
104
101
105
function parseRequest(req) {
102
- console.log(`Interception:`)
- console.log(` Of type: ${req.method}`);
- console.log(` From host: ${req.hostname}`);
- console.log(` To route: ${req.originalUrl}`);
106
console.log(` With headers:`);
107
console.log(util.inspect(req.headers, {depth: null}));
108
if (req.body) {
0 commit comments