Skip to content

Releases: 3lvis/Networking

Networking — 1.1.2

02 Sep 11:32

Choose a tag to compare

Add support for Swift 2.3.

Networking — 1.1.1

26 Jul 15:53

Choose a tag to compare

  • Allow returning JSON even if an error is found. (#119)

Thanks @webventil for this contribution. 💐

Networking — 2.0.0 (Beta 1)

29 Jun 22:18

Choose a tag to compare

Pre-release

Initial Swift 3 migration using Xcode 8 (Beta 1).

Networking — 2.0.0 (Beta 2)

06 Jul 07:37

Choose a tag to compare

Pre-release

Improved Swift 3 migration using Xcode 8 (Beta 1).

Networking — 1.1.0

22 May 16:11

Choose a tag to compare

Multipart

More information: https://github.com/3lvis/Networking#multipart

Issues: #101 #100 #94

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

Issues: #97 #98

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

14 May 19:02

Choose a tag to compare

  • Improved OS X unit tests
  • Added support for NSImage

Networking — 1.0.0

14 May 13:09

Choose a tag to compare

Important

This marks the first stable release of Networking. Expect strict semantic versioning releases after this. 🎉

giphy 1


Changes

  • Renamed ContentType to ParameterType

The Content-Type HTTP 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 a ParameterType instead of a ContentType. Anyway, here's hoping this makes it more human friendly.

  • destinationURL now throws so use try networking.destinationURL(...) instead

Networking — 0.25.0

09 May 12:57

Choose a tag to compare

  • Added method to download data by @elland (#80) 👏
let networking = Networking(baseURL: self.baseURL)
networking.downloadData("/image/png") { data, error in
    // Do something with data!
}

Networking — 0.24.0

03 May 22:33

Choose a tag to compare

  • 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

26 Apr 14:36

Choose a tag to compare

  • Add support for cancelling all the in-progress requests