DoH class

Client for DNS lookup using doh json protocol.

Constructors

DoH({List<Uri>? provider})
init

Properties

hashCode int
The hash code for this object.
no setterinherited
provider List<Uri>
set provider like this
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

kick(String name, DohRequestType type) → void
kick the cache
lookup<T extends DoHAnswer>(String domain, DohRequestType type, {bool cache = true, bool dnssec = false, Duration timeout = const Duration(seconds: 5), int attempt = 1}) Future<List<T>>
Lookup a List<DoHAnswer>, potentially from the cache.
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

Static Properties

instance DoH
no setter