MCPcopy Index your code
hub / github.com/webpy/webpy / handle_with_processors

Method handle_with_processors

web/application.py:269–286  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

267 return self._delegate(fn, self.fvars, args)
268
269 def handle_with_processors(self):
270 def process(processors):
271 try:
272 if processors:
273 p, processors = processors[0], processors[1:]
274 return p(lambda: process(processors))
275 else:
276 return self.handle()
277 except web.HTTPError:
278 raise
279 except (KeyboardInterrupt, SystemExit):
280 raise
281 except:
282 print(traceback.format_exc(), file=web.debug)
283 raise self.internalerror()
284
285 # processors must be applied in the reverse order. (??)
286 return process(self.processors)
287
288 def wsgifunc(self, *middleware):
289 """Returns a WSGI-compatible function for this application."""

Callers 3

wsgiMethod · 0.95
_delegateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected