https://github.com/simov/request-logs
HTTP debug logs for request-compose
https://github.com/simov/request-logs
Last synced: 9 months ago
JSON representation
HTTP debug logs for request-compose
- Host: GitHub
- URL: https://github.com/simov/request-logs
- Owner: simov
- License: apache-2.0
- Created: 2018-02-04T14:00:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T18:20:43.000Z (about 3 years ago)
- Last Synced: 2025-03-24T09:47:03.522Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# request-logs
> _HTTP debug logs for **[request-compose]**_
```bash
$ DEBUG=req,res,json node app.js
```
## req
Prints out the request `method`, `url`, and `headers`:
```
req GET http://localhost:3000/
authorization: Bearer token
content-length: 2
Host: localhost:3000
```
## res
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
```
## body
Prints out the raw request and response body:
```
body
{"hey":"hi"}
```
## json
Prints out the parsed request and response body:
```
json
hey: hi
```
## sync
Synchronize request/response logs
## nocolor
Disable all colors
[request-compose]: https://github.com/simov/request-compose