parameters: (self, host, auth_function, host_override=None, extra_headers={},
                 save_cookies=False, account_type=AUTH_ACCOUNT_TYPE)
docstring: Creates a new HttpRpcServer.
  
      Args:
        host: The host to send requests to.
        auth_function: A function that takes no arguments and returns an
          (email, password) tuple when called. Will be called if authentication
          is required.
        host_override: The host header to send to the server (defaults to host).
        extra_headers: A dict of extra headers to append to every request.
        save_cookies: If True, save the authentication cookies to local disk.
          If False, use an in-memory cookiejar instead.  Subclasses must
          implement this functionality.  Defaults to False.
        account_type: Account type used for authentication. Defaults to
          AUTH_ACCOUNT_TYPE.
docstring_summary: Creates a new HttpRpcServer.
docstring_tokens: Creates a new HttpRpcServer .
function: def __init__(self, host, auth_function, host_override=None, extra_headers={},
                 save_cookies=False, account_type=AUTH_ACCOUNT_TYPE):
      """Creates a new HttpRpcServer.
  
      Args:
        host: The host to send requests to.
        auth_function: A function that takes no arguments and returns an
          (email, password) tuple when called. Will be called if authentication
          is required.
        host_override: The host header to send to the server (defaults to host).
        extra_headers: A dict of extra headers to append to every request.
        save_cookies: If True, save the authentication cookies to local disk.
          If False, use an in-memory cookiejar instead.  Subclasses must
          implement this functionality.  Defaults to False.
        account_type: Account type used for authentication. Defaults to
          AUTH_ACCOUNT_TYPE.
      """
      self.host = host
      if (not self.host.startswith("http://") and
          not self.host.startswith("https://")):
        self.host = "http://" + self.host
      self.host_override = host_override
      self.auth_function = auth_function
      self.authenticated = False
      self.extra_headers = extra_headers
      self.save_cookies = save_cookies
      self.account_type = account_type
      self.opener = self._GetOpener()
      if self.host_override:
        logging.info("Server: %s; Host: %s", self.host, self.host_override)
      else:
        logging.info("Server: %s", self.host)
function_tokens: def __init__ ( self , host , auth_function , host_override = None , extra_headers = { } , save_cookies = False , account_type = AUTH_ACCOUNT_TYPE ) : self . host = host if ( not self . host . startswith ( "http://" ) and not self . host . startswith ( "https://" ) ) : self . host = "http://" + self . host self . host_override = host_override self . auth_function = auth_function self . authenticated = False self . extra_headers = extra_headers self . save_cookies = save_cookies self . account_type = account_type self . opener = self . _GetOpener ( ) if self . host_override : logging . info ( "Server: %s; Host: %s" , self . host , self . host_override ) else : logging . info ( "Server: %s" , self . host )