File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,12 @@ def before_request(self, endpoint):
91
91
:param endpoint [str]: [endpoint to server the route]
92
92
"""
93
93
94
+ # This inner function is basically a wrapper arround the closure(decorator)
95
+ # being returned.
96
+ # It takes in a handler and converts it in into a closure
97
+ # and returns the arguments.
98
+ # Arguments are returned as they could be modified by the middlewares.
94
99
def inner (handler ):
95
- # add handling for async functions
96
100
async def async_inner_handler (* args ):
97
101
await handler (args )
98
102
return args
@@ -115,8 +119,12 @@ def after_request(self, endpoint):
115
119
:param endpoint [str]: [endpoint to server the route]
116
120
"""
117
121
122
+ # This inner function is basically a wrapper arround the closure(decorator)
123
+ # being returned.
124
+ # It takes in a handler and converts it in into a closure
125
+ # and returns the arguments.
126
+ # Arguments are returned as they could be modified by the middlewares.
118
127
def inner (handler ):
119
- # add handling for async functions
120
128
async def async_inner_handler (* args ):
121
129
await handler (args )
122
130
return args
You can’t perform that action at this time.
0 commit comments