doc(middleware): Document the new params argument for process_resource (#756)
Closes #751
This commit is contained in:
committed by
Fran Fitzpatrick
parent
5b8292447e
commit
fbfb0c91f4
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user