SynchronousNetworking

master

Simple synchronous cross-platform networking for Swift CLI apps.
HeshamMegid/SynchronousNetworking

SynchronousNetworking

CircleCI

Simple synchronous cross-platform networking for Swift CLI apps.

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/HeshamMegid/SynchronousNetworking", .upToNextMajor(from: "0.0.1")
]

Usage

let networking = SynchronousNetworking(baseUrl: URL(string: "http://example.com/")!)
let parameters = ["param1": "value1"]
let networkResponse = networking.getSynchronously(path: "path/to/endpoint/", parameters: parameters)
if let data = networkResponse.data {
    // Use data
}

Description

  • Swift Tools 4.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 05:00:52 GMT-0900 (Hawaii-Aleutian Daylight Time)