Last active
April 1, 2018 14:33
-
-
Save jneo8/1ba7c7ddd31e23d204671d2c23382a8a to your computer and use it in GitHub Desktop.
falcon framework lifecycle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| init_req() | |
| init_resp() | |
| get_middleware() | |
| try: | |
| try: | |
| request_middleware() | |
| except: | |
| handle_exception() | |
| get_responder(router_search) | |
| else: | |
| try: | |
| resource_middleware() | |
| responder(req, resp, **params) | |
| except: | |
| handle_exception() | |
| finally: | |
| try: | |
| response_middleware() | |
| except: | |
| handle_exception() | |
| set_status_and_headers() | |
| return_the_response_per_the_WSGI_spec() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment