1 unstable release

0.1.0 Apr 5, 2021

#10 in #send-http

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–20MB
~288K SLoC