valueintegerrequired
Sets a Cache-Control header for n seconds.
get
https://httpbin.org/cache/{value}
Path Parameters
Response
200
Response
200
Cache control set
get/cache/{value}
Path Parameters
200
Assumes the resource has the given etag and responds to If-None-Match and If-Match headers appropriately.
get
https://httpbin.org/etag/{etag}
Path Parameters
etagstringrequired
Automatically added
Headers
If-None-Matchstring
If-Matchstring
Response
Response
Normal response
get/etag/{etag}
Path Parameters
Headers
Returns a set of response headers from the query string.
get
https://httpbin.org/response-headers
Query Parameters
freeformstring
Response
200
Response
200
Response headers
get/response-headers
Query Parameters
200
Returns a set of response headers from the query string.
post
https://httpbin.org/response-headers
Query Parameters
freeformstring
Response
200
Response
200
Response headers
post/response-headers
Query Parameters
200
Response formats
Returns responses in different data formats