diff options
author | gennyble <gen@nyble.dev> | 2025-06-16 22:02:13 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2025-06-16 22:02:13 -0500 |
commit | 208aa2791d45927bcd2cfe3d11111b26d8f5703c (patch) | |
tree | fb8b808dc39032343a0951b3b19455bbb9c65f46 /README.md | |
parent | df11f96162f89c740aba87d62e4512cfc46049bb (diff) | |
download | piper-main.tar.gz piper-main.zip |
support xml response type main
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 18 |
1 files changed, 14 insertions, 4 deletions
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 +<?xml version="1.0" encoding="utf-8"?> +<ip>1.1.1.1</ip> +``` \ No newline at end of file |