MCPcopy
hub / github.com/postmanlabs/httpbin / cache_control

Function cache_control

httpbin/core.py:645–649  ·  view source on GitHub ↗

Sets a Cache-Control header.

(value)

Source from the content-addressed store, hash-verified

643
644@app.route('/cache/<int:value>')
645def cache_control(value):
646 """Sets a Cache-Control header."""
647 response = view_get()
648 response.headers['Cache-Control'] = 'public, max-age={0}'.format(value)
649 return response
650
651
652@app.route('/encoding/utf8')

Callers

nothing calls this directly

Calls 1

view_getFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…