docs: def set_link_headers(self, request, total_count):
          """
          Sets Link headers on the response.
  
          When the Range header is present in the request no Link headers will
          be added.
          4 links will be added: first, prev, next, last.
          If the current page is already the first page, the prev link will
          not be present.
          If the current page is already  the last page, the next link will
          not be present.
  
          :param request: A request object
          :param total_count: The total amount of items available before paging
          """
          response = request.response
          if request.headers.get('Range'):
              # Don't set the Link headers when custom ranges were used.
              return
  
          settings = request.registry.settings
          page_param = settings.get('oe.paging.page.queryparam', 'pagina')
          per_page_param = settings.get('oe.paging.per_page.queryparam',
                                        'per_pagina')
          url = request.path_url
          try:
              queryparams = request.params.mixed()
          except AttributeError:
              queryparams = request.params
          page_size = self.get_page_size()
          current_page = self.start // page_size + 1
          queryparams[per_page_param] = page_size
          links = {
              'first': 1,
              'last': int(math.ceil(float(total_count) / page_size))
          }
          if current_page != links['first']:
              links['prev'] = current_page - 1
          if current_page != links['last']:
              links['next'] = current_page + 1
  
          response.headers['Link'] = self._make_link_headers(links, page_param,
                                                             queryparams, url)