def add_links(self, value):
    """
    This creates a Link header from the links

    Parameters
    ----------
    self : lib.schema.riak.objects.Link
        The Link schema object
    value : dict
        The headers of the request to add the links to
    """
    links = getattr(self, 'links', [])
    if links:
        value['Link'] = ', '.join(
            link._as_dict()['location'] for link in links)
    return value