1.0.1 • Published 3 years ago

httpdumper v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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

1.0.1

3 years ago

1.0.0

3 years ago

0.0.9

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago