code: def add_link_header(response, links):
      
      if links is not None:
          response.headers.extend({
              'Link': ', '.join([
                  '<{0}>; rel="{1}"'.format(l, r) for r, l in links.items()])
          })
docs: Add a Link HTTP header to a REST response.
  
      :param response: REST response instance
      :param links: Dictionary of links