@classmethod
def _parse_headers(cls, lines):
    """Find and return headers in HTTP request

        :param str lines:  All but the first line of the HTTP request (list)

        :rtype: dict
        :returns: headers as key:value pairs
        """
    headers = {}
    for line in lines:
        key, value = line.split(':', 1)
        headers[key] = value.strip()
    return headers
