-
public interface NetworkSessionThis interface controls all network access. A default implementation will be included within the library, but consumers can also choose to implement it to leverage their own networking code (e.g. OkHttp).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNetworkSession.Companion
-
Method Summary
Modifier and Type Method Description abstract NetworkResponseloadData(URL url, NetworkRequest request)Requests the given URL with the details provided in the request. -
-
Method Detail
-
loadData
abstract NetworkResponse loadData(URL url, NetworkRequest request)
Requests the given URL with the details provided in the request.
- Parameters:
url- The URL endpoint associated with the request.request- The details of the required request.
-
-
-
-