DataRepositoryHttp<T> constructor
DataRepositoryHttp<T> (
- 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,
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);