Create GetUrlResolver interface

Implementations should just perform a GET request and return the raw body as bytes
This commit is contained in:
Jorge Martín
2026-08-10 14:15:08 +02:00
committed by Jorge Martin Espinosa
parent 49abaf5a5c
commit c8e43bdad6
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.libraries.matrix.api
fun interface GetUrlResolver {
/**
* Execute generic GET requests through the SDKs internal HTTP client.
*/
suspend fun getUrl(url: String): Result<ByteArray>
}