- Deprecate
URLRequest.MethodBuilder
verb(path:) methods. Use the relevant verb(url:).
URLRequest.BodyBuilder
to create MultipartForm requests.ResponseErrorMapper
can be injected to replace the defaultNetworkClient.Error
, thrown from a faulty status code, with a consumer generated one.
- Rename to package to
NetworkClient
.
Change yourimport IndiceNetworkClient
toimport NetworkClient
. - Split into two targets
NetworkClient
andNetworkUtilities
.
The later contains anyURLRequest
andURLRequest.Builder
related extension. - Removal of
APIError
definition. Replaced withNetworkClient.Error
.
To define a concrete Error type throw by your API, @seeResponseErrorMapper
. - Removal of
NetworkClient
's custom headers, as the functionality can be achieved by aNetworkClient.Interceptor
- Replace
URLRequest.ContentType.urlUtf8
, withURLRequest.ContentType.url(useUTF8Charset:)
.
- Bug where interceptors didn't correctly catch
APIError
s.
- Removal of the
NetworkClient.Retrier
class, as the functionality can be achieved by aNetworkClient.Interceptor
.
We'll get to filling this space.