HttpTileByteSource

class HttpTileByteSource(clientFactory: () -> HttpClient = { DefaultHttpClient() }) : TileByteSource

TileByteSource over ktor — the default HTTP transport, wrapping a lazily-built DefaultHttpClient.

Constructors

Link copied to clipboard
constructor(clientFactory: () -> HttpClient = { DefaultHttpClient() })

Functions

Link copied to clipboard
open override fun close()

Release transport resources (close the HTTP client / archive handle). Idempotent.

Link copied to clipboard
open suspend override fun get(uri: String, headers: Map<String, String> = emptyMap()): TileByteResponse

Fetch raw bytes for an already-rewritten uri. A miss is a non-success TileByteResponse.statusCode, not a throw; only real transport failures throw.

Link copied to clipboard
open override fun handles(uri: String): Boolean

True when this source handles uri's scheme (http(s):, slpk:, 3dtiles:).