https://github.com/yusukebe/rj
CLI for printing HTTP Response as JSON.
https://github.com/yusukebe/rj
cli command-line curl golang http-client json
Last synced: 29 days ago
JSON representation
CLI for printing HTTP Response as JSON.
- Host: GitHub
- URL: https://github.com/yusukebe/rj
- Owner: yusukebe
- License: mit
- Created: 2021-11-08T10:43:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T04:44:09.000Z (over 2 years ago)
- Last Synced: 2025-03-29T06:43:11.583Z (about 2 months ago)
- Topics: cli, command-line, curl, golang, http-client, json
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 52
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rj
`rj` is a command line tool for printing HTTP Response as JSON.

## Installation
### Homebrew
You can also install via hombrew on macOS:
```plain
$ brew install yusukebe/tap/rj
```### Binary
Download the binary from [GitHub Releases](https://github.com/yusukebe/rj/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:
```plain
$ go install github.com/yusukebe/rj/cmd/rj@latest
```## Usage
The usage:
```plain
$ rj [url] [flags]
```Available options:
```plain
-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:

## Related projects
- [reorx/httpstat](https://github.com/reorx/httpstat)
- [jaygooby/ttfb.sh](https://github.com/jaygooby/ttfb.sh)
- [gfx/hj](https://github.com/gfx/hj)## Author
Yusuke Wada
## License
MIT