{"id":37026887,"url":"https://github.com/rybalkinsd/kohttp","last_synced_at":"2026-01-14T03:10:43.891Z","repository":{"id":52642782,"uuid":"141764280","full_name":"rybalkinsd/kohttp","owner":"rybalkinsd","description":"Kotlin DSL http client","archived":false,"fork":false,"pushed_at":"2021-04-22T15:29:29.000Z","size":9393,"stargazers_count":480,"open_issues_count":38,"forks_count":40,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-01-23T21:31:46.099Z","etag":null,"topics":["dsl","http-client","http-dsl","kotlin","kotlin-dsl","networking"],"latest_commit_sha":null,"homepage":"https://kohttp.gitbook.io","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/rybalkinsd.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"kohttp"}},"created_at":"2018-07-20T22:48:35.000Z","updated_at":"2025-01-07T02:34:23.000Z","dependencies_parsed_at":"2022-08-22T01:41:03.355Z","dependency_job_id":null,"html_url":"https://github.com/rybalkinsd/kohttp","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rybalkinsd/kohttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkinsd%2Fkohttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkinsd%2Fkohttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkinsd%2Fkohttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkinsd%2Fkohttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rybalkinsd","download_url":"https://codeload.github.com/rybalkinsd/kohttp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rybalkinsd%2Fkohttp/sbom","scorecard":{"id":792772,"data":{"date":"2025-08-11","repo":{"name":"github.com/rybalkinsd/kohttp","commit":"d7ea236df5bf899a73ebffe3ba8669074711c8df"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":3,"reason":"Found 11/30 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: samples/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: samples/spring/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T08:02:05.958Z","repository_id":52642782,"created_at":"2025-08-23T08:02:05.958Z","updated_at":"2025-08-23T08:02:05.958Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["dsl","http-client","http-dsl","kotlin","kotlin-dsl","networking"],"created_at":"2026-01-14T03:10:43.201Z","updated_at":"2026-01-14T03:10:43.881Z","avatar_url":"https://github.com/rybalkinsd.png","language":"Kotlin","funding_links":["https://patreon.com/kohttp"],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"readme":"# Introduction\n\n![](https://repository-images.githubusercontent.com/141764280/12771480-a7f9-11e9-8a41-4a1280106f8a)\n\n[![Build Status](https://travis-ci.org/rybalkinsd/kohttp.svg?branch=master)](https://travis-ci.org/rybalkinsd/kohttp) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.rybalkinsd/kohttp/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.rybalkinsd/kohttp) [![codecov](https://codecov.io/gh/rybalkinsd/kohttp/branch/master/graph/badge.svg)](https://codecov.io/gh/rybalkinsd/kohttp) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/e072bcbe3dcf4fce87e44443f0721537)](https://www.codacy.com/app/yan.brikl/kohttp?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=rybalkinsd/kohttp\u0026amp;utm_campaign=Badge_Grade) [![Kotlin](https://img.shields.io/badge/Kotlin-1.3.50-blue.svg)](https://kotlinlang.org) [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin) [![Join the chat at https://gitter.im/kohttp/community](https://badges.gitter.im/kohttp/community.svg)](https://gitter.im/kohttp/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)[![star this repo](http://githubbadges.com/star.svg?user=rybalkinsd\u0026repo=kohttp\u0026style=flat)](https://github.com/rybalkinsd/kohttp)\n\nKotlin DSL http client\n\n## Features\n 🔹 Developers Experience-driven library without verbosity.\n \n 🔹 Native way to use http client in Kotlin.\n \n 🔹 HTTP [`GET`](gitbook/core/synchronous-calls/get.md)/[`POST`](gitbook/core/synchronous-calls/post.md)/[`PUT`](gitbook/core/synchronous-calls/put.md)/[`HEAD`](gitbook/core/synchronous-calls/head.md)/[`DELETE`](gitbook/core/synchronous-calls/delete.md)/[`PATCH`](gitbook/core/synchronous-calls/patch.md) requests.   \n \n 🔹 [Asynchronous](gitbook/core/asynchronous-calls/) and [blocking](gitbook/core/synchronous-calls/) requests.  \n \n 🔹 [Upload files](gitbook/core/synchronous-calls/upload-files.md).\n \n 🔹 [Logging](gitbook/core/interceptors.md#logging-interceptor-a-request-logging-interceptor) - easily dump your http requests or convert them to cURL commands.\n \n 🔹 Minimal footprint.\n\n\n## Quick start\n```kotlin\n// Use String or URL extensions send simple request\nval response = \"https://my-host.com/users?admin=true\".httpGet()\n\n// Parse response with your favorite library\nval users = response.toJson()\n\n// Use sync or async methods to send your requests\n// Configure method params, headers, cookies and body in a concise way\nval notifications: List\u003cDeferred\u003cResponse\u003e\u003e = users.forEach { user -\u003e\n    httpPostAsync {\n        url(\"https://my-host.com/friends/push\")\n        \n        param {\n            \"userId\" to user[id]\n            \"eventType\" to NewFriend\n        }\n        \n        header {\n            \"locale\" to \"en_EN\"\n            cookie {\n                \"user_session\" to \"toFycNV\"\n                \"authToken\" to \"d2dwa6011w96c93ct3e3493d4a1b5c8751563217409\"\n            }\n        }\n    }\n}\n```\n\n## Samples\n- [Android application](/samples/android)\n- [Spring Boot application](/samples/spring)  \n\n## About kohttp\n\n* [Kotlin weekly](https://mailchi.mp/kotlinweekly/kotlin-weekly-124) mentioned us\n* [Android weekly \\(CN\\)](https://androidweekly.io/android-dev-weekly-issue-208/) mentioned us\n* [Kotlin http client. Making kohttp 0.11.0](https://medium.com/@sergei.rybalkin/kotlin-http-client-making-kohttp-0-11-0-af16fb702c86?source=friends_link\u0026sk=e0284c5f8028034eafd433ff5fcfcf47) - medium post\n* [Write your Android network as Kotlin DSL](https://medium.com/datadriveninvestor/write-your-android-networking-as-a-kotlin-dsl-330febae503f) - medium post\n* [Upload files to Google Drive with Kotlin](https://medium.com/@sergei.rybalkin/upload-file-to-google-drive-with-kotlin-931cec5252c1) - medium post\n* [Production Kotlin DSL \\(RU + subtitles\\) ](https://youtu.be/4m9bS0M0Nww) - Kotlin/Everywhere talk, YouTube\n\n## Installation\n\n### Gradle\n\nKotlin DSL:\n\n```kotlin\nimplementation(group = \"io.github.rybalkinsd\", name = \"kohttp\", version = \"0.12.0\")\n```\n\nGroovy DSL:\n\n```groovy\nimplementation 'io.github.rybalkinsd:kohttp:0.12.0'\n```\n\n### Maven:\n\n```markup\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.rybalkinsd\u003c/groupId\u003e\n  \u003cartifactId\u003ekohttp\u003c/artifactId\u003e\n  \u003cversion\u003e0.12.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Table of contents\n\n* [Synchronous calls](gitbook/core/synchronous-calls/)\n  * [GET](gitbook/core/synchronous-calls/get.md)\n  * [POST](gitbook/core/synchronous-calls/post.md)\n  * [PUT](gitbook/core/synchronous-calls/put.md)\n  * [HEAD](gitbook/core/synchronous-calls/head.md)\n  * [DELETE](gitbook/core/synchronous-calls/delete.md)\n  * [PATCH](gitbook/core/synchronous-calls/patch.md)\n  * [Upload files](gitbook/core/synchronous-calls/upload-files.md)\n  * [Generic requests](gitbook/core/synchronous-calls/generic-requests.md)\n* [Asynchronous calls](gitbook/core/asynchronous-calls/)\n  * [async GET](gitbook/core/asynchronous-calls/async-get.md)\n  * [async POST](gitbook/core/asynchronous-calls/async-post.md)\n  * [async PUT](gitbook/core/asynchronous-calls/async-put.md)\n  * [async HEAD](gitbook/core/asynchronous-calls/async-head.md)\n  * [async DELETE](gitbook/core/asynchronous-calls/async-delete.md)\n  * [async PATCH](gitbook/core/asynchronous-calls/async-patch.md)\n  * [async Upload files](gitbook/core/asynchronous-calls/async-upload-files.md)\n  * [async Generic requests](gitbook/core/asynchronous-calls/generic-requests.md)\n* [Response usage](gitbook/core/response-usage.md)\n* [Interceptors](gitbook/core/interceptors.md)\n* [Customisation](gitbook/core/customisation.md)\n* [Experimental features](gitbook/core/experimental-features.md)\n* [Changelog](gitbook/history/changelog.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frybalkinsd%2Fkohttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frybalkinsd%2Fkohttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frybalkinsd%2Fkohttp/lists"}