Comments (1)
why is the body_arguments attribute initialized as an empty dictionary {}?
What alternative do you have in mind?
This design choice necessitates developers to manually parse the request.body when handling POST request bodies,
Ah, are you talking about parsing JSON or other body formats? The (query|body)_argument(s)
attributes and methods are specific to HTML forms, and they inherit a lot of quirks from the limitations of the form-encoded format. If you're using something other than HTML form-encoded data, just ignore all of this and do something like self.json_args = parse(self.request.body)
in an override of prepare()
.
Will this issue be addressed or improved in future versions?
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.
from tornado.
Related Issues (20)
- Test fail with openssl 3.2 HOT 1
- tornado.websocket.WebSocketClosedError HOT 1
- Send 204 as HTTPError
- Tornado Websocket write message performance degradation when binary is False HOT 2
- `Subprocess.wait_for_exit` never resolves if process terminated before it is called HOT 3
- Websocket Client Handshake URI issue HOT 1
- Questions about Copilot + Open Source Software Hierarchy
- Please update to 3.11 HOT 1
- TypeError: WebSocketHandler.init() missing 2 required positional arguments: 'application' and 'request' HOT 3
- Under pytest 8.2.0, 'AsyncHTTPTestCase' has no attribute 'runTest' HOT 1
- 6.4.1: pytest fails in multiple nits with `AttributeError: 'TestIOStreamMixin' object has no attribute 'io_loop'` error HOT 3
- Vulnerability: GHSA-753j-mpmx-qq6g HOT 1
- v6.1,CPU increased to 100% when the client closes the connection HOT 4
- Tornado version and version_info inconsistent HOT 2
- ValueError when If-Modified-Since is invalid for StaticFileHandler request HOT 7
- Tornado not sufficiently validating HTTP method HOT 2
- form data with &s in it breaks get_body_argument() HOT 3
- http server occasionally experiences high latency HOT 3
- `from __future__ import annotations` should be used HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tornado.