Releases: graemer957/SimpleRESTLayer
Releases · graemer957/SimpleRESTLayer
v0.7.3
v0.7.2
Built using Xcode v9.2 with Swift v4.0.3
Fixed
- Fixed incorrect encoding of parameters in body
v0.7.1
Built using Xcode v9.2 with Swift v4.0.3
Fixed
- Change access modifiers on
Response
v0.7.0
Built using Xcode v9.2 with Swift v4.0.3
Changes
- Add support for HTTP Basic Auth and Bearer Tokens
- Add date/time to log output
- Log the request when it's made and the response when it is back
- Add map and flapMap to
Result
Fixes
- Fixed incorrect spelling of unauthorised
v0.6.0
Built using Xcode v9.2 with Swift v4.0.3
Changes
- If response is unsuccessful,
ResponseError
now contains theData
sent by server - Tweak execute API by hiding first parameter to improve readability at call site
- Rename name of completion handler more in keeping with other platform frameworks
- Calling extension
URLRequest.addJSONBody
permits passing your ownJSONEncoder
, by default a new one will be created - Rename parameter on
Request.with
to make its purpose clearer
Fixes
- Fix issue on Linux where subsequent requests would not use supplied URLSessionConfiguration
v0.5.0
Built using Xcode v9.2 with Swift v4.0.3
Changes
- Rename
Response
asResult
, which is more in-keeping with other projects in the Swift community Result
can now failure can now be anyError
- Successful results now include a
Response
allowing access to a type safe HTTP status code and headers - Calling
RESTClient.execute
permits passing your ownJSONDecoder
, by default a new one will be created - You can now set
RESTClient.queue
to beDispatchQueue
on which completion handlers should be called - To access the raw data of a response pass in a result type of
Data
- Add
unwrap
method toResult
type, inspiration from Cocoa with Love - Tweak signature of
Request.with
to improve readability at call site
v0.4.1
Built using Xcode v9.2 with Swift v4.0.3
Changes
- Full support for Linux
- Permit successful HTTP responses with no body
Fixes
- Fix typo in message when JSON key was not found whilst trying to decode
v0.4.0
Built using Xcode v9.2 with Swift v4.0.3
Changes
- Major improvements and simplification thanks to Codable in Swift 4.
v0.3.0
Built using Xcode v8.3.3 with Swift v3.1
Changes
- Added support for HTTP 304 notModified
- Success response now has access to the HTTP headers
- Allow setting timeout for all requests
Fixes
- New compiler warnings
v0.2.1
Built using Xcode v8.2.1 with Swift v3.0.2
Fixes
- Number of issues picked up by SwiftLint
- Release build contained debug logging code