Response

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Building Response object is a common way to return information from URL handler back to web framework for returning to client:

Default Content-Type

Django

text/html; charset=utf-8

Flask

text/html; charset=utf-8

Bottle

text/html; charset=utf-8
application/json
<empty>

webapp2/WebOb

text/html; charset=utf-8