开发者

WSGI request and response wrappers

开发者 https://www.devze.com 2023-01-18 15:20 出处:网络
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 Werk

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

精彩评论

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