class DNSResolverEvent
package openfl.events
extends Event
Available on AIR, Android, HashLink, Linux, Neko, Windows, iOS, macOS
The DNSResolverEvent class represents the results of a Domain Name System (DNS) lookup operation.
Use the DNSResolver lookup()
method to initiate a DNS query. Resource
records returned by the query are placed in the resourceRecords
array of
this DNSResolverEvent object.
Static variables
staticinlineread onlyLOOKUP:EventType<DNSResolverEvent> = "lookup"
Defines the value of the type
property of a lookup
event object.
Constructor
new(type:String, bubbles:Bool = false, cancelable:Bool = false, host:String = "", ?resourceRecords:Array<ResourceRecord>)
Creates an DNSResolverEvent object that contains the results of a DNS lookup operation. Event objects are passed as parameters to event listeners.
Variables
host:String
The query string, such as a host name, IP address, or service locator
used in the call to the lookup()
method of the DNSResolver class for
which this event is a response.
resourceRecords:Array<ResourceRecord>
An array containing the resource records returned by the DNS lookup operation.