July 2017
Beginner to intermediate
340 pages
7h 43m
English
In the previous examples, we've used the jsonify() function, which creates a Response object from the mapping returned by the view.
The Response object is, technically, a standard WSGI application you could use directly. It's wrapped by Flask, and called with the WSGI's environ, and the start_response function is received from the web server.
When Flask picks a view via its URL mapper, it expects it to return a callable object that can receive the environ and start_response arguments.