A small, always-on HTTP echo service used by the
RustCFML engine test-suite to exercise
<cfhttp>. It replaces the public
httpbin.org dependency, which was flaky in CI. Because it
runs on Cloudflare's edge it is effectively always available and low
latency from anywhere.
Each endpoint returns JSON. Point a client at the URLs below.
Returns a JSON description of the request: method, full URL, query
args, form fields, headers
(original case), cookies and the raw body.
Works for GET / POST / PUT / PATCH / DELETE.
GET https://rustcfml-worker.rustcfml.workers.dev/echo/request.cfm?foo=bar
{"method":"GET","url":"https://rustcfml-worker.rustcfml.workers.dev/echo/request.cfm?foo=bar","path":"/echo/request.cfm","queryString":"foo=bar","args":{"foo":"bar"},"form":{},"headers":{"Host":"rustcfml-worker.rustcfml.workers.dev"},"cookies":{},"body":"","userAgent":""}
Echoes every query param back as a response header of the same name,
and returns the same map as JSON under reflected.
GET https://rustcfml-worker.rustcfml.workers.dev/echo/response-headers.cfm?X-Custom-Response=HelloWorld → X-Custom-Response: HelloWorld
Responds with the status code in ?code=NNN (default
200).
GET https://rustcfml-worker.rustcfml.workers.dev/echo/status.cfm?code=404