[IMP] Improvement/changes to the http request/response API.
authorFabien Meghazi <fme@openerp.com>
Wed, 26 Feb 2014 16:44:07 +0000 (17:44 +0100)
committerFabien Meghazi <fme@openerp.com>
Wed, 26 Feb 2014 16:44:07 +0000 (17:44 +0100)
commit992975f2368166627dc0717009edc9e441cf0e45
tree02f4818b82b2930a5fc18c6096894fed97b0901b
parenta900c2f44dbd6ed565f742c41a72f6a41ea81a75
parente2f92040dbff416b6494f75695296fed3bd230bb
[IMP] Improvement/changes to the http request/response API.

- Added http.Response object
- @http.route decorator wraps methods in order to convert returned value to Response object
- http.Request.func* variables moved to http.EndPoint class
- moved _first_arg_is_req backward compatibility feature in EndPoint class
- CORS support moved to new http.Request object
- Added a #render() helper on request object as a companion of #make_response() that will return a lazy qweb rendering response
- Extra check in routing_map() in order to forbid the chabge of request type in @http.route arguments inheritance
- Fix crash happening when no Host header is present in the request

bzr revid: fme@openerp.com-20140226164407-5avn72p20o3o4f7x