HttpClientDefaults

Shared HTTP client configuration constants used by both Android and Desktop Ktor HttpClient setups.

These values are consumed by the platform-specific Koin modules (NetworkModule on Android, DesktopKoinModule on Desktop) when installing io.ktor.client.plugins.HttpTimeout and io.ktor.client.plugins.HttpRequestRetry.

Properties

Link copied to clipboard
const val API_BASE_URL: String

Base URL for the Meshtastic public API. Installed via the DefaultRequest plugin.

Link copied to clipboard
const val MAX_RETRIES: Int = 3

Maximum number of automatic retries on server errors (5xx).

Link copied to clipboard
const val TIMEOUT_MS: Long

Timeout in milliseconds for connect, request, and socket operations.