Skip to content

Releases: kean/Get

Get 0.8.0

27 Apr 01:44
Compare
Choose a tag to compare
  • Make Request and Response conditionally Sendable (requires Xcode 13.3)
  • Deprecate URLRequest cURLDescription() extension – it was never meant to be in the scope

Get 0.7.1

12 Apr 01:35
Compare
Choose a tag to compare
  • Fix trailing ? when creating the request with empty query items - #29, thanks to Guilherme Souza

Get 0.7.0

09 Apr 17:58
Compare
Choose a tag to compare
  • Add baseURL client configuration option. Deprecate host, port, and isInsercure.

Usage:

APIClient(baseURL: URL(string: "https://api.github.com"))

Get 0.6.0

03 Apr 21:15
Compare
Choose a tag to compare

Get 0.5.0

21 Jan 17:59
068b400
Compare
Choose a tag to compare

Get 0.4.0

10 Jan 21:31
Compare
Choose a tag to compare
  • Add public Request intializer

Get 0.3.1

29 Dec 23:24
Compare
Choose a tag to compare
  • The new optional send() variant now also supports String, and Data.

Get 0.3.0

29 Dec 23:22
Compare
Choose a tag to compare
  • Add send variant that works with optional types. If the response is empty – return nil.

Get 0.2.1

24 Dec 14:30
Compare
Choose a tag to compare
  • Remove value(for:). Use send(...).value, which is exactly the same amount of code.

Get 0.2.0

24 Dec 00:38
Compare
Choose a tag to compare
  • It now supports iOS 13, macOS 10, watchOS 6, and tvOS 13
  • Make willSend async - #11, thanks to Lars-Jørgen Kristiansen
  • Add a more convenient way to initialize APIClient (same as ImagePipeline in Nuke):
let client = APIClient(host: "api.github.com") {
    $0.delegate = MyClientDelegate()
    $0.sessionConfiguration.httpAdditionalHeaders = ["apiKey": "easilyExtractableSecretKey"]
}
  • You can now provide a session delegate (URLSessionDelegate) when instantiating a client for monitoring URLSession events – the client will continue doing its thing
  • Add metrics (URLSessionTaskMetrics) to Response
  • Add public Response initializer and make properties writable