Skip to content

6.0.0

Compare
Choose a tag to compare
@mythz mythz released this 22 Oct 06:11
· 23 commits to master since this release

The latest v6 Release is now dependency-free, where its PromiseKit async APIs have been replaced to use
Swift's native Concurrency support.

import ServiceStack

let client = JsonServiceClient(baseUrl:baseUrl)

Async

let request = Hello()
request.name = "World"

let response = try await client.postAsync(request)
print(response.result!)

Sync

let request = Hello()
request.name = "World"

let response = try client.post(request)
print(response.result!)