deamon
deamon

Reputation: 92367

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?

Upvotes: 0

Views: 1311

Answers (1)

Xion
Xion

Reputation: 22770

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.

Upvotes: 1

Related Questions