Parses headers to create a pagination objects

    :param headers: HTTP Headers
    :type headers: dict
    :return: Navigation object for pagination
    :rtype: _Navigation

def parse_pagination(headers):
    """ Parses headers to create a pagination objects

    :param headers: HTTP Headers
    :type headers: dict
    :return: Navigation object for pagination
    :rtype: _Navigation
    """
    links = {
        link.rel: parse_qs(link.href).get("page", None)
        for link in link_header.parse(headers.get("Link", "")).links
    }
    return _Navigation(
        links.get("previous", [None])[0],
        links.get("next", [None])[0],
        links.get("last", [None])[0],
        links.get("current", [None])[0],
        links.get("first", [None])[0]
    )