def parse_header_next_link(value):
    """Return a next link from headers."""
    link = None

    for val in value.split(","):
        try:
            url, params = val.split(";", 1)
        except ValueError:
            url, params = val, ''

        # only next params please
        if params and not 'next' in params:
            continue

        return url.strip("<> '\"")
    return link