Skip to content

Instantly share code, notes, and snippets.

@jneo8
Last active April 1, 2018 14:33
Show Gist options
  • Select an option

  • Save jneo8/1ba7c7ddd31e23d204671d2c23382a8a to your computer and use it in GitHub Desktop.

Select an option

Save jneo8/1ba7c7ddd31e23d204671d2c23382a8a to your computer and use it in GitHub Desktop.
falcon framework lifecycle
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