{"id":13818778,"url":"https://github.com/kodart/Httpzoid","last_synced_at":"2025-05-16T03:33:49.279Z","repository":{"id":9408340,"uuid":"11275614","full_name":"kodart/Httpzoid","owner":"kodart","description":"Android REST client library (supports RESTful JSON API)","archived":false,"fork":false,"pushed_at":"2013-07-22T11:53:18.000Z","size":343,"stargazers_count":82,"open_issues_count":5,"forks_count":26,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-08-04T08:01:14.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kodart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-09T07:16:51.000Z","updated_at":"2022-12-05T00:58:48.000Z","dependencies_parsed_at":"2022-09-20T17:11:11.643Z","dependency_job_id":null,"html_url":"https://github.com/kodart/Httpzoid","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodart%2FHttpzoid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodart%2FHttpzoid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodart%2FHttpzoid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodart%2FHttpzoid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodart","download_url":"https://codeload.github.com/kodart/Httpzoid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225405404,"owners_count":17469335,"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":[],"created_at":"2024-08-04T08:00:30.186Z","updated_at":"2024-11-19T18:30:25.026Z","avatar_url":"https://github.com/kodart.png","language":"Java","readme":"# Httpzoid - Android REST (JSON) Client\n## Overview\nHttpzoid is designed to provide a simple way to deal with REST requests.\nRequests are asynchronous, callback handler runs in UI thread.\n\n## Quick start\nThis sample will make a post request to the specified url and send User object in JSON format.\n```java\nHttp http = HttpFactory.create(context);\nhttp.post(\"http://example.com/users\")\n    .data(new User(\"John\"))\n    .send();\n```\n\nRequest with callbacks.\n```java\nHttp http = HttpFactory.create(context);\nhttp.post(\"http://example.com/users\")\n    .data(new User(\"John\"))\n    .handler(new ResponseHandler\u003cVoid\u003e() {\n        @Override\n        public void success(Void ignore, HttpResponse response) {\n        }\n\n        @Override\n        public void error(String message, HttpResponse response) {\n        }\n\n        @Override\n        public void failure(NetworkError error) {\n        }\n\n        @Override\n        public void complete() {\n        }\n    }).send();\n```\n\nHttpzoid works with objects or stream directly\n```java\nHttp http = HttpFactory.create(context);\nhttp.get(\"http://example.com/users\")\n    .handler(new ResponseHandler\u003cUser[]\u003e() {\n        @Override\n        public void success(User[] users, HttpResponse response) {\n        }\n    }).send();\n\nInputStream input = new FileInputStream(\"avatar.jpg\");\nhttp.post(\"http://example.com/users/1/avatar\")\n    .data(input)\n    .handler(new ResponseHandler\u003cVoid\u003e() {\n        @Override\n        public void complete() {\n            input.close();\n        }\n    }).send();\n```","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodart%2FHttpzoid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodart%2FHttpzoid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodart%2FHttpzoid/lists"}