{"id":19273039,"url":"https://github.com/fluttercandies/http_client_helper","last_synced_at":"2025-04-24T05:39:16.917Z","repository":{"id":56832626,"uuid":"170711769","full_name":"fluttercandies/http_client_helper","owner":"fluttercandies","description":"A Flutter plugin for http request with cancel and retry fuctions.","archived":false,"fork":false,"pushed_at":"2024-06-24T10:07:35.000Z","size":95,"stargazers_count":26,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T05:39:11.190Z","etag":null,"topics":["dart","flutter-plugin","http-client","retry-fuctions"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluttercandies.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"http://zmtzawqlp.gitee.io/my_images/images/qrcode.png"}},"created_at":"2019-02-14T15:17:45.000Z","updated_at":"2025-04-04T04:07:29.000Z","dependencies_parsed_at":"2024-06-19T22:47:16.228Z","dependency_job_id":"dc75c87e-328d-4b95-ba48-c614b1310abc","html_url":"https://github.com/fluttercandies/http_client_helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fhttp_client_helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fhttp_client_helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fhttp_client_helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercandies%2Fhttp_client_helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercandies","download_url":"https://codeload.github.com/fluttercandies/http_client_helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250573286,"owners_count":21452337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter-plugin","http-client","retry-fuctions"],"created_at":"2024-11-09T20:40:32.254Z","updated_at":"2025-04-24T05:39:16.903Z","avatar_url":"https://github.com/fluttercandies.png","language":"Dart","funding_links":["http://zmtzawqlp.gitee.io/my_images/images/qrcode.png"],"categories":[],"sub_categories":[],"readme":"# http_client_helper\n\n[![pub package](https://img.shields.io/pub/v/http_client_helper.svg)](https://pub.dartlang.org/packages/http_client_helper)\n\nA Flutter plugin for http request with cancel and retry fuctions.\n\n## Usage\n\nTo use this plugin, add `http_client_helper` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).\n\n### Example\n\n``` dart\n  cancellationToken = new CancellationToken();\n      try {\n        await HttpClientHelper.get(url,\n                cancelToken: cancellationToken,\n                timeRetry: Duration(milliseconds: 100),\n                retries: 3,\n                timeLimit: Duration(seconds: 5))\n            .then((response) {\n          setState(() {\n            msg = response.body;\n          });\n        });\n      } on TimeoutException catch (_) {\n        setState(() {\n          msg = \"TimeoutException\";\n        });\n      } on OperationCanceledError catch (_) {\n        setState(() {\n          msg = \"cancel\";\n        });\n      } catch (e) {\n        setState(() {\n          msg = \"$e\";\n        });\n      }\n```\nPlease see the example app of this plugin for a full example.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fhttp_client_helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercandies%2Fhttp_client_helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercandies%2Fhttp_client_helper/lists"}