https://github.com/floatdrop/debug-http
Debug HTTP/HTTPS requests in Node.js
https://github.com/floatdrop/debug-http
Last synced: 9 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 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-25T13:15:26.000Z (almost 8 years ago)
- Last Synced: 2025-08-09T04:32:14.465Z (9 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 191
- 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)