❤️ Support my apps ❤️
- Push Hero - pure Swift native macOS application to test push notifications
- PastePal - Pasteboard, note and shortcut manager
- My other apps
❤️❤️😇😍🤘❤️❤️
EasyNetworking is a lightweight networking framework for use with async/await
Features
- Safe URLRequest builder
- Polyfill async URLSession APIs
- Mock
var client = Client(session: .shared)
client.hook.request = {
Logger.log(request: $0)
}
client.hook.response = { request, response in
// Perform mock here
response
}
var request = Request(url: feedUrl)
request.method = .get
request.headers["Content-Type"] = "application/json"
let response = try await client.data(for: request)
EasyNetworking is also available through Swift Package Manager
.package(url: "https://github.com/onmyway133/EasyNetworking", from: "1.0.0")
Khoa Pham, onmyway133@gmail.com
EasyNetworking is available under the MIT license. See the LICENSE file for more info.