Declaratively build and send client requests for REST APIs.
Relax provides a way to declaratively define and organize client HTTP requests for REST APIs. The framework is lightweight built on protocols, easily allowing you to structure your requests for even the most complex REST APIs.
Full Reference Documentation
- Lightweight: built on protocols, works directly on URLSession for low overhead
- Declarative syntax: using result builders, allows for quickly and easily organizing requests to match any structure of REST API.
- Modern: Supports Swift concurrency
await) and Combine (on Apple platforms).
Available for all Swift (5.7+) platforms, including:
*Works on any version where Swift 5.7 is supported.
Relax supports the Swift Package Manager. To integrate in your project-
Add the following to the package dependencies in the Package.swift manifest file:
dependencies: [ .package(url: "https://github.com/tdeleon/Relax.git", from: "2.0.0") ]
Add Relax to the target dependencies:
targets: [ .target( name: "YourProject", dependencies: ["Relax"]) ]
In files where you will be using Relax, import the framework:
To get started using Relax, see the full documentation.