The `VariedResponse` class essentially turns the website into a REST API. When a controller returns a response object that is an instance of this class, the response representation sent to the user-agent will vary based on the value of the `Accept` request header. Specifically, requests containing `Accept: application/json` will receive a JSON-encoded object, while typical browser requests will get an (X)HTML document. |
||
---|---|---|
src/dcow | ||
static | ||
.gitignore | ||
MANIFEST.in | ||
debug.py | ||
setup.py |