docs: def mark_entries(self, entries):
          ''' Mark one entry as main entry and the rest as resource entry.
  
              Main entry is the entry that contain response's body
              of the requested URL.
          '''
  
          for entry in entries:
              self._set_entry_type(entry, RESOURCE_ENTRY)
  
          # If first entry doesn't have a redirect, set is as main entry
          main_entry = entries[0]
          main_location = self._get_location(main_entry)
          if not main_location:
              self._set_entry_type(main_entry, MAIN_ENTRY)
              return
  
          # Resolve redirected URL and see if it's in the rest of entries
          main_url = urllib.parse.urljoin(get_url(main_entry), main_location)
          for entry in entries[1:]:
              url = get_url(entry)
              if url == main_url:
                  self._set_entry_type(entry, MAIN_ENTRY)
                  break
          else:
              # In fail case, set the first entry
              self._set_entry_type(main_entry, MAIN_ENTRY)