'Look up the action-specific method and its extensions.'

def _get_method(self, request, action, content_type, body):

    try:
        if (not self.controller):
            meth = getattr(self, action)
        else:
            meth = getattr(self.controller, action)
    except AttributeError:
        if ((not self.wsgi_actions) or (action not in (_ROUTES_METHODS + ['action']))):
            raise
    else:
        return (meth, self.wsgi_extensions.get(action, []))
    if (action == 'action'):
        action_name = action_peek(body)
    else:
        action_name = action
    return (self.wsgi_actions[action_name], self.wsgi_action_extensions.get(action_name, []))
