def METHOD_NAME(self, callback):
    """
    Return a list of the valid HTTP methods for this endpoint.
    """
    if hasattr(callback, 'actions'):
        actions = set(callback.actions)
        http_method_names = set(callback.cls.http_method_names)
        methods = [method.upper() for method in actions & http_method_names]
    else:
        methods = callback.cls().allowed_methods
    return [method for method in methods if method not in ('OPTIONS', 'HEAD')]