{"id":32293796,"url":"https://github.com/hamas-ur-rehman/httpservice","last_synced_at":"2026-02-22T18:02:21.045Z","repository":{"id":56832640,"uuid":"391302850","full_name":"Hamas-ur-Rehman/httpservice","owner":"Hamas-ur-Rehman","description":"This package contains classes that make it easy to consume the http package. It's multi-platform, and supports mobile, desktop, and the browser. It supports GET,PUT,POST,DELETE and PATCH requests. It Depends on the http package","archived":false,"fork":false,"pushed_at":"2021-08-03T04:07:31.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T17:11:37.357Z","etag":null,"topics":["classes","dart","dart-library","flutter","flutterpackage","hacktoberfest","http","http-server","serverrequestinterface"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Hamas-ur-Rehman.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":null,"security":null,"support":null},"funding":{"patreon":"hamasurrehman"}},"created_at":"2021-07-31T08:53:28.000Z","updated_at":"2021-10-20T17:08:19.000Z","dependencies_parsed_at":"2022-09-05T02:40:16.163Z","dependency_job_id":null,"html_url":"https://github.com/Hamas-ur-Rehman/httpservice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hamas-ur-Rehman/httpservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamas-ur-Rehman%2Fhttpservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamas-ur-Rehman%2Fhttpservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamas-ur-Rehman%2Fhttpservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamas-ur-Rehman%2Fhttpservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hamas-ur-Rehman","download_url":"https://codeload.github.com/Hamas-ur-Rehman/httpservice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamas-ur-Rehman%2Fhttpservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29721054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["classes","dart","dart-library","flutter","flutterpackage","hacktoberfest","http","http-server","serverrequestinterface"],"created_at":"2025-10-23T03:36:25.408Z","updated_at":"2026-02-22T18:02:21.039Z","avatar_url":"https://github.com/Hamas-ur-Rehman.png","language":"C++","readme":"# httpservice\n\nA FLutter package that depends on http package.\n\n\n## Getting Started\n \nThis package contains classes that make it\neasy to consume the http package. It's multi-platform, and supports mobile, desktop,\nand the browser.\nIt supports GET,PUT,POST,DELETE and PATCH requests\n\n## Using\n\nThe easiest way to use this library is to initialize the class and call the function:\n\n```dart\nimport 'dart:convert';\nimport 'package:httpservice/httpservice.dart';\n\nvoid getapidata(String apix) async {\n    HttpService httpService = HttpService(\"$apix\");\n    var data = await httpService.getContents();\n    var decodedData = jsonDecode(data);\n    print(decodedData);\n  }\n\n```\n\n### GET\n\n```dart\nimport 'dart:convert';\nimport 'package:httpservice/httpservice.dart';\n\nvoid getapidata(String apix) async {\n    HttpService httpService = HttpService(\"$apix\");\n    var data = await httpService.getContents();\n    var decodedData = jsonDecode(data);\n    print(decodedData);\n  }\n\n```\n\n\n### POST\n\n```dart\nimport 'dart:convert';\nimport 'package:httpservice/httpservice.dart';\n\nvoid postapidata(String apix) async {\n    HttpService httpService = HttpService(\"$apix\");\n    var data = await httpService.postContents(headers: {\"Content-type\": \"application/json\"},body: '{\"title\": \"Hello\", \"body\": \"body text\", \"userId\": 1}');\n  }\n\n```\n\n\n### PUT\n\n```dart\nimport 'dart:convert';\nimport 'package:httpservice/httpservice.dart';\n\nvoid postapidata(String apix) async {\n    HttpService httpService = HttpService(\"$apix\");\n    var data = await httpService.putContents(headers: {\"Content-type\": \"application/json\"},body:'{\"title\": \"Hello\", \"body\": \"body text\", \"userId\": 1}');\n  }\n\n```\n\n### PATCH\n\n```dart\nimport 'dart:convert';\nimport 'package:httpservice/httpservice.dart';\n\nvoid postapidata(String apix) async {\n    HttpService httpService = HttpService(\"$apix\");\n    var data = await httpService.putContents(headers: {\"Content-type\": \"application/json\"},body:'{\"title\": \"Hello\"}');\n  }\n\n```\n\n### DELETE\n\n```dart\nimport 'dart:convert';\nimport 'package:httpservice/httpservice.dart';\n\nvoid postapidata(String apix) async {\n    HttpService httpService = HttpService(\"$apix\");\n    var data = await httpService.deleteContents();\n  }\n\n```\n","funding_links":["https://patreon.com/hamasurrehman"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamas-ur-rehman%2Fhttpservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamas-ur-rehman%2Fhttpservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamas-ur-rehman%2Fhttpservice/lists"}