{"id":20064263,"url":"https://github.com/mochidev/urlsessionbackport","last_synced_at":"2025-05-05T18:30:35.554Z","repository":{"id":46130590,"uuid":"426848251","full_name":"mochidev/URLSessionBackport","owner":"mochidev","description":"Backward compatible async/await for URLSession!","archived":false,"fork":false,"pushed_at":"2023-01-20T21:32:06.000Z","size":30,"stargazers_count":36,"open_issues_count":3,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-26T01:56:01.909Z","etag":null,"topics":["swift","swift-5-5","swift-concurrency","swift-package-manager","urlsession"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"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/mochidev.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":"2021-11-11T02:41:06.000Z","updated_at":"2024-01-21T07:36:07.000Z","dependencies_parsed_at":"2023-02-12T05:16:54.558Z","dependency_job_id":null,"html_url":"https://github.com/mochidev/URLSessionBackport","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochidev%2FURLSessionBackport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochidev%2FURLSessionBackport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochidev%2FURLSessionBackport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochidev%2FURLSessionBackport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mochidev","download_url":"https://codeload.github.com/mochidev/URLSessionBackport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224458311,"owners_count":17314642,"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":["swift","swift-5-5","swift-concurrency","swift-package-manager","urlsession"],"created_at":"2024-11-13T13:45:28.099Z","updated_at":"2024-11-13T13:45:28.804Z","avatar_url":"https://github.com/mochidev.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URLSessionBackport\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://swiftpackageindex.com/mochidev/URLSessionBackport\"\u003e\n\u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmochidev%2FURLSessionBackport%2Fbadge%3Ftype%3Dswift-versions\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://swiftpackageindex.com/mochidev/URLSessionBackport\"\u003e\n\u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fmochidev%2FURLSessionBackport%2Fbadge%3Ftype%3Dplatforms\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/mochidev/URLSessionBackport/actions?query=workflow%3A%22Test+URLSessionBackport%22\"\u003e\n\u003cimg src=\"https://github.com/mochidev/URLSessionBackport/workflows/Test%20URLSessionBackport/badge.svg\" alt=\"Test Status\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n`URLSessionBackport` aims to make it possible to use URLSession's new async/await syntax on older OSs, namely iOS 13 or macOS 10.15 and newer. Note that Xcode 13.2 is required, as that version contains the necessary back-ported async/await libraries.\n\n## Installation\n\nAdd `URLSessionBackport` as a dependency in your `Package.swift` file to start using it. Then, add `import URLSessionBackport` to any file you wish to use the library in.\n\nPlease check the [releases](https://github.com/mochidev/URLSessionBackport/releases) for recommended versions.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/mochidev/URLSessionBackport.git\", .upToNextMinor(from: \"1.0.0\")),\n],\n...\ntargets: [\n    .target(\n        name: \"MyPackage\",\n        dependencies: [\n            \"URLSessionBackport\",\n        ]\n    )\n]\n```\n\n## What is `URLSessionBackport`?\n\n`URLSessionBackport` adds a single property to your `URLSession` instances: `.backport`. The best part? Within this namespace, URLSession's async/await methods have been magically re-implemented, allowing you access to them on iOS 13 or macOS 10.15 and newer! Additionally, the methods are automatically marked as deprecated, so they'll let you know when it's safe to remove them.\n\n## Contributing\n\nContribution is welcome! Please take a look at the issues already available, or start a new issue to discuss a new feature. Although guarantees can't be made regarding feature requests, PRs that fit with the goals of the project and that have been discussed before-hand are more than welcome!\n\nPlease make sure that all submissions have clean commit histories, are well documented, and thoroughly tested. **Please rebase your PR** before submission rather than merge in `main`. Linear histories are required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmochidev%2Furlsessionbackport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmochidev%2Furlsessionbackport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmochidev%2Furlsessionbackport/lists"}