TomlLoader

object TomlLoader

Loads and validates config.toml for the proxy.

Functions

Link copied to clipboard
fun ensureConfig(path: Path)

Ensures configuration exists at path. If missing, creates a default config.

Link copied to clipboard
fun load(reader: Reader): ProxyConfig

Loads configuration from a reader.

fun load(path: Path): ProxyConfig

Loads configuration from a file path.