https://github.com/kiarashvosough1999/knetworking
https://github.com/kiarashvosough1999/knetworking
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kiarashvosough1999/knetworking
- Owner: kiarashvosough1999
- License: mit
- Created: 2023-07-15T11:49:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-08T14:19:12.000Z (about 2 years ago)
- Last Synced: 2025-01-29T13:45:40.153Z (9 months ago)
- Language: Swift
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KNetworking



[](https://twitter.com/vosough_k)
[](https://www.linkedin.com/in/kiarashvosough/)
Many times I use this structure for network layer of my own built applications. I came into a decision to make a package out of it.
It streamlines sending HTTP requests with simple structure, beneficial for small tasks and projects.
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Contributors](#Contributors)
- [License](#license)
## Features
- [x] Send HTTP data requests.
- [x] Support different HTTP Methods.
- [x] Support url parameters.
- [x] Support http body.
- [x] Support http headers.
- [x] Support all status codes.
- [x] Support different routes and gateways
- [x] build parameters, body and headers easily with @BodyBuilder and @KeyValueBuilder.
## Requirements
| Platform | Minimum Swift Version | Installation | Status |
| --- | --- | --- | --- |
| iOS 13.0+ | 5.8 | [SPM](#spm) | Tested |
| macOS 10.15+ | 5.8 | [SPM](#spm) | Tested |
| macCatalyst 13+ | 5.8 | [SPM](#spm) | Tested |
| watchOs 6.0+ | 5.8 | [SPM](#spm) | NotTested |
| tvOS 13.0+ | 5.8 | [SPM](#spm) | NotTested |
## Installation
### SPM
The [Swift Package Manager](https://www.swift.org/package-manager) is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding `KNetworking` as a dependency is as easy as adding it to the dependencies value of your Package.swift.
```swift
dependencies: [
.package(url: "https://github.com/kiarashvosough1999/KNetworking.git", .upToNextMajor(from: "1.0.0"))
]
```
## Contributors
Feel free to share your ideas or any other problems. Pull requests are welcomed.
## License
`KNetwork` is released under an MIT license. See [LICENSE](https://github.com/kiarashvosough1999/KNetworking/blob/master/LICENSE) for more information.