Rucho

Handles requests to the `/delay/:n` endpoint.

Introduces a delay of n seconds before sending a response.
The delay duration n is extracted from the path.

Security

The maximum delay is capped at MAX_DELAY_SECONDS (300 seconds) to prevent
denial-of-service attacks where malicious requests could hold connections open indefinitely.

head
https://rucho.org/delay/{n}

Path Parameters

ninteger(int64)required

>= 0

Response

text/plain

Responds after the specified delay

string
head/delay/{n}
 
text/plain

Streams `numbytes` bytes of `*` over `duration` seconds.

get
https://rucho.org/drip

Query Parameters

numbytesinteger | null

Total bytes to emit (default 10, max 10000)

>= 0

durationinteger | null(int64)

>= 0

codeinteger | null(int32)

>= 0

delayinteger | null(int64)

>= 0

Response

application/octet-stream

Bytes streamed slowly

string
get/drip
 
application/octet-stream

Handles requests to the `/healthz` endpoint.

Returns an HTTP 200 OK status and the plain text “OK”.

get
https://rucho.org/healthz

Response

200 text/plain

Health check successful

string
get/healthz
 
200 text/plain

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.

get
https://rucho.org/html

Response

200 text/html

A sample HTML document

string
get/html
 
200 text/html

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).

get
https://rucho.org/xml

Response

200 application/xml

A sample XML document

string
get/xml
 
200 application/xml