code: def setCredentials(self, username, password):
          
          self.addHeader('Credentials', dict(userid=username.decode('utf-8'),
              password=password.decode('utf-8')), True)
docs: Sets authentication credentials for accessing the remote gateway.