httpdumper

1.0.1 • Public • Published

httpdumper

httpdumper is a library that will help you debugging your http requests. You will have access to log details of the request. If there is a file from your multipart/form-data form, it will be uploaded to the specified upload directory. You could forward your requests to a host, so the client you're using will receive the original response.

BuildStatus Statements Branches Functions Lines GitHub license

screen

Requirements

  • Node >= 0.11.

Install

$ npm i -g httpdumper
$ git clone
$ npm i

Usage

$ httpdumper --port="3000" --host="http://localhost:9000" --uplaodDir="./uploads/"
$ npx httpdumper --port="3000" --host="http://localhost:9000" --uplaodDir="./uploads/"

To use from the project sources:

$ npm start -- --port="3000" --host="http://localhost:9000" --uplaodDir="./uploads/"

Options

Usage
  $ httpdumper <options>

Options
  --port          Port which httpdumper will listen to get the request (optional - default: port 3000)
  --host          Host to forward the requests (optional - if not defined, it will return the body request)
  --uplaodDir     Upload directory with the uploaded files from your requests  (optional - default : os.tmpdir())

Examples
  $ httpdumper
  $ httpdumper --port="3000" --host="http://localhost:9000" --uplaodDir="./uploads/"

License

MIT

Dependencies (5)

Dev Dependencies (9)

Package Sidebar

Install

npm i httpdumper

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

107 kB

Total Files

18

Last publish

Collaborators

  • merlier