Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tornado.httputil.HTTPServerRequest and tornado.web.RequestHandler #3369

Open
Stronking opened this issue Apr 10, 2024 · 0 comments
Open

tornado.httputil.HTTPServerRequest and tornado.web.RequestHandler #3369

Stronking opened this issue Apr 10, 2024 · 0 comments

Comments

@Stronking
Copy link

In the tornado.httputil.HTTPServerRequest class, why is the body_arguments attribute initialized as an empty dictionary {}? This design choice necessitates developers to manually parse the request.body when handling POST request bodies, and it precludes the use of parameter assertions. Consequently, when utilizing the tornado.web.RequestHandler.get_body_arguments methods, a MissingArgumentError is consistently thrown if the corresponding parameter is missing from the request body. Will this issue be addressed or improved in future versions?

This problem can hinder user experience and code robustness, especially for developers who are new to the Tornado framework. It may increase the difficulty of understanding and using the framework. It would be appreciated if the development team could consider optimizing this issue or providing clearer documentation on how to handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant