https://github.com/floatdrop/debug-http
Debug HTTP/HTTPS requests in Node.js
https://github.com/floatdrop/debug-http
Last synced: 3 months ago
JSON representation
Debug HTTP/HTTPS requests in Node.js
- Host: GitHub
- URL: https://github.com/floatdrop/debug-http
- Owner: floatdrop
- License: mit
- Created: 2015-11-16T08:28:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T13:15:26.000Z (almost 7 years ago)
- Last Synced: 2025-03-31T08:11:14.522Z (3 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 192
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# debug-http [](https://travis-ci.org/floatdrop/debug-http)
> Debug HTTP/HTTPS requests in Node.js
## Install
```
$ npm install --save debug-http
```## Usage
```js
const debugHttp = require('debug-http');
debugHttp();const http = require('http');
http.get('http://google.com');
```## API
### debugHttp([fn])
#### fn
Type: `Function`
Request handler. By default outputs requests in console.
## License
MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)