code: def save_headers(cls, filename: str, response: HTTPResponse):
          '''Prepend the HTTP response header to the file.
  
          Args:
              filename: The path of the file
              response: Response
          '''
          new_filename = filename + '-new'
  
          with open('wb') as new_file:
              new_file.write(response.header())
  
              with wpull.util.reset_file_offset(response.body):
                  response.body.seek(0)
                  shutil.copyfileobj(response.body, new_file)
  
          os.remove(filename)
          os.rename(new_filename, filenamef save_headers(cls, filename: str, response: HTTPResponse):
          '''Prepend the HTTP response header to the file.
  
          Args:
              filename: The path of the file
              response: Response
          '''
          new_filename = filename + '-new'
  
          with open('wb') as new_file:
              new_file.write(response.header())
  
              with wpull.util.reset_file_offset(response.body):
                  response.body.seek(0)
                  shutil.copyfileobj(response.body, new_file)
  
          os.remove(filename)
          os.rename(new_filename, filename)
docs: Prepend the HTTP response header to the file.
  
          Args:
              filename: The path of the file
              response: Response