#http-request #command-line #requests #send #header #cli #rest

bin+lib rest_cli

Send HTTP requests from the command line

1 unstable release

0.1.0 Apr 5, 2021

#187 in #send

MIT license

13KB
316 lines

REST Cli

Send HTTP requests from the command line.

Usage

rest_cli <file>

where file contains your HTTP requests.

Supported methods:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE
  • HEAD

Example

### GET slash route ###
http://localhost:3000
GET /

### POST to /auth/register ###
http://localhost:3000

# Headers
Content-Type: application/json
Authorization: bearer alghdlaiusdflhsadfkjsadf

# Body
{
    "username": "name",
    "password": "password123"
}

POST /auth/register

Dependencies

~6–18MB
~250K SLoC