gzip-encoded JSON echo of the request
Returns a gzip-encoded JSON echo of the request (`Content-Encoding: gzip`).
Response
200
Response
Returns `n` random bytes as the response body.
Response headers: Content-Type: application/octet-stream, Content-Length: n.
n is capped at MAX_BYTES_RESPONSE_SIZE (10 MiB); larger values return 400.
n = 0 returns an empty 200 OK.
The body is filled via rand::thread_rng().fill_bytes(&mut buf[..]) for
maximum-entropy payloads (useful for verifying binary integrity through a
proxy, since any tampering is observable).
Path Parameters
Number of random bytes to return (max 10485760)
>= 0
Response
application/octet-stream
Response
Returns n random bytes as application/octet-stream
Path Parameters
`/cache` — conditional-request endpoint.
Returns 304 Not Modified if the request carries If-None-Match or
If-Modified-Since; otherwise 200 with ETag + Last-Modified headers
and a JSON echo, so a client can revalidate on the next request.
Response
Response
Cacheable JSON echo with ETag + Last-Modified
`/cache/:n` — returns `200` with `Cache-Control: public, max-age=n`.
Path Parameters
>= 0
Response
200
Response
JSON echo with Cache-Control: public, max-age=n
Path Parameters
Returns all cookies from the request as JSON.
Parses the Cookie header and returns a JSON object with a cookies key
containing a map of cookie name-value pairs.
Example Response
{ "cookies": { "session": "abc123", "theme": "dark" } }
Response
200 application/json
Response
Returns all cookies from the request