loadUri

abstract fun loadUri(uri: Uri, allowCaching: Boolean = true, headers: Map<String, String>? = null): Either<HttpHandlerFailure, ResponseData>

Returns the response of the HTTP requested by the given Uri.

Parameters

uri

The Uri of the HTTP request.

allowCaching

Specifies whether the response should be cached for future calls.

headers

The optional headers to be added to the HTTP request.