I'm looking for WSGI request and response wrappers for having a more convenient interface开发者_如何学运维 than the plain WSGI environ
and start_response
callback. I want something like WebOb or Werkzeug. But I don't like WebOb's PHP-like usage of GET and POST for parameter dictionaries, because HTTP is not limited to GET and POST and the distinction is not necessary when accessing params.
What request/response wrapper do you prefer and why?
WebOb allows you to access POST & GET parameters jointly by accessing Request.str_params
attribute. Additionally, Request.method gives you acces to the HTTP request type which is not limited to POST or GET.
精彩评论