Httpbin

Returns a 304 if an If-Modified-Since header or If-None-Match is present. Returns the same as a GET otherwise.

get
https://httpbingo.org/cache

Headers

If-Modified-Since
If-None-Match

Response

Cached response

 

Sets a Cache-Control header for n seconds.

get
https://httpbingo.org/cache/{value}

Path Parameters

valueintegerrequired

Response

200

Cache control set

 
200

Assumes the resource has the given etag and responds to If-None-Match and If-Match headers appropriately.

get
https://httpbingo.org/etag/{etag}

Headers

If-None-Match
If-Match

Response

Normal response

 

Returns a set of response headers from the query string.

get
https://httpbingo.org/response-headers

Query Parameters

freeform

Response

200

Response headers

 
200

Returns a set of response headers from the query string.

post
https://httpbingo.org/response-headers

Query Parameters

freeform

Response

200

Response headers

 
200