在Node.js中调试HTTP/HTTPS请求:debug-http

jopen 9年前

在Node.js中调试HTTP/HTTPS请求

安装

$ npm install --save debug-http

用法

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.

项目主页:http://www.open-open.com/lib/view/home/1447769452791