'Hook caching into cherrypy.request.'

def _setup(self):

    conf = self._merged_args()
    p = conf.pop('priority', None)
    cherrypy.serving.request.hooks.attach('before_handler', self._wrapper, priority=p, **conf)
