Example #1
0
 private IEnumerator StartRequest(wwHttpClient client)
 {
     hasRequest = true;
     client.StartRequest();
     yield return StartCoroutine(client.yieldable);
     hasRequest = false;
 }
Example #2
0
 public static void AddToQueue(wwHttpClient client)
 {
     if (instance == null) return;
     if (instance.requestQueue == null)
     {
         wwDebug.LogWarning("Http Queue not instantiate!");
         return;
     }
     instance.requestQueue.Enqueue(client);
 }
Example #3
0
    public static void StartHttp(wwHttpClient client)
    {
        if (instance == null)
        {
            wwDebug.LogWarning("wwHttpManager not instantiate");
            return;
        }
        requestList.Add(client);

        instance.StartCoroutine(client.PostRequest());
    }
Example #4
0
 void Start()
 {
     test1Client = wwHttpManager.CreateHttpRequest("http://www.baidu.com", "333", TestCallback);
 }