{"id":31809250,"url":"https://github.com/alexanderwolz/http-client","last_synced_at":"2025-10-11T05:24:44.496Z","repository":{"id":317225302,"uuid":"1066509977","full_name":"alexanderwolz/http-client","owner":"alexanderwolz","description":"Sophisticated http client wrapper","archived":false,"fork":false,"pushed_at":"2025-10-07T05:30:04.000Z","size":268,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-07T07:20:32.882Z","etag":null,"topics":["authentication","certificates","client","http","mtls","mtls-authentication","okhttp","wrapper"],"latest_commit_sha":null,"homepage":"https://www.alexanderwolz.de","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/alexanderwolz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-29T15:25:52.000Z","updated_at":"2025-10-07T05:28:49.000Z","dependencies_parsed_at":"2025-09-29T17:33:38.860Z","dependency_job_id":null,"html_url":"https://github.com/alexanderwolz/http-client","commit_stats":null,"previous_names":["alexanderwolz/http-client"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/alexanderwolz/http-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderwolz%2Fhttp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderwolz%2Fhttp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderwolz%2Fhttp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderwolz%2Fhttp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderwolz","download_url":"https://codeload.github.com/alexanderwolz/http-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderwolz%2Fhttp-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006362,"owners_count":26084084,"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-10-11T02:00:06.511Z","response_time":55,"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":["authentication","certificates","client","http","mtls","mtls-authentication","okhttp","wrapper"],"created_at":"2025-10-11T05:24:41.440Z","updated_at":"2025-10-11T05:24:44.491Z","avatar_url":"https://github.com/alexanderwolz.png","language":"Kotlin","readme":"# HTTP Client\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/alexanderwolz/http-client)\n![Maven Central Version](https://img.shields.io/maven-central/v/de.alexanderwolz/http-client)\n![GitHub](https://img.shields.io/github/license/alexanderwolz/http-client)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/alexanderwolz/http-client)\n![GitHub all releases](https://img.shields.io/github/downloads/alexanderwolz/http-client/total?color=informational)\n\n## 🧑‍💻 About\n\nThis repository provide a sophisticated http client wrapper.\n\n## 🛠️ Build\n1. Create jar resource using ```./gradlew clean build```\n2. Copy  ```/build/libs/*.jar``` into your project\n3. Use the http client classes\n\n## 📦 Getting the latest release\n\nYou can pull the latest binaries from the central Maven repositories:\n\nwith Gradle\n```kotlin\nimplementation(\"de.alexanderwolz:http-client:1.4.4\")\n```\nwith Maven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ede.alexanderwolz\u003c/groupId\u003e\n  \u003cartifactId\u003ehttp-client\u003c/artifactId\u003e\n    \u003cversion\u003e1.4.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 🪄 Example\n\n```kotlin\nval formPayload = Payload.create(\n    BasicContentTypes.FORM_URL_ENCODED,\n    Form(\n        \"grant_type\" to \"client_credentials\",\n        \"client_id\" to \"XYZ12345\",\n        \"client_secret\" to \"9876543ABC\",\n        \"scope\" to \"oidc\"\n    )\n)\n\nval client = HttpClient.Builder()\n    .method(HttpMethod.POST)\n    .endpoint(\"https://sso.example.com/token\")\n    .accept(BasicContentTypes.OAUTH_TOKEN)\n    .body(formPayload)\n    .build()\n\nval response = client.execute()\nif (response.isOK \u0026\u0026 response.body.type == BasicContentTypes.OAUTH_TOKEN) {\n    val accessToken = response.body.element as OAuthTokenResponse\n} else{ \n    throw Exception(\"Received error ${response.code}\")\n}\n```\n\n- - -\n\nMade with ❤️ in Bavaria\n\u003cbr\u003e\n© 2025, \u003ca href=\"https://www.alexanderwolz.de\"\u003e Alexander Wolz\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderwolz%2Fhttp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderwolz%2Fhttp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderwolz%2Fhttp-client/lists"}