Ejemplo n.º 1
0
  IEnumerator DemoCacheControl()
  {
    _test = "DemoCacheControl";

    HTTPRequest request = new HTTPRequest();

    request.SetURL("http://www.google.com").
      AppendQueryParameter("q", "unity");

    HTTPResponseMemoryStreamHandler responseHandler =
      new HTTPResponseMemoryStreamHandler();

    responseHandler.SetCachePolicy(CachePolicy.ReloadIgnoringLocalAndRemoteCacheData);

    using (_client = new HTTPClient(request, responseHandler))
    {
      yield return StartCoroutine(_client.WaitUntilDone());
      DebugAll(_client);
    }
  }