'Finds handler by the provided handler patterns and delegate response to
the matched handler.'

def _match_pattern(self, pattern_handlers):

    for pattern in pattern_handlers:
        match = re.match(pattern, self.path_only)
        if match:
            handler = getattr(self, pattern_handlers[pattern], None)
            if handler:
                handler(**match.groupdict())
                return True
    return None
