Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Releases: dduan/Just

0.5.0

11 Sep 07:50
Compare
Choose a tag to compare

Swift 3 support!

v0.4.8

13 Jul 07:33
Compare
Choose a tag to compare
  • fixed issue #38, a percent encoding issue in forms and URL query parameters.
  • added support for unprompted basic HTTP authentication (via Auth header)

v0.4.6

23 Feb 01:01
Compare
Choose a tag to compare

Fixed a bug in synchronous request + timeouts. Thanks Marco (@massenz)!

v0.4.5

02 Feb 21:43
Compare
Choose a tag to compare

Fixed a silly bug regarding PATCH requests.

v0.4.4

22 Nov 22:40
Compare
Choose a tag to compare

Added option to customize credential persistence through JustSessionDefaults (default value is .ForSession):

let defaults = JustSessionDefaults(credentialPersistence: .None)
let just = JustOf<HTTP>(defaults: defaults)
just.post("http://httpbin.org/post", auth: ("B3rry": "A113n")) // credential will not persist at all.

Read the customization section in quick start guide to learn more!

v0.4.3

12 Nov 21:28
Compare
Choose a tag to compare

This version made JustSessionDefaults public so that you can create your own Just sessions with one. For example, the following code creates a session that includes an Authorization header for all requests:

let defaults = JustSessionDefaults(headers: ["Authorization": "\(someAuthKey)"])
let just = JustOf<HTTP>(defaults: defaults)
just.post("http://httpbin.org/post") // this request will contain the Authorization header

v0.4.2

23 Oct 22:32
Compare
Choose a tag to compare

This build contains some project housekeeping.

Probably more interesting notes from v0.4:

  1. HTTPResult now retains reference to its NSURLSessionTask.
  2. as a consequence, you can call HTTPResult.cancel(), which just forwards to HTTPResult.task?.cancel()
  3. The type of json argument got relaxed to AnyObject, so that arrays can be passed in.
  4. Added tvOS target.

v0.4.1

23 Oct 18:05
Compare
Choose a tag to compare

This build contains some project housekeeping.

Probably more interesting notes from v0.4:

  1. HTTPResult now retains reference to its NSURLSessionTask.
  2. as a consequence, you can call HTTPResult.cancel(), which just forwards to HTTPResult.task?.cancel()
  3. The type of json argument got relaxed to AnyObject, so that arrays can be passed in.
  4. Added tvOS target.

v0.4

23 Oct 05:31
Compare
Choose a tag to compare
  1. HTTPResult now retains reference to its NSURLSessionTask.
  2. as a consequence, you can call HTTPResult.cancel(), which just forwards to HTTPResult.task?.cancel()
  3. The type of json argument got relaxed to AnyObject, so that arrays can be passed in.
  4. Added tvOS target.

v0.3

02 Sep 08:24
Compare
Choose a tag to compare

Just now supports Link Headers. It also gained an adaptor structure internally.