| 1 |
.. _flask_evolution: |
| 2 |
|
| 3 |
Flask evolution |
| 4 |
=============== |
| 5 |
|
| 6 |
(The author) sees Quart as an evolution of Flask, primarily to support |
| 7 |
asyncio and secondarily to support websockets and HTTP/2. These |
| 8 |
additions are designed following (the author's interpretation) of |
| 9 |
Flask's design choices. It is for this reason that the websocket |
| 10 |
context and global exist, rather than as an argument to the route |
| 11 |
handler. |
| 12 |
|
| 13 |
Omissions from the Flask API |
| 14 |
---------------------------- |
| 15 |
|
| 16 |
There are parts of the Flask API that I've decided to either not |
| 17 |
implement, these are, |
| 18 |
|
| 19 |
request.stream |
| 20 |
^^^^^^^^^^^^^^ |
| 21 |
|
| 22 |
The ``stream`` method present on Flask request instances allows the |
| 23 |
request body to be 'streamed' via a file like interface. In Quart |
| 24 |
:ref:`request_body` is done differently in order to make use of the |
| 25 |
``async`` keyword. |