httpResponse method
void
httpResponse({})
Logs an HTTP response (2xx/3xx) under networkCategory.
Implementation
void httpResponse({
required String source,
required String operation,
String? target,
Duration? duration,
String? correlationId,
Map<String, Object?>? meta,
ISpectTraceConfig? config,
String? consoleMessage,
}) =>
traceCategory(
category: networkCategory,
source: source,
operation: operation,
target: target,
logKey: ISpectLogType.httpResponse.key,
success: true,
duration: duration,
correlationId: correlationId,
config: config,
meta: meta,
consoleMessage: consoleMessage,
);