@Request.application
    def local_server(self, request):
        adapter = self.url_map.bind_to_environ(request.environ)
        try:
            endpoint, values = adapter.match()
            return getattr(self, 'on_' + endpoint)(request, **values)
        except HTTPException as e:
            return e
Local webserver running on separate thread for dev usage
dataset/ETHPy150Open StackHut/stackhut/stackhut_toolkit/common/runtime/backends.py/LocalRequestServer.local_server