Builder

Properties

Link copied to clipboard

Statuses that count as reachable. Default 200..399. Use 204..204 with generate_204 to detect captive portals.

Link copied to clipboard

Extra request headers, e.g. an API key for your health endpoint.

Link copied to clipboard

HEAD (default), GET or OPTIONS.

Link copied to clipboard

Connect and read timeout. Default 3 s.

Link copied to clipboard
var url: String?

Required for ProbeStrategy.Http: your health endpoint or ProbeTargets.Generate204Url.

Link copied to clipboard

Route the probe through the system proxy (ProxySelector.getDefault()). Default true.