import re


def _health_check_is_quick(request_handler):
    """Used by ```generate_health_check_response()``` to extract
    and parse the 'quick' argument from a request's query string.
    """
    arg_value = request_handler.get_argument('quick', 'y')

    if re.match(r'^(true|t|y|yes|1)$', arg_value, re.IGNORECASE):
        return True

    if re.match(r'^(false|f|n|no|0)$', arg_value, re.IGNORECASE):
        return False

    return None