HTTP constructor

HTTP({
  1. required Client client,
  2. int restRetryLimit = 5,
})

HTTP constructor

Implementation

HTTP({required this.client, this.restRetryLimit = 5}) {
  if (restRetryLimit <= 0) {
    throw Exception("restRetryLimit must be greater than 0");
  }

  client.log(LogLevel.info, "Initialized HTTP client object");
}