InternetCheckEndpoint class final

A read-only endpoint and the exact HTTP status that proves reachability.

Constructors

InternetCheckEndpoint(Uri uri, {int expectedStatusCode = 204, String method = 'GET'})
Creates a GET or HEAD check. Redirects are never accepted.

Properties

expectedStatusCode → int
The exact response status accepted as reachable.
final
hashCode → int
The hash code for this object.
no setterinherited
method → String
The read-only HTTP method used for this endpoint.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → Uri
The URL to check. Browser clients require a CORS-enabled endpoint.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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