rj
is a command line tool for printing HTTP Response as JSON.
You can also install via hombrew on macOS:
$ brew install yusukebe/tap/rj
Download the binary from GitHub Releases and install it somewhere in your $PATH. rj currently provides pre-built binaries for Linux, macOS and Windows.
To install from the source, use go install:
$ go install github.com/yusukebe/rj/cmd/rj@latest
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
With jq
:
Now, support HTTP/3 with --http3
option:
Yusuke Wada https://github.com/yusukebe
MIT