Skip to content

Releases: richardpiazza/SessionPlus

SessionPlus 2.2.0

25 Feb 13:42
d15b52f
Compare
Choose a tag to compare

This release introduces an async/await compatible WebSockets implementation. (The implementation is currently limited to Apple platforms.)

let socket = try AbsoluteURLWebSocket(baseURL: url)
try await socket.start()
for try await message in socket.receive() {
    processWebSocketMessage(message)
}

SessionPlus 2.1.0

11 May 12:48
c45e400
Compare
Choose a tag to compare

Modifications to better support using absolute URLs.

The primary intent of the framework is to interact with JSON apis, but another very-common need is the ability to download random data or images from URLs outside of a primary API. This is what the deprecated Downloader was focused on.

The ability to interact with non-base URLs has been brought forward and integrated into the overall solution. Request now has an Address enum which determines the type of addressing that will be used. The URLSessionClient has been renamed to BaseURLSessionClient to better indicate its usage, and a AbsoluteURLSessionClient implementation is now available.

SessionPlus 2.0.1

27 Apr 12:11
eb2ace5
Compare
Choose a tag to compare

2.0.1
Fixes an issues where a URLSessionDataTask was not automatically .resume() 🤦‍♂️

2.0.0

  • Shifts the interaction model from being task/execution based to being request/response based.
  • Request and Response are protocols which represent the required parameters needs to respectively query and process a response from an api.
  • All of the older HTTPClient protocols and implementations are deprecated and will be removed in future versions of the framework.

SessionPlus 2.0.0

27 Mar 16:24
b525624
Compare
Choose a tag to compare

Shifts the interaction model from being task/execution based to being request/response based.

Request and Response are protocols which represent the required parameters needs to respectively query and process a response from an api.

All of the older HTTPClient protocols and implementations are deprecated and will be removed in future versions of the framework.

SessionPlus 1.2.0

29 Nov 13:25
bae4735
Compare
Choose a tag to compare

Swift 5.5 Concurrency Support. This release adds support for async/await support for Apple systems.

The FoundationNetworking module that provides URLSession on non-Apple platforms does not yet support async request method.

SessionPlus 1.1.0

15 Apr 23:37
b426177
Compare
Choose a tag to compare

Replaced Header, MIMEType, and RequestMethod enums with structs for greater flexibility.
Opened encoding/decoding methods to public for implementing in additional convenience methods.

SessionPlus 1.0.0

23 Aug 11:16
fa2c76e
Compare
Choose a tag to compare

1.0 release of SessionPlus 🎉.