QBittorrentClient

constructor(baseUrl: String, username: String = "admin", password: String = "adminadmin", syncInterval: Duration = 5.seconds, httpClient: HttpClient = HttpClient(), dispatcher: CoroutineDispatcher = Default)

Parameters

baseUrl

The base URL of qBittorrent, ex. http://localhost:8080

username

The qBittorrent username, default: admin

password

The qBittorrent password, default: adminadmin

syncInterval

The sync endpoint polling rate when subscribed to a Flow, defaults to 5 seconds.

httpClient

Custom HTTPClient, useful when a default client engine is not used

dispatcher

Coroutine dispatcher for flow API processing, defaults to Dispatchers.Default.