开发者

WSGI request and response wrappers

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜