Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/floatdrop/debug-http

Debug HTTP/HTTPS requests in Node.js
https://github.com/floatdrop/debug-http

Last synced: 2 days ago
JSON representation

Debug HTTP/HTTPS requests in Node.js

Awesome Lists containing this project

README

        

# debug-http [![Build Status](https://travis-ci.org/floatdrop/debug-http.svg?branch=master)](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)