Skip to content

Commit

Permalink
Merge 5fe2756 into f89b28d
Browse files Browse the repository at this point in the history
  • Loading branch information
kgriffs committed Feb 12, 2019
2 parents f89b28d + 5fe2756 commit 5ce1c8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/api/middleware.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Falcon's middleware interface is defined as follows:
def process_request(self, req, resp):
"""Process the request before routing it.
Note:
Because Falcon routes each request based on req.path, a
request can be effectively re-routed by setting that
attribute to a new value from within process_request().
Args:
req: Request object that will eventually be
routed to an on_* responder method.
Expand Down
6 changes: 6 additions & 0 deletions falcon/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ class ExampleComponent(object):
def process_request(self, req, resp):
\"\"\"Process the request before routing it.
Note:
Because Falcon routes each request based on
req.path, a request can be effectively re-routed
by setting that attribute to a new value from
within process_request().
Args:
req: Request object that will eventually be
routed to an on_* responder method.
Expand Down

0 comments on commit 5ce1c8f

Please sign in to comment.