mimerender’s documentation

mimerender is a Python module for RESTful resource variant selection using the HTTP Accept header

It acts as a decorator that wraps a HTTP request handler to select the correct render function for a given HTTP Accept header. It uses mimeparse to parse the accept string and select the best available representation.

Support for webapp2 (Google App Engine), web.py, Flask and Bottle is available out of the box and it’s easy to add support for your favourite framework, just extend the MimeRenderBase class.

Indices and tables

Table Of Contents

Next topic

Usage Examples

This Page