{"id":19809507,"url":"https://github.com/space-code/network-layer","last_synced_at":"2025-02-28T12:45:06.863Z","repository":{"id":206031440,"uuid":"702845843","full_name":"space-code/network-layer","owner":"space-code","description":"Network communication made easy.","archived":false,"fork":false,"pushed_at":"2024-12-25T13:04:58.000Z","size":429,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-02-12T22:36:40.667Z","etag":null,"topics":["async-await","exponential-backoff","network","networking","swift","urlsession","urlsessiondatatask"],"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/space-code.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-10-10T06:10:23.000Z","updated_at":"2024-12-25T07:34:49.000Z","dependencies_parsed_at":"2023-11-20T17:29:32.832Z","dependency_job_id":"f6165d44-bec6-41da-862d-cfe503a3d1ed","html_url":"https://github.com/space-code/network-layer","commit_stats":null,"previous_names":["space-code/network-layer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fnetwork-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fnetwork-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fnetwork-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/space-code%2Fnetwork-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/space-code","download_url":"https://codeload.github.com/space-code/network-layer/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241152740,"owners_count":19918674,"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","exponential-backoff","network","networking","swift","urlsession","urlsessiondatatask"],"created_at":"2024-11-12T09:17:13.358Z","updated_at":"2025-02-28T12:45:06.839Z","avatar_url":"https://github.com/space-code.png","language":"Swift","readme":"![NetworkLayer: Network communication made easy](https://raw.githubusercontent.com/space-code/network-layer/dev/Resources/network-layer.png)\n\n\u003ch1 align=\"center\" style=\"margin-top: 0px;\"\u003enetwork-layer\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/space-code/network-layer/blob/main/LICENSE\"\u003e\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/space-code/network-layer?style=flat\"\u003e\u003c/a\u003e \n\u003ca href=\"https://swiftpackageindex.com/space-code/network-layer\"\u003e\u003cimg alt=\"Swift Compatibility\" src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fspace-code%2Fnetwork-layer%2Fbadge%3Ftype%3Dswift-versions\"/\u003e\u003c/a\u003e \n\u003ca href=\"https://swiftpackageindex.com/space-code/network-layer\"\u003e\u003cimg alt=\"Platform Compatibility\" src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fspace-code%2Fnetwork-layer%2Fbadge%3Ftype%3Dplatforms\"/\u003e\u003c/a\u003e \n\u003ca href=\"https://github.com/space-code/network-layer\"\u003e\u003cimg alt=\"CI\" src=\"https://github.com/space-code/network-layer/actions/workflows/ci.yml/badge.svg?branch=main\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/apple/swift-package-manager\" alt=\"network-layer on Swift Package Manager\" title=\"network-layer on Swift Package Manager\"\u003e\u003cimg src=\"https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/space-code/network-layer\" \u003e \u003cimg src=\"https://codecov.io/gh/space-code/network-layer/graph/badge.svg?token=lWsPUf5nPL\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Description\n`network-layer` is a library for network communication.\n\n- [Usage](#usage)\n- [Documentation](#documentation)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Communication](#communication)\n- [Contributing](#contributing)\n- [Author](#author)\n- [Dependencies](#dependencies)\n- [License](#license)\n\n## Usage\n\n```swift\nimport NetworkLayer\nimport NetworkLayerInterfaces\n\nstruct Request: IRequest {\n    var domainName: String { \n        \"https://example.com\"\n    }\n\n    var path: String { \n        \"user\"\n    }\n\n    var httpMethod: HTTPMethod { \n        .get\n    }\n}\n\nlet request = Request()\nlet requestProcessor = NetworkLayerAssembly().assemble()\nlet user: User = try await requestProcessor.send(request)\n```\n\n## Documentation\n\nCheck out [network-layer documentation](https://github.com/space-code/network-layer/blob/main/Sources/NetworkLayer/NetworkLayer.docc/NetworkLayer.md).\n\n## Requirements\n- iOS 13.0+ / macOS 10.15+ / tvOS 13.0+ / watchOS 7.0+ / visionOS 1.0+\n- Xcode 14.0\n- Swift 5.7\n\n## Installation\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. It is in early development, but `network-layer` does support its use on supported platforms.\n\nOnce you have your Swift package set up, adding `network-layer` as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/space-code/network-layer.git\", .upToNextMajor(from: \"1.0.0\"))\n]\n```\n\n## Communication\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n## Contributing\nBootstrapping development environment\n\n```\nmake bootstrap\n```\n\nPlease feel free to help out with this project! If you see something that could be made better or want a new feature, open up an issue or send a Pull Request!\n\n## Author\nNikita Vasilev, nv3212@gmail.com\n\n## Dependencies\nThis project uses several open-source packages:\n\n* [Atomic](https://github.com/space-code/atomic) is a Swift property wrapper designed to make values thread-safe.\n* [Typhoon](https://github.com/space-code/typhoon) is a service for retry policies.\n* [Mocker](https://github.com/WeTransfer/Mocker) is a library written in Swift which makes it possible to mock data requests using a custom `URLProtocol`.\n\n## License\nnetwork-layer is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-code%2Fnetwork-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspace-code%2Fnetwork-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspace-code%2Fnetwork-layer/lists"}