NetworkHelper
Utility interface for making basic async network requests. For more complex requirements, use the NetworkClient instead.
This is a short-circuit for standard, uncompressed requests only, so request bodies are never compressed. Anything beyond that, GZIP included, should go through the NetworkClient with a HttpRequest built for the purpose.
Types
Data class for holding a generic value along with the HttpResponse
Functions
Asynchronously fetches the given url and returns the payload parsed as a DataObject An optional etag can be supplied if the resource being requested is already available on the device and may be able to be re-used.
Asynchronously fetches the given url and returns the payload parsed as a String and then converted to an instance of T using by the given deserializer.
Asynchronously fetches the given url and returns the payload parsed as a JSONObject An optional etag can be supplied if the resource being requested is already available on the device and may be able to be re-used.