def _normalize_header_name(name: str) ->str:
    """
    According to rfc https://www.ietf.org/rfc/rfc2616.txt header names are case insensitive,
    thus they can be normalized to ease usage of Headers class.
    :param name:
    :return:
    """
    name = name.lower()
    if name.startswith('http_'):
        name = name[5:]
    return name.replace('_', '-')
