Skip to Content
Mastering Flask Web Development - Second Edition
book

Mastering Flask Web Development - Second Edition

by Daniel Gaspar, Jack Stouffer
October 2018
Intermediate to advanced
332 pages
8h 9m
English
Packt Publishing
Content preview from Mastering Flask Web Development - Second Edition

Request setup and teardown

When your WSGI (Web Server Gateway Interface) handles a request, Flask creates a request context object that contains all the information about the request itself. This object is pushed into a stack that contains other important information, such as the Flask app , g, session, and flash messages.

The request object is available to any function, view, or template that is currently processing the request; this happens without the need to pass around the request object itself. request contains information such as HTTP headers, URI arguments, URL path, WSGI environment, and whatnot.

For more detailed information on the Flask request object, see: http://flask.pocoo.org/docs/api/#incoming-request-data.

We can easily ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Flask Web Development, 2nd Edition

Flask Web Development, 2nd Edition

Miguel Grinberg
Flask Web Development

Flask Web Development

Miguel Grinberg

Publisher Resources

ISBN: 9781788995405Supplemental Content