Skip to content

Commit bb0d717

Browse files
public doc
1 parent 7552c7b commit bb0d717

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/src/http/engine_http_tracking.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,15 @@ class EngineHttpTracking {
179179
initWithModel(model, preserveExisting: preserveExisting);
180180
}
181181

182-
/// Gets statistics about HTTP tracking
182+
/// Gets statistics about HTTP tracking.
183+
///
184+
/// Returns a map containing information about the current state of HTTP tracking:
185+
/// - `is_enabled`: Whether HTTP tracking is currently active
186+
/// - `has_model`: Whether a tracking model has been initialized
187+
/// - `model`: String representation of the current model (if any)
188+
/// - `current_override`: Type of the current HttpOverrides instance
189+
///
190+
/// This method is useful for debugging and monitoring the HTTP tracking state.
183191
static Map<String, dynamic> getStats() => {
184192
'is_enabled': _isEnabled,
185193
'has_model': _model != null,

lib/src/models/engine_http_tracking_model.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class EngineHttpTrackingModel {
2626

2727
/// Default implementation of EngineHttpTrackingModel with HTTP tracking disabled.
2828
class EngineHttpTrackingModelDefault implements EngineHttpTrackingModel {
29+
/// Creates a default HTTP tracking model with tracking disabled.
2930
const EngineHttpTrackingModelDefault();
3031

3132
@override

0 commit comments

Comments
 (0)