{"id":48680788,"url":"https://github.com/satorufujiwara/lighthttp","last_synced_at":"2026-04-26T20:00:40.683Z","repository":{"id":96805488,"uuid":"42918997","full_name":"satorufujiwara/lighthttp","owner":"satorufujiwara","description":"Lightweitht HTTP client for Android","archived":false,"fork":false,"pushed_at":"2015-10-17T15:01:24.000Z","size":217,"stargazers_count":42,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-02T09:11:46.277Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/satorufujiwara.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-09-22T07:42:14.000Z","updated_at":"2023-03-06T13:36:12.387Z","dependencies_parsed_at":"2023-03-13T16:24:22.150Z","dependency_job_id":null,"html_url":"https://github.com/satorufujiwara/lighthttp","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/satorufujiwara/lighthttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satorufujiwara%2Flighthttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satorufujiwara%2Flighthttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satorufujiwara%2Flighthttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satorufujiwara%2Flighthttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satorufujiwara","download_url":"https://codeload.github.com/satorufujiwara/lighthttp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satorufujiwara%2Flighthttp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"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":[],"created_at":"2026-04-11T01:00:36.064Z","updated_at":"2026-04-26T20:00:40.676Z","avatar_url":"https://github.com/satorufujiwara.png","language":"Java","funding_links":[],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"readme":"lighthttp\n===\n\n[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-lighthttp-green.svg?style=flat)](https://android-arsenal.com/details/1/2543)\n[![Download](https://api.bintray.com/packages/satorufujiwara/maven/lighthttp/images/download.svg)](https://bintray.com/satorufujiwara/maven/lighthttp/_latestVersion)\n\nLightweitht HTTP client for Android.\n\n# Features\n* Simple HTTP client. \n* Depends on Android(HttpUrlConnection) only.\n* Execute asynchronously or can use with RxJava.\n* Convert request and response.\n\n# Usage\n\nGet a url.\n```java\nLightHttpClient httpClient = new LightHttpClient();\nRequest request = httpClient.newRequest()\n    .url(\"https://api.github.com/users/satorufujiwara/repos\")\n    .get()\n    .build();\nResponse\u003cString\u003e response = httpClient.newCall(request).execute();\nString body = response.getBody();\n```\n\n## Converter\n\nConvert response to java object.\n```java\nhttpClient.setConverterProvider(new GsonConverterProvider());\n\nResponse\u003cRepos\u003e response = httpClient.newCall(request, Repos.class).execute();\nRepos body = response.getBody();\n```\n\nPost json object.\n```java\nhttpClient.setConverterProvider(new GsonConverterProvider());\n\nItem obj = new Item();\nRequest request = httpClient.newRequest()\n    .url(url)\n    .post(obj, Item.class)\n    .build();\n```\n\n## Executor\n\nExecute asynchronously.\n```java\nhttpClient.newCall(request, Repos.class)\n        .executeOn(AsyncExecutor.\u003cRepos\u003eprovide())\n        .executeAsync(new AsyncCallback\u003cRepos\u003e() {\n            @Override\n            public void onResult(Response\u003cRepos\u003e response, Throwable e) {\n                \n            }\n        });\n```\nUse with [RxJava](https://github.com/ReactiveX/RxJava).\n```java\nhttpClient.newCall(request, Repos.class)\n            .executeOn(RxExecutor.\u003cRepos\u003eprovide())\n            .asObservable()\n            .subscribeOn(Schedulers.io())\n            .subscribe();\n```\n\n\n# Gradle\n\n```groovy\ndependencies {\n    compile 'jp.satorufujiwara:lighthttp:0.1.1'\n}\n```\n\n## Converter\nGson\n```groovy\ncompile 'jp.satorufujiwara:lighthttp-gson:0.1.1'\n```\n\n## Executor\nAsync\n```groovy\ncompile 'jp.satorufujiwara:lighthttp-async:0.1.1'\n```\nRxJava\n```groovy\ncompile 'jp.satorufujiwara:lighthttp-rx:0.1.1'\n```\n\n# Milestone\n\n- [ ] Multipart request body.\n- [ ] Jackson converter.\n- [ ] Jsonic converter.\n- [ ] Sample app.\n- [ ] Testing.\n\n# Developed By\n\nSatoru Fujiwara (satorufujiwara)\n* Twitter [satorufujiwara](https://twitter.com/satorufujiwara)\n* holly.wist@gmail.com\n \nOther Projects\n* [recyclerview-binder](https://github.com/satorufujiwara/recyclerview-binder)\n * Android Library for RecyclerView to manage order of items and multiple view types. \n* [material-scrolling](https://github.com/satorufujiwara/material-scrolling)\n * Android library for material scrolling techniques.\n\nLicense\n-------\n    Copyright 2015 Satoru Fujiwara\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatorufujiwara%2Flighthttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatorufujiwara%2Flighthttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatorufujiwara%2Flighthttp/lists"}