From 208aa2791d45927bcd2cfe3d11111b26d8f5703c Mon Sep 17 00:00:00 2001 From: gennyble Date: Mon, 16 Jun 2025 22:02:13 -0500 Subject: support xml response type --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index d925d8d..f49d182 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,21 @@ A `200` status code will be returned, with an IP in the body, if: A `302` status code will be returned, with no body, if: - The last request to use the auth value comes from the same IP address -You may specify a `Content-Type` of `application/json` or `text/plain`. Example -responses are below: +There are multiple `Content-Type`s supported. Below is a list of types and +example responses. If you do not provide a `Content-Type`, plaintext is assumed. **`application/json`** -`{"ip": "127.0.0.1"}` +```json +{"ip": "127.0.0.1"} +``` **`text/plain`** -`127.0.0.1` \ No newline at end of file +``` +127.0.0.1 +``` + +**`application/xml`** +```xml + +1.1.1.1 +``` \ No newline at end of file -- cgit 1.4.1-3-g733a5