ProbeTargets

Ready-made probe targets.

The library never contacts third-party hosts on its own: probe-based monitors need explicit targets, and these constants make that a one-liner.

Properties

Link copied to clipboard

Google's connectivity-check URL for the HTTP probe. It answers 204; captive portals answer 200 or a redirect, so use expectedStatus = 204..204 to detect them.

Link copied to clipboard

Cloudflare and Google public resolvers on port 443, IPv4 first, then IPv6. IP literals skip DNS, so a check usually takes one round trip.

Link copied to clipboard

Cloudflare and Google public resolvers on port 443, IPv4 only.

Link copied to clipboard

Cloudflare and Google public resolvers on port 443, IPv6 only.

Functions

Link copied to clipboard

The host and port of an http(s) URL, e.g. your API base URL. The port defaults to 443 for https and 80 for http.