doc(middleware): Document the new params argument for process_resource (#756)

Closes #751
This commit is contained in:
Kurt Griffiths
2016-04-19 17:19:58 -05:00
committed by Fran Fitzpatrick
parent 5b8292447e
commit fbfb0c91f4
2 changed files with 11 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ Falcon's middleware interface is defined as follows:
the on_* responder.
"""
def process_resource(self, req, resp, resource):
def process_resource(self, req, resp, resource, params):
"""Process the request after routing.
Note:
@@ -41,6 +41,10 @@ Falcon's middleware interface is defined as follows:
responder.
resource: Resource object to which the request was
routed.
params: A dict-like object representing any additional
params derived from the route's URI template fields,
that will be passed to the resource's responder
method as keyword arguments.
"""
def process_response(self, req, resp, resource):

View File

@@ -50,7 +50,7 @@ class API(object):
the on_* responder.
\"""
def process_resource(self, req, resp, resource):
def process_resource(self, req, resp, resource, params):
\"""Process the request and resource *after* routing.
Note:
@@ -65,6 +65,11 @@ class API(object):
resource: Resource object to which the request was
routed. May be None if no route was found for
the request.
params: A dict-like object representing any
additional params derived from the route's URI
template fields, that will be passed to the
resource's responder method as keyword
arguments.
\"""
def process_response(self, req, resp, resource)