{"id":17982882,"url":"https://github.com/tevelee/asynchttp","last_synced_at":"2025-03-25T19:31:44.387Z","repository":{"id":50486045,"uuid":"433474942","full_name":"tevelee/AsyncHTTP","owner":"tevelee","description":"Swift networking with async/await","archived":false,"fork":false,"pushed_at":"2023-06-02T14:14:35.000Z","size":6634,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T18:24:59.576Z","etag":null,"topics":["async-await","http","networking","swift"],"latest_commit_sha":null,"homepage":"https://tevelee.github.io/AsyncHTTP/documentation/asynchttp","language":"Swift","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tevelee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-11-30T15:04:47.000Z","updated_at":"2024-09-14T01:29:37.000Z","dependencies_parsed_at":"2024-10-29T18:37:33.787Z","dependency_job_id":null,"html_url":"https://github.com/tevelee/AsyncHTTP","commit_stats":{"total_commits":20,"total_committers":1,"mean_commits":20.0,"dds":0.0,"last_synced_commit":"56228ff141d61083071bd941db2918a4dc040143"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tevelee%2FAsyncHTTP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tevelee%2FAsyncHTTP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tevelee%2FAsyncHTTP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tevelee%2FAsyncHTTP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tevelee","download_url":"https://codeload.github.com/tevelee/AsyncHTTP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245530303,"owners_count":20630523,"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":["async-await","http","networking","swift"],"created_at":"2024-10-29T18:15:28.624Z","updated_at":"2025-03-25T19:31:44.032Z","avatar_url":"https://github.com/tevelee.png","language":"Swift","readme":"# AsyncHTTP\n\nGeneric networking library written using Swift async/await\n\n```swift\nlet request = try HTTPRequest().configured { request in\n    request.path = \"endpoint\"\n    request.method = .post\n    request.body = try .json([\"a\": \"b\"])\n    request[header: .accept] = .application.json.appending(.characterSet, value: .utf8)\n    request[header: .authorization] = .bearer(token: \"token\")\n    request.addQueryParameter(name: \"q\", value: \"search\")\n    request.serverEnvironment = .production\n    request.timeout = 60\n    request.retryStrategy = .immediately(maximumNumberOfAttempts: 3)\n}\n\nlet loader: some HTTPLoader = URLSession.shared.httpLoader()\n    .applyServerEnvironment()\n    .applyTimeout(default: 30)\n    .applyRetryStrategy()\n    .deduplicate()\n    .throttle(maximumNumberOfRequests: 2)\n\nlet response: HTTPResponse = try await loader.load(request)\nlet body: MyResponseStruct = try response.jsonBody()\n\nprint(request.formatted())\nprint(response.formatted())\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftevelee%2Fasynchttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftevelee%2Fasynchttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftevelee%2Fasynchttp/lists"}