HTTP me!

HTTP me is an app initally designed to replicate the features of HTTPBin.org: being a convenient server that you can use to trigger a certain HTTP response behaviour.

It was previously a JavaScript project on Glitch, but has since been migrated to a Rust application running on Fastly Compute.

Usage

Request any path you like, as long as it is not / (which produces this page). Most directives can be duplicated or combined, and can be specified in multiple ways. If directives are mutually exclusive, those specified later take priority, and path segments take priority over query args, which take priority over headers.

Path segments

Any directive can be specified as a path segment. This returns the current time:

/now

Or this returns a 500 status code:

/status=500

Query string

Directives can also be part of the query string. Stackable directives (see below) can be specified multiple times, such as header:

/now?wait=1000&header=Cache-Control:max-age=300&header=Content-Type:text/plain

Headers

Add directives as request headers, prefixed with HM-:

HM-Wait: 2000
HM-Status: 500

Directives

The following stackable directives are available:

The following content directives are mutually exclusive. Only one will be honoured.