MCPcopy
hub / github.com/cherrypy/cherrypy / _setup

Method _setup

cherrypy/_cptools.py:404–410  ·  view source on GitHub ↗

Hook caching into cherrypy.request.

(self)

Source from the content-addressed store, hash-verified

402 _wrapper.priority = 90
403
404 def _setup(self):
405 """Hook caching into cherrypy.request."""
406 conf = self._merged_args()
407
408 p = conf.pop('priority', None)
409 cherrypy.serving.request.hooks.attach('before_handler', self._wrapper,
410 priority=p, **conf)
411
412
413class Toolbox(object):

Callers

nothing calls this directly

Calls 3

_merged_argsMethod · 0.80
popMethod · 0.80
attachMethod · 0.80

Tested by

no test coverage detected