HttpHandler constructor

HttpHandler(
  1. HttpRequestType requestType,
  2. Uri endpointUri, {
  3. Map<String, dynamic>? headers,
  4. Duration requestTimeout = const Duration(seconds: 5),
  5. Duration responseTimeout = const Duration(seconds: 5),
  6. bool printLogs = false,
  7. bool enableDeviceParameters = true,
  8. bool enableApplicationParameters = true,
  9. bool enableStackTrace = true,
  10. 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>{};