HttpCall<R> constructor

HttpCall<R>({
  1. String? baseURL,
  2. HttpClient? client,
  3. HttpMethod method = HttpMethod.GET,
  4. String path = '',
  5. bool fullPath = false,
  6. Object? body,
  7. int maxRetries = 0,
})

Implementation

HttpCall(
    {String? baseURL,
    HttpClient? client,
    this.method = HttpMethod.GET,
    this.path = '',
    this.fullPath = false,
    this.body,
    this.maxRetries = 0})
    : client = client ?? HttpClient(baseURL ?? getUriBase().toString());