def getChild(self, path, request):
        resrc = self._getResourceForRequest(request)
        if resrc.isLeaf:
            request.postpath.insert(0,request.prepath.pop(-1))
            return resrc
        else:
            return resrc.getChildWithDefault(path, request)
Implementation of resource.Resource's getChild method.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/vhost.py/NameVirtualHost.getChild