htt

httpstat

httpstat node implementation

Showing:

Popularity

Downloads/wk

6

GitHub Stars

109

Maintenance

Last Commit

7mos ago

Contributors

3

Package

Dependencies

2

Size (min+gzip)

9.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

httpstat

Build Status

httpstat is a curl like tool, visualize http/https process and show the duration.

image

Reference from python httpstat and go httpstat .

Install as tool

$ npm install httpstat -g 

Usage as tool

$ httpstat http://example.com/
$ httpstat -X POST -d test http://example.com/

Install as library

$ npm install httpstat -S

Usage as library

const httpstat = require('httpstat');

httpstat('http://example.com', /* option, headers, body */).then((result) => {
  console.log(result); // time property has duration time.
}).catch((e) => {
  console.error(e);
});

API

httpstat(url, [options], [headers], [body]) - return Promise

  • url, type: string, url is a request target url. required.
  • options, type: object, options is a http(s) request options see node http API
  • headers, type: array, headers is http request headers like ["Content-Type: application/json"]
  • body, type: string, body is http request body.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial