コード例 #1
0
        /// <summary>
        /// Post请求
        /// </summary>
        /// <param name="url"></param>
        /// <param name="callBack"></param>
        /// <param name="dic"></param>
        public void PostUrl(string url, HttpSendDataCallBack callBack, Dictionary <string, string> dic)
        {
            //支持多个HttpRoutine,从对象池中取出HttpRoutine
            HttpRoutine http = GameEntry.Pool.DequeueClassObject <HttpRoutine>();

            http.PostUrl(url, callBack, dic);
        }
コード例 #2
0
        /// <summary>
        /// Get请求
        /// </summary>
        /// <param name="url"></param>
        /// <param name="callBack"></param>
        public void GetUrl(string url, HttpSendDataCallBack callBack)
        {
            //支持多个HttpRoutine,从对象池中取出HttpRoutine
            HttpRoutine http = GameEntry.Pool.DequeueClassObject <HttpRoutine>();

            http.GetUrl(url, callBack);
        }