예제 #1
0
 protected void BeginReceiveStreamFragments()
 {
     if (!baseRequest.DisableCache && baseRequest.UseStreaming && !IsFromCache && HTTPCacheService.IsCacheble(baseRequest.CurrentUri, baseRequest.MethodType, this))
     {
         cacheStream = HTTPCacheService.PrepareStreamed(baseRequest.CurrentUri, this);
     }
     allFragmentSize = 0;
 }
예제 #2
0
 protected void BeginReceiveStreamFragments()
 {
     if (!baseRequest.DisableCache && baseRequest.UseStreaming)
     {
         // If caching is enabled and the response not from cache and it's cacheble the we will cache the downloaded data.
         if (!IsFromCache && HTTPCacheService.IsCacheble(baseRequest.CurrentUri, baseRequest.MethodType, this))
         {
             cacheStream = HTTPCacheService.PrepareStreamed(baseRequest.CurrentUri, this);
         }
     }
     allFragmentSize = 0;
 }
예제 #3
0
        protected void BeginReceiveStreamFragments()
        {
#if !BESTHTTP_DISABLE_CACHING && (!UNITY_WEBGL || UNITY_EDITOR)
            if (!baseRequest.DisableCache && baseRequest.UseStreaming)
            {
                // If caching is enabled and the response not from cache and it's cacheble the we will cache the downloaded data.
                if (!IsFromCache && HTTPCacheService.IsCacheble(baseRequest.CurrentUri, baseRequest.MethodType, this))
                {
                    cacheStream = HTTPCacheService.PrepareStreamed(baseRequest.CurrentUri, this);
                }
            }
#endif
            allFragmentSize = 0;
        }