{"id":16464946,"url":"https://github.com/e5l/http-client-common","last_synced_at":"2025-03-21T06:31:58.076Z","repository":{"id":70139075,"uuid":"123882773","full_name":"e5l/http-client-common","owner":"e5l","description":"Kotlin multiplatform http-client","archived":false,"fork":false,"pushed_at":"2018-08-31T07:13:45.000Z","size":356,"stargazers_count":48,"open_issues_count":2,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-01T03:42:08.722Z","etag":null,"topics":["http","kotlin","multiplatform"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/e5l.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-05T07:40:31.000Z","updated_at":"2023-12-23T05:10:50.000Z","dependencies_parsed_at":"2023-03-06T13:45:43.644Z","dependency_job_id":null,"html_url":"https://github.com/e5l/http-client-common","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e5l%2Fhttp-client-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e5l%2Fhttp-client-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e5l%2Fhttp-client-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/e5l%2Fhttp-client-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/e5l","download_url":"https://codeload.github.com/e5l/http-client-common/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117640,"owners_count":20400742,"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":["http","kotlin","multiplatform"],"created_at":"2024-10-11T11:30:43.205Z","updated_at":"2025-03-21T06:31:57.726Z","avatar_url":"https://github.com/e5l.png","language":"Kotlin","funding_links":[],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"readme":"# http-client-common\n\n## *DEPRECATION NOTICE*\nThis repository is outdated. Multiplatform client is included in [ktor](http://ktor.io) from version from `0.9.4`.\n\nUpdated samples located here: https://github.com/ktorio/ktor-samples/tree/master/mpp/client-mpp\n\n## Description\n\nKotlin multiplatform http client\n\n```kotlin\nval client = HttpClient()\n\npromise {\n    client.request {\n        url.apply {\n            protocol = URLProtocol.HTTPS\n            host = \"https://en.wikipedia.org\"\n            encodedPath = \"/wiki/Kotlin_(programming_language)\"\n            port = 443\n        }\n    }\n}.then {\n    println(it.body)\n}\n```\n\n## Dependencies\n\n1. Kotlin native compiler version: 0.8\n\n### Gradle\n```groovy\nbuildscript {\n    ext.http_client_version = '0.1.15'\n}\n\nrepositories {\n    maven { url 'https://dl.bintray.com/e5l/http-client-common' }\n}\n\ndependencies {\n    // common\n    compile \"io.ktor.common.client:common:$http_client_version\"\n\n    // javascript(browser)\n    compile \"io.ktor.common.client:browser:$http_client_version\"\n\n    // jvm + android\n    compile \"io.ktor.common.client:jvm:$http_client_version\"\n    \n    // ios\n    implementation \"io.ktor.common.client:ios:$http_client_version\"\n}\n```\n\n```groovy\n// enable gradle metadata in settings.gradle\nenableFeaturePreview('GRADLE_METADATA')\n```\n\n## Samples\n1. [ios](samples/ios-test-application)\n2. [android](samples/android-test-application)\n3. [js(browser)](samples/web-test-application)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe5l%2Fhttp-client-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fe5l%2Fhttp-client-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fe5l%2Fhttp-client-common/lists"}