def header_name(name):
    """Convert header name like HTTP_XXXX_XXX to Xxxx-Xxx:"""

    words = name[5:].split('_')
    for i in range(len(words)):
        words[i] = words[i][0].upper() + words[i][1:].lower()
    result = '-'.join(words)
    return result