DataRepositoryHttp<T> constructor

DataRepositoryHttp<T>(
  1. String domain,
  2. String name, {
  3. String? baseURL,
  4. HttpClient? client,
  5. HttpMethod? sourceMethod,
  6. String? sourcePath,
  7. bool sourceFullPath = false,
  8. Object? sourceBody,
  9. HttpMethod? receiverMethod,
  10. String? receiverPath,
  11. bool receiverFullPath = false,
  12. Object? receiverBody,
})

Implementation

DataRepositoryHttp(String domain, String name,
    {String? baseURL,
    HttpClient? client,
    HttpMethod? sourceMethod,
    String? sourcePath,
    bool sourceFullPath = false,
    Object? sourceBody,
    HttpMethod? receiverMethod,
    String? receiverPath,
    bool receiverFullPath = false,
    Object? receiverBody})
    : httpConfigSource = DataCallHttp(
          baseURL: baseURL,
          client: client,
          method: sourceMethod ?? HttpMethod.GET,
          path: sourcePath ?? '',
          fullPath: sourceFullPath,
          body: sourceBody,
          maxRetries: 3),
      httpConfigReceiver = DataCallHttp(
          baseURL: baseURL,
          client: client,
          method: receiverMethod ?? HttpMethod.POST,
          path: receiverPath ?? '',
          fullPath: receiverFullPath,
          body: receiverBody,
          maxRetries: 0),
      super(domain, name);