Add support for HTTPie. Fixes #13

This commit is contained in:
Martin Polden
2016-04-15 20:19:14 +02:00
parent f4420781a2
commit 5ad48ad3fa
3 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,7 @@
<h1>What is my IP address?</h1>
<p><code class="ip">{{ .IP }}</code></p>
<p>Multiple command line HTTP clients are supported,
including <a href="https://curl.haxx.se/">curl</a>, <a href="https://www.gnu.org/software/wget/">GNU
including <a href="https://curl.haxx.se/">curl</a>, <a href="https://github.com/jkbrzt/httpie">httpie</a>, <a href="https://www.gnu.org/software/wget/">GNU
Wget</a>
and <a href="https://www.freebsd.org/cgi/man.cgi?fetch(1)">fetch</a>.</p>
</div>
@ -49,6 +49,9 @@
$ curl ifconfig.co
{{ .IP }}
$ http ifconfig.co
{{ .IP }}
$ wget -qO- ifconfig.co
{{ .IP }}