Differences between revisions 2 and 3
Revision 2 as of 2014-11-25 04:28:59
Size: 984
Editor: techtonik
Comment: add default content-type
Revision 3 as of 2014-11-25 04:32:32
Size: 997
Editor: techtonik
Comment: fix table layout
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
||[[http://bottlepy.org/docs/dev/tutorial.html#generating-content|Bottle]]||text/html; charset=utf-8
application/json <empty> ||
||[[http://bottlepy.org/docs/dev/tutorial.html#generating-content|Bottle]]||text/html; charset=utf-8 <<BR>> application/json <<BR>> <empty> ||

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

Response (last edited 2014-11-25 04:32:32 by techtonik)

Unable to edit the page? See the FrontPage for instructions.