Releases: 3lvis/Networking
Releases · 3lvis/Networking
Networking — 1.1.2
Add support for Swift 2.3.
Networking — 1.1.1
- Allow returning JSON even if an error is found. (#119)
Thanks @webventil for this contribution. 💐
Networking — 2.0.0 (Beta 1)
Initial Swift 3 migration using Xcode 8 (Beta 1).
Networking — 2.0.0 (Beta 2)
Improved Swift 3 migration using Xcode 8 (Beta 1).
Networking — 1.1.0
Multipart
More information: https://github.com/3lvis/Networking#multipart
Example:
let networking = Networking(baseURL: "https://example.com")
let part1 = FormDataPart(data: imageData1, parameterName: "file1", filename: "selfie1.png")
let part2 = FormDataPart(data: imageData2, parameterName: "file2", filename: "selfie2.png")
let parameters = ["username" : "3lvis"]
networking.POST("/image/upload", parts: [part1, part2], parameters: parameters) { JSON, error in
// Do something
}Custom authorization header
More information: https://github.com/3lvis/Networking#custom-authentication-header
Example:
let networking = Networking(baseURL: "http://httpbin.org")
networking.authenticate(headerKey: "Anonymous-Token", headerValue: "AAAFFAAAA3DAAAAAA")
networking.GET("/get") { JSON, error in
// Do something
}Networking — 1.0.1
- Improved OS X unit tests
- Added support for NSImage
Networking — 1.0.0
Important
This marks the first stable release of Networking. Expect strict semantic versioning releases after this. 🎉
Changes
- Renamed
ContentTypetoParameterType
The
Content-TypeHTTP specification is so unfriendly, you have to know the specifics of it before understanding that content type is really just the parameter type. Because of this Networking uses aParameterTypeinstead of aContentType. Anyway, here's hoping this makes it more human friendly.
destinationURLnow throws so usetry networking.destinationURL(...)instead
Networking — 0.25.0
Networking — 0.24.0
- Add support for retrieving an image from the cache
networking.imageFromCache("/image/png") { image in
// Image from cache, you will get `nil` if no image is found
}Networking — 0.23.0
- Add support for cancelling all the in-progress requests
