def parse_links(self, headers):
        links = {}
        try:
            header_links = headers["Link"]
        except KeyError:
            return links
        for link in _quoted_split(header_links):
            ll = _quoted_split(link, "; ")
            # remove the "<" and ">"
            if ll[0][1] != "<" and ll[0][-1] != ">":
                raise exception.OCCIInvalidSchema("Unable to parse link")
            link_dest = ll[0][1:-1]
            try:
                d = dict([_split_unquote(i) for i in ll[1:]])
            except __HOLE__:
                raise exception.OCCIInvalidSchema("Unable to parse link")
            links[link_dest] = d
        return links
dataset/ETHPy150Open openstack/ooi/ooi/wsgi/parsers.py/TextParser.parse_links