def METHOD_NAME(self):
    """The endpoint that matched the request.  This in combination with
    :attr:`view_args` can be used to reconstruct the same or a
    modified URL.  If an exception happened when matching, this will
    be `None`.
    """
    if self.url_rule is not None:
        return self.url_rule.METHOD_NAME