Releases: 3lvis/Networking
Releases · 3lvis/Networking
Networking — 2.7.1
- Fix multipart image uploads. Thanks @nsoojin 👏 #179
- Refactoring to improve the clarity of the codebase by @codeOfRobin #182 🚀
Networking — 2.7.0
Fantastic addition by @marijnschilling, now we have a callback that gets called every time you get a 403 or a 401, so you can easily throw the user out of the app back to the login screen. 💪 #177
Networking — 2.6.2
- Return request identifiers for download image and download data.
Networking — 2.6.1
- Fixed cache not working properly for URLs with several parameters
Networking — 2.6.0
- Adds
reset
method: cleans up cache and stored credentials
Networking — 2.5.2
- Changed a few fatalErrors for throws
Networking — 2.5.1
- Improved URL encoding
Networking — 2.5.0
- Add support for URL encoded parameters in GET and DELETE
let networking = Networking(baseURL: baseURL)
networking.GET("/get", parameters: ["count": 25]) { json, error in
let json = json as? [String: Any] ?? [String: Any]()
XCTAssertEqual(json["url"] as? String, "http://httpbin.org/get?count=25")
}
Networking — 2.4.1
- Improved
.formURLEncoded
escaping #162 - Changed closure JSON to be json, since it's the norm in Swift
Networking — 2.4.0
- Check for URLError.cancelled.rawValue instead of -999 for cancelled operations.
- Add
disableErrorLogging
to skip error logging.