httpyac

HTTP/REST CLI Client for *.http files

Usage no npm install needed!

<script type="module">
  import httpyac from 'https://cdn.skypack.dev/httpyac';
</script>

README

HttpYac

httpYac - Yet another Rest Client

httpyac CLI provides a command line interface to execute _.http and _.rest files. This can be used to quickly execute a single *.http file, but also to execute all files in a folder. httpyac supports HTTP, Rest, GraphQL, WebSocket und gRPC Requests

HttpYac HttpYac CLI

Installation

npm install -g httpyac
httpyac --version

Commands

> httpyac --help

usage: httpyac <file or glob pattern> [options]
       --all           execute all http requests in a http file
       --bail          stops when a test case fails
  -e   --env           list of environments
       --filter        filter requests output (only-failed)
  -h   --help          help
       --insecure      allow insecure server connections when using ssl
  -i   --interactive   do not exit the program after request, go back to selection
       --json          use json output
  -l   --line          line of the http requests
  -n   --name          name of the http requests
       --no-color      disable color support
  -o   --output        output format of response (short, body, headers, response, exchange, none)
       --output-failed output format of failed response (short, body, headers, response, exchange, none)
       --raw           prevent formatting of response body
  -r   --repeat        repeat count for requests
       --repeat-mode   repeat mode: sequential, parallel (default)
  -s   --silent        log only request
       --timeout       maximum time allowed for connections
       --var           set variables
  -v   --verbose       make the operation more talkative

Example

@user = doe
@password = 12345678

GET https://httpbin.org/basic-auth/{{user}}/{{password}}
Authorization: Basic {{user}} {{password}}

more examples and guide

License

MIT License

Change Log

CHANGELOG