{"id":14989985,"url":"https://github.com/khoi/curl-swift","last_synced_at":"2025-08-13T17:04:59.867Z","repository":{"id":37346633,"uuid":"505012746","full_name":"khoi/curl-swift","owner":"khoi","description":"libcurl wrapper for Swift","archived":false,"fork":false,"pushed_at":"2022-06-24T14:18:24.000Z","size":42,"stargazers_count":23,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T20:16:50.358Z","etag":null,"topics":["curl","libcurl","swift","swift-package-manager"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khoi.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":"2022-06-19T04:37:43.000Z","updated_at":"2025-01-31T13:36:42.000Z","dependencies_parsed_at":"2022-09-04T20:02:26.028Z","dependency_job_id":null,"html_url":"https://github.com/khoi/curl-swift","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khoi/curl-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoi%2Fcurl-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoi%2Fcurl-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoi%2Fcurl-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoi%2Fcurl-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khoi","download_url":"https://codeload.github.com/khoi/curl-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khoi%2Fcurl-swift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262293025,"owners_count":23288646,"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":["curl","libcurl","swift","swift-package-manager"],"created_at":"2024-09-24T14:19:16.746Z","updated_at":"2025-06-27T16:31:41.842Z","avatar_url":"https://github.com/khoi.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ➰ curl-swift ![status badge](https://github.com/khoi/curl-swift/actions/workflows/test.yml/badge.svg)\n\nAn opinionated `libcurl` wrapper for Swift\n\n## ⌨️ Usage\n\nThere are 2 ways to use this library which kinda represents [libcurl-easy](https://curl.se/libcurl/c/libcurl-easy.html) and [libcurl-share](https://curl.se/libcurl/c/libcurl-share.html)\n\n### `CURL.swift` \nEach request runs in total isolation. \n\n```swift\nlet req = CURL(\n    method: \"GET\",\n    url:\n        \"https://httpbin.org/get\"\n)\nlet res = try req.perform()\n```\n\n### `CURLSH.swift`\nAllow multiple requests to share cookies, dns cache, ssl session, and other goodies. \n\n```swift\nlet share = CURLSH()\nlet res = try share.perform(curl: req) \n```\n\n## 🏛 Design choices\n\n- The url string passed in will not be escaped, handle it at the call-site.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhoi%2Fcurl-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhoi%2Fcurl-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhoi%2Fcurl-swift/lists"}