

def getallmatchingheaders(self, name):
    'Find all header lines matching a given header name.\n\n        Look through the list of headers and find all lines matching a given\n        header name (and their continuation lines).  A list of the lines is\n        returned, without interpretation.  If the header does not occur, an\n        empty list is returned.  If the header occurs multiple times, all\n        occurrences are returned.  Case is not important in the header name.\n\n        '
    name = (name.lower() + ':')
    n = len(name)
    lst = []
    hit = 0
    for line in self.keys():
        if (line[:n].lower() == name):
            hit = 1
        elif (not line[:1].isspace()):
            hit = 0
        if hit:
            lst.append(line)
    return lst

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/http/client.py HTTPMessage.getallmatchingheaders/original