Module for tracing outcoming HTTP requests
Usage
Install module via npm:
npm install http-tracer
Then just enable http-tracer
and make your requests as usual. Disable tracing afterwards if you don't need one.
const httpTracer = ;const got = ; // or any another request library httpTracer; ;
Example of script output:
.enable([params, [cb]])
params.ignore: Array(string|RegExp) = []
Array of regexps or strings to ignore
httpTracer;
cb: (options, req) => void = _defaultTraceOutputFunction
Function which trace request data. Replaces default output.
httpTracer;
http-tracer
is compatible with any module using http.request function (https, got, asker, etc.).