docs: def authentication(self):
          """Generate authentication string."""
          if self.session.digest:
              authentication = self.session.generate_digest()
          elif self.session.basic:
              authentication = self.session.generate_basic()
          else:
              return ''
          return "Authorization: " + authentication + '\r\n'