This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
0.3.0
Added
- New
ApiProvider
type encapsulating different request methods with support for plugins. - New asynchronous
performRequest
methods with completion callbacks. (#2) - New
Plugin
class to subclass for integrating into the networking logic via callbacks. - New pre-implemented plugins:
HttpBasicAuth
,ProgressIndicator
,RequestLogger
,ResponseLogger
. - New
EmptyResponseBody
type to use whenever the body is expected to be empty or should be ignored.
Changed
- Renamed
JsonApi
protocol toEndpoint
. - Renamed
Method
toHttpMethod
and addedbody: Data
to the casespost
andpatch
. - Moved the
request
method fromJsonApi
to the newApiProvider
& renamed toperformRequestAndWait
. - Generally improved the cases in
JsonApiError
& renamed the type toApiError
. - Moved CI from Bitrise to GitHub Actions.