HTTP debug logs for request-compose
$ DEBUG=req,res,json node app.js
Prints out the request method
, url
, and headers
:
req GET http://localhost:3000/
authorization: Bearer token
content-length: 2
Host: localhost:3000
Prints out the response statusCode
, statusMessage
, and headers
:
res 200 OK
content-type: application/json
date: Sun, 04 Feb 2018 13:42:15 GMT
connection: close
transfer-encoding: chunked
Prints out the raw request and response body:
body
{"hey":"hi"}
Prints out the parsed request and response body:
json
hey: hi
Synchronize request/response logs
Disable all colors