-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Comments
What alternative do you have in mind?
Ah, are you talking about parsing JSON or other body formats? The
I have no plans for changes here. I have vague interest in some sort of middleware scheme that would let you centralize request parsing but no concrete plans. |
…verRequest and RequestHandler. Enhanced support for JSON, form-encoded, and multipart data, including file uploads. Updated unit tests to cover all scenarios, ensuring robust handling of requests.
…verRequest and RequestHandler. Enhanced support for JSON, form-encoded, and multipart data, including file uploads. Updated unit tests to cover all scenarios, ensuring robust handling of requests.
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.
The text was updated successfully, but these errors were encountered: