getDataObject
abstract fun getDataObject(url: String, etag: String? = null, additionalHeaders: Map<String, String>? = null, completion: DeserializedNetworkCallback<DataObject>): Disposable
abstract fun getDataObject(url: URL, etag: String? = null, additionalHeaders: Map<String, String>? = null, completion: DeserializedNetworkCallback<DataObject>): Disposable
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.
Parameters
url
The Url to GET
etag
Optional etag of the currently known resource
additionalHeaders
Optional map of additional headers to add to the request