rj
rj
is a command line tool for printing HTTP Response as JSON.
Installation
Homebrew
You can also install via hombrew on macOS:
$ brew install yusukebe/tap/rj
Binary
Download the binary from GitHub Releases and install it somewhere in your $PATH. rj currently provides pre-built binaries for Linux, macOS and Windows.
Source
To install from the source, use go install:
$ go install github.com/yusukebe/rj/cmd/rj@latest
Usage
The usage:
$ rj [url] [flags]
Available options:
-A, --agent string User-Agent name (default "rj/{{ Version }}")
-u, --basic string Basic Auth username:password
-H, --header stringArray HTTP Request Header
-h, --help help for rj
--http1.1 Use HTTP/1.1
--http3 Use HTTP/3
-X, --method string HTTP Request method (default "GET")
-v, --version version for rj
Screenshots
With jq
:
HTTP/3
Now, support HTTP/3 with --http3
option:
Author
Yusuke Wada https://github.com/yusukebe
License
MIT