Support getting information about another IP (#94)

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts
2020-07-09 15:35:26 -04:00
committed by GitHub
parent 5377bffa96
commit edbb0b6433
4 changed files with 45 additions and 22 deletions

View File

@ -135,6 +135,7 @@ $ http {{ .Host }}/asn
$ http {{ .Host }}/json
{{ .JSON }}</pre>
<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>
<p>Always returns the IP address including a trailing newline, regardless of user agent.</p>
<pre>