index.html: move info about ?=ip query param to a central place

This commit is contained in:
Maxim Baz 2020-07-09 21:37:04 +02:00
parent edbb0b6433
commit eb6d590990
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335

View File

@ -84,6 +84,7 @@
<p>Multiple command line HTTP clients are supported, <p>Multiple command line HTTP clients are supported,
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 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>, <a href="https://www.freebsd.org/cgi/man.cgi?fetch(1)">fetch</a>, and <a href="https://github.com/astaxie/bat">bat</a>.</p> Wget</a>, <a href="https://www.freebsd.org/cgi/man.cgi?fetch(1)">fetch</a>, and <a href="https://github.com/astaxie/bat">bat</a>.</p>
<p>All endpoints (except <code>/port</code>) can return information about a custom IP address specified via <code>?ip=</code> query parameter.</p>
</div> </div>
</div> </div>
<div class="pure-g"> <div class="pure-g">
@ -135,7 +136,6 @@ $ http {{ .Host }}/asn
$ http {{ .Host }}/json $ http {{ .Host }}/json
{{ .JSON }}</pre> {{ .JSON }}</pre>
<p>Setting the <code>Accept: application/json</code> header also works as expected.</p> <p>Setting the <code>Accept: application/json</code> header also works as expected.</p>
<p>All endpoints (except <code>/port</code>) can return information about a custom IP address specified via <code>?ip=</code> query parameter.</p>
<h2>Plain output</h2> <h2>Plain output</h2>
<p>Always returns the IP address including a trailing newline, regardless of user agent.</p> <p>Always returns the IP address including a trailing newline, regardless of user agent.</p>
<pre> <pre>