Unclaimed project
Are you a maintainer of swift-request? Claim this project to take control of your public changelog and roadmap.
This update adds some great new things:
update methods to allow a Request to be called repeatedly (thanks to @ezraberch)Request {
Url("https://jsonplaceholder.typicode.com/todo")
}
.update(every: 10)
.update(publisher: Timer.publish(every: 10, on: .main, in: .common).autoconnect())
.call()
Timeout paramTimeout(60)
Timeout(60, for: .request)
Timeout(60, for: .resource)
RequestError (thanks to @brennobemoura)RequestError now conforms to the Error protocol, and more error types can be caught and handled by your code.
associatedtype BodyWhen setting the request's Body in a SwiftUI View, use RequestBody instead. This will avoid conflicts with the View protocol.
This release had a lot of great stuff packed in. Here's a few things you can look for in the next release, 1.4.0:
@Requested property wrapper for your SwiftUI code