Beispiel #1
0
 private void SetResult(XHttp state, string jsonData)
 {
     if (jsonData.IsNotBlank())
     {
         state.Result       = jsonData;
         state.ResponseFlag = true;
     }
 }
Beispiel #2
0
        public async Task Timeout_Test()
        {
            xx = string.Empty;

            try
            {
                var res = new XHttp().GET("http://www.baidu.com");
            }
            catch (Exception ex)
            {
            }

            xx = string.Empty;
        }