BloomHttpTelemetryTransport constructor
BloomHttpTelemetryTransport({
- required Uri endpoint,
- Map<
String, String> ? headers, - Client? client,
- Duration timeout = const Duration(seconds: 10),
- void onError(
- BloomTelemetryEvent event,
- Object error,
- StackTrace stackTrace
Creates a BloomHttpTelemetryTransport.
Implementation
BloomHttpTelemetryTransport({
required this.endpoint,
Map<String, String>? headers,
http.Client? client,
this.timeout = const Duration(seconds: 10),
this.onError,
}) : headers = headers ?? const {},
_client = client ?? http.Client();