{"id":20903028,"url":"https://github.com/Zekfad/fetch_client","last_synced_at":"2025-05-13T04:33:00.922Z","repository":{"id":65421538,"uuid":"592074704","full_name":"Zekfad/fetch_client","owner":"Zekfad","description":"Fetch based Client for HTTP package.","archived":false,"fork":false,"pushed_at":"2025-04-25T00:18:10.000Z","size":68,"stargazers_count":28,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-25T01:21:29.128Z","etag":null,"topics":["dart","dart-package","dart-web","fetch","fetch-api"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/fetch_client","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zekfad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-22T20:49:29.000Z","updated_at":"2025-04-25T00:07:14.000Z","dependencies_parsed_at":"2024-01-29T02:28:46.321Z","dependency_job_id":"c07c17e7-cb6b-4bea-8346-711f74cb61bd","html_url":"https://github.com/Zekfad/fetch_client","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"07a2303a1770f4f743d89b1b2ce65462158846a7"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Ffetch_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Ffetch_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Ffetch_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zekfad%2Ffetch_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zekfad","download_url":"https://codeload.github.com/Zekfad/fetch_client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253756683,"owners_count":21959288,"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","dart-package","dart-web","fetch","fetch-api"],"created_at":"2024-11-18T13:01:17.563Z","updated_at":"2025-05-13T04:33:00.915Z","avatar_url":"https://github.com/Zekfad.png","language":"Dart","readme":"# Fetch Client\n\n[![pub package](https://img.shields.io/pub/v/fetch_client.svg)](https://pub.dev/packages/fetch_client)\n[![package publisher](https://img.shields.io/pub/publisher/fetch_client.svg)](https://pub.dev/packages/fetch_client/publisher)\n\nThis package provides [package:http](https://pub.dev/packages/http) client based\non [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) with\nWASM support.\n\nIt's a drop-in solution for extensions with\n[Manifest V3](https://developer.chrome.com/docs/extensions/mv3/intro/#introducing-manifest-v3).\n\n## Features\n\n* WASM-ready internals.\n* Cancel requests.\n* Support data streaming:\n  * Get response as `Stream`.\n  * Optionally, send `Stream` as request body (supported only in Chromium 105+\n    based browsers).\n* Get access to redirect URL and status.\n* Support non-`200` responses (`fetch` will only fail on network errors).\n* Simulate redirects responses via probe request and artificial `location`\n  header.\n\n## Notes\n\n### Large payload\n\nThis module maps `keepalive` to [`BaseRequest.persistentConnection`](https://pub.dev/documentation/http/latest/http/BaseRequest/persistentConnection.html)\nwhich is **`true`** by default.\n\nFetch spec says that maximum request size with `keepalive` flag is 64KiB:\n\n\u003e __4.5. HTTP-network-or-cache fetch__\n\u003e\n\u003e \u003e 8.10.5: If the sum of _contentLength_ and _inflightKeepaliveBytes_ is greater\n\u003e \u003e than 64 kibibytes, then return a [network error](https://fetch.spec.whatwg.org/#concept-network-error).\n\u003e \n\u003e _Source: [Fetch. Living Standard — Last Updated 19 June 2023](https://fetch.spec.whatwg.org/#http-network-or-cache-fetch)_\n\nTherefore if your request is larger than 64KiB (this includes some other data,\nsuch as headers) [`BaseRequest.persistentConnection`](https://pub.dev/documentation/http/latest/http/BaseRequest/persistentConnection.html)\nwill be ignored and treated as `false`.\n\n### Request streaming\n\nRequest streaming is supported only in Chromium 105+ based browsers and\nrequires the server to use HTTP/2 or HTTP/3.\n\nSee [MDN compatibility chart](https://developer.mozilla.org/en-US/docs/Web/API/Request#browser_compatibility)\nand [Chrome Developers' blog](https://developer.chrome.com/articles/fetch-streaming-requests/#doesnt-work-on-http1x) for more info.\n","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZekfad%2Ffetch_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZekfad%2Ffetch_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZekfad%2Ffetch_client/lists"}