{"id":15008706,"url":"https://github.com/bryanbill/fetch","last_synced_at":"2025-10-03T16:31:41.785Z","repository":{"id":37562148,"uuid":"494763652","full_name":"bryanbill/fetch","owner":"bryanbill","description":"Fetchx - Simplified http requests in Dart","archived":true,"fork":false,"pushed_at":"2022-11-21T11:20:37.000Z","size":165,"stargazers_count":9,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-28T16:20:52.236Z","etag":null,"topics":["collaborate","dart","dartlang","flutter","hacktoberfest","http","student-vscode"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/fetchx","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/bryanbill.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}},"created_at":"2022-05-21T11:27:02.000Z","updated_at":"2023-06-10T19:42:33.000Z","dependencies_parsed_at":"2022-08-13T09:31:27.618Z","dependency_job_id":null,"html_url":"https://github.com/bryanbill/fetch","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Ffetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Ffetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Ffetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryanbill%2Ffetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryanbill","download_url":"https://codeload.github.com/bryanbill/fetch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235156014,"owners_count":18944827,"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":["collaborate","dart","dartlang","flutter","hacktoberfest","http","student-vscode"],"created_at":"2024-09-24T19:20:08.327Z","updated_at":"2025-10-03T16:31:41.499Z","avatar_url":"https://github.com/bryanbill.png","language":"Dart","readme":"# Fetchx\n\nFetchx is a simple, fast, and secure HTTP client for Dart. It leverages extensions to allow using url-like strings to make http requests.\n\n[Read in another language](#translations)\n\n## Table of contents\n\n## Features\n\n- Get\n- Post\n- Put\n- Delete\n- Patch\n\n## Usage\n\nTo use this package add this to your pubspec.yaml\n\n```yaml\ndependencies:\n  fetchx: ^0.0.5\n```\n\nThen import the package\n\n```dart\nimport 'package:fetchx/fetchx.dart';\n```\n\n### Get\n\n```dart\n\nfinal response = await \"https://jsonplaceholder.typicode.com/posts/1\".get();\n\n```\n\n### Post\n\n```dart\n\nfinal response = await \"https://jsonplaceholder.typicode.com/posts\".post({\n  \"title\": \"foo\",\n  \"body\": \"bar\",\n  \"userId\": 1\n});\n\n```\n\n### Put\n\n```dart\n\nfinal response = await \"https://jsonplaceholder.typicode.com/posts/1\".put({\n  \"title\": \"foo\",\n  \"body\": \"bar\",\n  \"userId\": 1\n});\n\n```\n\n### Delete\n\n```dart\n\nfinal response = await \"https://jsonplaceholder.typicode.com/posts/1\".delete();\n\n```\n\n### Patch\n\n```dart\n\nfinal response = await \"https://jsonplaceholder.typicode.com/posts/1\".patch({\n  \"title\": \"foo\"\n});\n\n```\n\n## EXPERIMENTAL\n\nThese features are still experimental and may change in the future. Any feedback is welcome to improve the package.\n\n### To Model Casting\n\n```dart\nclass User extends BaseModel{\n  final int? id;\n  final String? name;\n  User({\n     this.id,\n     this.name\n  });\n\n  @override\n  User fromJson(Map\u003cString, dynamic\u003e json) =\u003e User(\n        id: json[\"id\"],\n        name: json[\"name\"]\n      );\n}\n\nfinal response = await \"https://jsonplaceholder.typicode.com/users/1\".get().to\u003cUser\u003e(()=\u003eUser());\nprint(response.name);\n\n```\n\n### Cache\n\n```dart\nfinal response = await \"https://jsonplaceholder.typicode.com/posts/1\".get().cache();\n```\n\n## Translations\n\nThis README is available in other languages:\n\n- [English](README.md)\n- [简体中文](README_zh_CN.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Ffetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryanbill%2Ffetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryanbill%2Ffetch/lists"}