TRON v5.0.0 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 for URLBuilder instead.