fromUrl

suspend fun fromUrl(url: String, loader: CsafLoader = lazyLoader): Result<RetrievedProvider>

Constructs a RetrievedProvider from a JSON found at the specified URL.

Return

A Result containing the retrieved RetrievedProvider or an error if the operation fails.

Parameters

url

The URL of the provider JSON to fetch.

loader

An instance of CsafLoader used to retrieve the provider. Defaults to lazyLoader.