HttpHandler constructor
HttpHandler(
- HttpRequestType requestType,
- Uri endpointUri, {
- Map<
String, dynamic> ? headers, - Duration requestTimeout = const Duration(seconds: 5),
- Duration responseTimeout = const Duration(seconds: 5),
- bool printLogs = false,
- bool enableDeviceParameters = true,
- bool enableApplicationParameters = true,
- bool enableStackTrace = true,
- bool enableCustomParameters = false,
Implementation
HttpHandler(
this.requestType,
this.endpointUri, {
Map<String, dynamic>? headers,
this.requestTimeout = const Duration(seconds: 5),
this.responseTimeout = const Duration(seconds: 5),
this.printLogs = false,
this.enableDeviceParameters = true,
this.enableApplicationParameters = true,
this.enableStackTrace = true,
this.enableCustomParameters = false,
}) : headers = headers ?? <String, dynamic>{};