{"id":21201734,"url":"https://github.com/oleander/hub-swift","last_synced_at":"2025-07-08T14:03:10.904Z","repository":{"id":66260573,"uuid":"149107518","full_name":"oleander/hub-swift","owner":"oleander","description":"A client-side HTTP library","archived":false,"fork":false,"pushed_at":"2019-07-03T04:31:46.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T14:47:43.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/oleander.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-09-17T10:18:51.000Z","updated_at":"2019-07-03T04:31:48.000Z","dependencies_parsed_at":"2023-06-12T14:15:11.338Z","dependency_job_id":null,"html_url":"https://github.com/oleander/hub-swift","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fhub-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fhub-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fhub-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleander%2Fhub-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleander","download_url":"https://codeload.github.com/oleander/hub-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243654405,"owners_count":20325896,"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":[],"created_at":"2024-11-20T20:10:47.948Z","updated_at":"2025-03-14T22:26:08.939Z","avatar_url":"https://github.com/oleander.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hub\n\nHub is a client-side HTTP library written in Swift\n\n## Example\n\n``` swift\nimport Hub\n\nlet session = Hub(\n  host: URL(\"https://api.example.com\"),\n  headers: [\n    \"Accept\": \"application/json\",\n    \"Content-Type\": \"application/json; charset=utf-8\",\n    \"Cache-Control\": \"max-age=0\"\n  ],\n  cachePolicy: .returnCacheDataElseLoad,\n  logLevel: .info\n)\n\nprint(try session.get(path: \"/hello\").json())\n```\n\n``` swift\nlet html = try Hub.post(\n  url: \"http://example.com\",\n  params: [\n    \"param1\": \"value1\"\n  ],\n  files: [],\n  headers: [],\n  cookies: [],\n  logLevel: .info\n).html()\n```\n\n## Install\n\n``` swift\n// swift-tools-version: 4.2\nimport PackageDescription\n\nlet package = Package(\n  name: \"YOUR_PROJECT_NAME\",\n  dependencies: [\n    .package(url: \"https://github.com/oleander/hub-swift.git\", .branch(\"master\")),\n  ]\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fhub-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleander%2Fhub-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleander%2Fhub-swift/lists"}