A sample HTML document
Returns a small sample HTML document as `text/html; charset=utf-8`.
Deliberately non-JSON — a controllable upstream for testing how a gateway
handles text/html responses.
Response
200 text/html
Response
Returns a small sample XML document as `application/xml`.
Deliberately non-JSON — a controllable upstream for testing how a gateway
handles application/xml responses (e.g. content-type-aware plugins).
Response
200 application/xml
Response
A sample XML document
Returns a small sample image in the requested `format`.
Supported: png, jpeg (alias jpg), svg, webp — any other value
returns 400. Each returns a tiny fixed image with the matching
Content-Type, as a controllable upstream for testing gateway handling of
binary/image bodies.
Path Parameters
Image format: png, jpeg, svg, or webp
Response
Response
A sample image in the requested format
Path Parameters
Handler for the `/metrics` endpoint.
Returns a JSON object containing:
all_time: Total requests, successes, failures, and per-endpoint hits since server startlast_hour: Same metrics but only for the last 60 minutes (rolling window)
Example Response
{
"all_time": {
"total_requests": 1000,
"successes": 950,
"failures": 50,
"endpoint_hits": {
"/get": 500,
"/post": 300,
"/status/:code": 200
}
},
"last_hour": {
"total_requests": 100,
"successes": 95,
"failures": 5,
"endpoint_hits": {
"/get": 50,
"/post": 30,
"/status/:code": 20
}
}
}
Response
200 application/json
Response
Request statistics as JSON: all_time totals plus a rolling last_hour window, each with total/success/failure counts and per-endpoint hits. Only mounted when metrics_enabled is set — otherwise the route returns 404.
Returns `n` bytes of deterministic content with range-request support.
Without a Range header: 200 OK, full body, Accept-Ranges: bytes.
With a satisfiable Range: 206 Partial Content + Content-Range.
With an unsatisfiable Range: 416 Range Not Satisfiable + Content-Range: bytes */n.
n is capped at MAX_BYTES_RESPONSE_SIZE (10 MiB); larger values return 400.
Path Parameters
Total number of bytes the resource represents (max 10485760)
>= 0
Response
application/octet-stream
Response
Full body (no Range header)