ProbeService class abstract interface

Performs the actual HTTP probe that verifies internet access.

Design:

  • HEAD request to generate_204 — zero bytes body downloaded.
  • If primary CDN is unreachable, falls back to Apple success page.
  • Detects captive portals via unexpected status code or redirect.
  • Measures only round-trip time — not download speed (too heavy).
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
probe() Future<int>
Returns round-trip latency in milliseconds. Throws CaptivePortalException, ProbeTimeoutException, or ProbeFailedException on failure.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited