表題を知ったのでメモ書き。
■ 環境
- HTTPie 0.9.9
- Homebrew
- Mac OSX El Capitan
■ httpie
`brew`でインストールする。
$ brew update
$ brew install httpie
“python3“に依存しているようである。
$ brew list httpie
/usr/local/Cellar/httpie/0.9.9/bin/http
/usr/local/Cellar/httpie/0.9.9/libexec/bin/ (16 files)
/usr/local/Cellar/httpie/0.9.9/libexec/lib/ (790 files)
/usr/local/Cellar/httpie/0.9.9/libexec/ (2 files)
$
$ which http
/usr/local/bin/http
$
コマンドは`http`がインストールされている。
$ http httpie.org
HTTP/1.1 301 Moved Permanently
CF-RAY: 36d9e671b1842e45-NRT
Cache-Control: max-age=3600
Connection: keep-alive
Date: Mon, 12 Jun 2017 09:59:55 GMT
Expires: Mon, 12 Jun 2017 10:59:55 GMT
Location: https://httpie.org/
Server: cloudflare-nginx
Transfer-Encoding: chunked
$
シンタックスハイライトされていて見やすい。上記はドキュメントままのサンプルであるが、自身が管理しているサイトに対して実行したところ、HTMLもシンタックスハイライトされていてとても見やすかった。
以上。