TRON v5.0.0-beta.5 Release Notes
Release Date: 2019-06-28 // almost 5 years ago-
โ Added
- ๐ Support for per-request Interceptors.
- ๐ Three different behaviors for building URLs:
.appendingPathComponent
,.relativeToBaseURL
and.custom
. Those can be set in TRON initializer:
let tron = TRON(baseURL: "https://www.example.com/", buildingURL: .relativeToBaseURL)
Or you can change
URLBuilder.Behavior
on per-request basis, using the new DSL:let request: APIRequest<Int,APIError> = tron.swiftyJSON .request("status/200") .buildURL(.relativeToBaseURL)
0๏ธโฃ Default behavior for TRON is
.appendingPathComponent
.โ Removed
URLBuildable
protocol. Please use different behaviors forURLBuilder
instead.