TABResourceLoader icon indicating copy to clipboard operation
TABResourceLoader copied to clipboard

Framework for loading resources from a network service

Results 9 TABResourceLoader issues
Sort by recently updated
recently updated
newest added

Added NetworkFormDataResourceType and NetworkJSONResourceType. Refactored NetworkResourceType to take more generic 'body' and moved encoding of data to the conforming types. Updated tests

## 🛠 Description & Reasoning Adding a `resource` argument to the "additional" functions of the resource service - the functions that are intended to be overridden by subclasses. Providing the...

In Swift 5.2 there is a change that prevents changing the generic requirements in an overridden method. Which completely breaks our use of subclassing NetworkDataResourceService. https://forums.swift.org/t/method-override-with-a-generic-signature-with-requirements-not-imposed-by-the-base-method/33593 Is there any ideas...

## Use Case My client creates a secure session which is configured for certificate pinning. When the app starts, I create a new session like so: ```swift URLSession(configuration: .default, delegate:...

Imagine a case where you expect expect a JSON array in the body if the request is successful and a JSON dictionary body in case the server returns a 400...

If the response data does need to be parsed the `Model` can `Void` and the `DataResourceType` method can be implemented to always return `.success()`. We should add an example in...

documentation

It's a pretty common pattern to just use status codes for some of the HTTP methods. For example, I want to send a push notification token to my server. I...

question

- Remove dependency on UIKit for UIImage - Add support for SPM

enhancement