What is it?
This is a Cloudflare Worker port of httpbin.org HTTP request & response testing service.
Endpoints
- /absolute-redirect/:n - Absolute redirects n times.
- /anything/:anything - Returns anything that is passed to request.
- /base64/decode/:value - Decodes a Base64 encoded string.
- /base64/encode/:value - Encodes a string into Base64.
- /basic-auth/:user/:passwd - Challenges HTTPBasic Auth.
- /bytes/:n - Generates n random bytes of binary data, accepts optional seed integer parameter.
- /cache - Returns 200 unless an If-Modified-Since or If-None-Match header is provided, when it returns a 304.
- /cache/:n - Sets a Cache-Control header for n seconds.
- /cookies - Returns cookie data.
- /cookies/set?name=value - Sets one or more simple cookies.
- /cookies/delete?name - Deletes one or more simple cookies.
- /delay/:n - Delays responding for min(n, 10) seconds.
- /delete - Returns request data. Allows only DELETE requests.
- /forms/post - HTML form that submits to /post.
- /get - Returns request data. Allows only GET requests.
- /head - Returns request data. Allows only HEAD requests.
- /headers - Returns request header dict.
- /html - Renders an HTML Page.
- /hostname - Returns the name of the host serving the request.
- /image - Returns page containing an image based on sent Accept header.
- /image/jpeg - Returns a JPEG image.
- /image/png - Returns a PNG image.
- /image/svg - Returns a SVG image.
- /image/webp - Returns a WEBP image.
- /ip - Returns Origin IP.
- /json - Returns JSON.
- /json/:value - Returns the specified JSON..
- /links/:n - Returns page containing n HTML links.
- /patch - Returns request data. Allows only PATCH requests.
- /post - Returns request data. Allows only POST requests.
- /put - Returns request data. Allows only PUT requests.
- /range/:n - Streams n bytes, and allows specifying a Range header to select a subset of the data.
- /redirect-to?url=foo&status_code=307 - Redirects to the foo URL.
- /redirect-to?url=foo - 302 Redirects to the foo URL.
- /redirect/:n - 302 Redirects n times.
- /response-headers?key=val - Returns given response headers.
- /status/:code - Returns given HTTP Status code.
- /status-no-response/:code - Returns given HTTP Status code with empty body.
- /user-agent - Returns user-agent.
- /ws - Creates connection with websocket echo server. Allows only requests with upgrade header.
- /xml - Returns some XML.
- /xml/:value - Returns some XML.