HTTPEventBase constructor

HTTPEventBase({
  1. required String method,
  2. required String url,
  3. int? statusCode,
  4. required Duration duration,
  5. Map<String, String> requestHeaders = const {},
  6. Map<String, String> responseHeaders = const {},
  7. String? requestBody,
  8. String? responseBody,
  9. bool isError = false,
  10. String? errorMessage,
  11. DateTime? timestamp,
})

Implementation

HTTPEventBase({
  required this.method,
  required this.url,
  this.statusCode,
  required this.duration,
  this.requestHeaders = const {},
  this.responseHeaders = const {},
  this.requestBody,
  this.responseBody,
  this.isError = false,
  this.errorMessage,
  DateTime? timestamp, // ← Issue #137: Timestamp opcional para reserva
}) : _timestamp = timestamp ?? DateTime.now().toUtc();