def render(self, request):
        m = getattr(self, 'render_' + request.method, None)
        if not m:
            # This needs to be here until the deprecated subclasses of the
            # below three error resources in twisted.web.error are removed.
            from twisted.web.error import UnsupportedMethod
            allowedMethods = (getattr(self, 'allowedMethods', 0) or
                              _computeAllowedMethods(self))
            raise UnsupportedMethod(allowedMethods)
        return m(request)
Render a given resource. See L{IResource}'s render method.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/web/resource.py/Resource.render