Cross-platform Swift 6 HTTP client primitives (Endpoint, middleware, typed errors) plus an optional URLSession adapter product.
- APIClientKit — core seams (
APIClientProtocol,Endpoint, middleware,InMemoryAPIClient). UsesFoundationEssentialswhen available. - APIClientKitURLSession —
URLSessionAPIClientadapter. Depends onFoundationNetworkingon Linux.
- DocC catalogs ship in-tree under each target’s
*.doccbundle. - Swift Package Index hosts generated docs once the package is indexed (see
.spi.yml). - Agent-oriented pointers:
AGENTS.md. - CI:
.github/workflows/ci.ymlrunsswift teston Swift 6.3+ (Linux, Windows, macOS, Android SDK build).
swift package generate-documentation --target APIClientKit
swift package generate-documentation --target APIClientKitURLSessionimport APIClientKit
import APIClientKitURLSession
struct Health: Endpoint {
let path = "/health"
let method = Method.get
let task = EndpointTask.plain
}
let client = URLSessionAPIClient(baseURL: URL(string: "https://example.com")!)
let data = try await Health().execute(client: client)