New Response Serialization System
Pre-release
Pre-release
All issues associated with this milestone can be found using this filter.
Added
- A new
Response
struct to simplify response serialization.- Added by Christian Noon in Pull Request
#792.
- Added by Christian Noon in Pull Request
- A new initializer to the
Manager
allowing dependency injection of the
underlyingNSURLSession
.- Added by Christian Noon in Pull Request
#795.
- Added by Christian Noon in Pull Request
- Tests around the new
Manager
initialization methods.
Updated
- Result type to take two generic parameters (
Value
andError
) whereError
conforms toErrorType
.- Updated by Christian Noon in Pull Request
#791.
- Updated by Christian Noon in Pull Request
- All response serializers to now return the original server data as
NSData?
.- Updated by Christian Noon in Pull Request
#791.
- Updated by Christian Noon in Pull Request
- The
TaskDelegate
to store an error as anNSError
instead ofErrorType
.- Updated by Christian Noon in Pull Request
#791.
- Updated by Christian Noon in Pull Request
- The
ValidationResult
failure case to require anNSError
instead ofErrorType
.- Updated by Christian Noon in Pull Request
#791.
- Updated by Christian Noon in Pull Request
- All tests around response serialization and
Result
type usage.- Updated by Christian Noon in Pull Request
#791.
- Updated by Christian Noon in Pull Request
- All response serializers to use the new
Response
type.- Updated by Christian Noon in Pull Request -
#792.
- Updated by Christian Noon in Pull Request -
- The designated initializer for a
Manager
to accept aSessionDelegate
parameter
allowing dependency injection for better background session support.- Updated by Christian Noon in Pull Request
#795.
- Updated by Christian Noon in Pull Request