예제 #1
0
        // HTTP DOWNLOAD 异步
        static public HttpRequester Download(string url, int range, string savePath, ProcessDelegate onProcess = null, RespDelegate onResponse = null)
        {
            HttpRequester reqInfo = new HttpRequester(url, range.ToString(), "GETF", savePath, onProcess, onResponse);

            reqInfo.Start();
            return(reqInfo);
        }
예제 #2
0
        // HTTP通讯 异步
        static public HttpRequester SendRequest(string url, string para, string method, ProcessDelegate onProcess = null, RespDelegate onResponse = null)
        {
            HttpRequester reqInfo = new HttpRequester(url, para, method.ToUpper(), null, onProcess, onResponse);

            reqInfo.Start();
            return(reqInfo);
        }