{"id":19508689,"url":"https://github.com/commit451/ehhttp","last_synced_at":"2026-02-22T12:52:01.903Z","repository":{"id":57718430,"uuid":"100737310","full_name":"Commit451/ehhttp","owner":"Commit451","description":"OkHttp calls as RxJava types","archived":false,"fork":false,"pushed_at":"2022-06-27T04:22:17.000Z","size":179,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-26T02:52:38.116Z","etag":null,"topics":["kotlin","okhttp","rxjava"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/Commit451.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-18T17:54:40.000Z","updated_at":"2022-02-14T06:07:56.000Z","dependencies_parsed_at":"2022-09-02T12:30:22.818Z","dependency_job_id":null,"html_url":"https://github.com/Commit451/ehhttp","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/Commit451/ehhttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2Fehhttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2Fehhttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2Fehhttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2Fehhttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Commit451","download_url":"https://codeload.github.com/Commit451/ehhttp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2Fehhttp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["kotlin","okhttp","rxjava"],"created_at":"2024-11-10T23:09:00.375Z","updated_at":"2025-10-24T12:43:51.813Z","avatar_url":"https://github.com/Commit451.png","language":"Kotlin","readme":"# ehHttp\nOkHttp, eh? Converts OkHttp `Call`s to RxJava types\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.commit451/ehhttp/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.commit451/ehhttp)\n\n## Gradle\n```groovy\ndependencies {\n    implementation(\"com.commit451:ehhttp:latest.release.here\")\n}\n```\n\n## Usage\nYou convert calls to the desired RxJava types:\n```kotlin\nval client = OkHttpClient.Builder()\n    .build()\n\nval request = Request.Builder()\n    .url(\"http://www.example.com\")\n    .build()\n\nval call = client.newCall(request)\n// Observable\nval observable = call.toObservable()\n// Single\nval single = call.toSingle()\n// Flowable\nval flowable = call.toFlowable()\n// Completable\nval completable = call.toCompletable()\n```\nIf you need to, you can also call from Java:\n```java\nSingle\u003cResponse\u003e single = EhHttp.toSingle(call);\n```\n\n## Supported types\n- Observable: `toObservable()`\n- Single: `toSingle()`\n- Flowable: `toFlowable()` with `BackpressureStrategy.LATEST`\n- Completable: `toCompletable()` which throws `HttpException` if HTTP error\n\n## Acknowledgements\n\n`HttpException` and `CallObservable` modified from [Retrofit](https://github.com/square/retrofit). Thanks to Square for being awesome.\n\nLicense\n--------\n\n    Copyright 2022 Commit 451\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommit451%2Fehhttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommit451%2Fehhttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommit451%2Fehhttp/lists"}