Differences between revisions 1 and 2
Revision 1 as of 2014-11-25 03:58:35
Size: 473
Editor: techtonik
Comment: add Response object comparison
Revision 2 as of 2014-11-25 04:28:59
Size: 984
Editor: techtonik
Comment: add default content-type
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
 * Flask: http://werkzeug.pocoo.org/docs/0.9/wrappers/#werkzeug.wrappers.Response  * Flask: http://flask.pocoo.org/docs/0.10/api/#response-objects
Line 7: Line 7:

||||'''Default Content-Type'''||
||[[https://docs.djangoproject.com/en/1.7/ref/request-response/#django.http.HttpResponse.__init__|Django]]||text/html; charset=utf-8||
||[[http://flask.pocoo.org/docs/0.10/api/#response-objects|Flask]]||text/html; charset=utf-8 ||
||[[http://bottlepy.org/docs/dev/tutorial.html#generating-content|Bottle]]||text/html; charset=utf-8
application/json <empty> ||
||[[http://webapp-improved.appspot.com/guide/response.html#guide-response|webapp2/WebOb]]||text/html; charset=utf-8||

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.