TransmissionRpcClient constructor

TransmissionRpcClient({
  1. HttpProtocol protocol = HttpProtocol.http,
  2. String? username,
  3. String? password,
  4. String host = "127.0.0.1",
  5. int port = 9091,
  6. String path = "/transmission/rpc",
  7. int maxRetryCount = 10,
  8. int timeout = 10000,
  9. Logger? log,
})

Implementation

factory TransmissionRpcClient({
  HttpProtocol protocol = HttpProtocol.http,
  String? username,
  String? password,
  String host = "127.0.0.1",
  int port = 9091,
  String path = "/transmission/rpc",
  int maxRetryCount = 10,
  int timeout = 10000,
  Logger? log,
}) =>
    _TransmissionRpcClient(
      url: Uri(scheme: protocol.name, host: host, port: port, path: path),
      username: username,
      password: password,
      httpClient: HttpClient(),
      maxRetryCount: maxRetryCount,
      timeout: timeout,
      log: log,
    );