Size: 984
Comment: add default content-type
|
← Revision 3 as of 2014-11-25 04:32:32 ⇥
Size: 997
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:
Django: https://docs.djangoproject.com/en/1.7/ref/request-response/#httpresponse-objects
Flask: http://flask.pocoo.org/docs/0.10/api/#response-objects
Bottle: http://bottlepy.org/docs/dev/tutorial.html#tutorial-response
webapp2/WebOb: http://webapp-improved.appspot.com/api/webapp2.html#webapp2.Response
Default Content-Type |
|
text/html; charset=utf-8 |
|
text/html; charset=utf-8 |
|
text/html; charset=utf-8 |
|
text/html; charset=utf-8 |