Baseflow / flutter_cache_manager

Generic cache manager for flutter
https://baseflow.com
MIT License
739 stars 427 forks source link

Timeout when download file from internet #403

Closed wamynobe closed 1 year ago

wamynobe commented 1 year ago

🚀 Feature Requests

Should we add an timeout params in HttpFileService for http request timeout?

Contextualize the feature

Sometime developers want to setup specific time for loading images.

Describe the feature

Add timeout params in get method in HttpFileService to set http request timeout

      final httpResponse =
          await _httpClient.send(req).timeout(Duration(milliseconds: timeout));

Platforms affected (mark all that apply)