Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Transparent log http req
module['exports'] = function echoHttp (hook) {
hook.debug(hook.params);
hook.debug(hook.req.path);
hook.debug(hook.req.method);
hook.req.pipe(hook.res);
};
module['exports'].streaming = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.