Dhttpd class

Properties

hashCode int
The hash code for this object.
no setterinherited
host String
no setter
path String
final
port int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
urlBase String
no setter

Methods

destroy() Future<void>
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 Methods

start({String? path, int port = defaultPort, Object address = defaultHost, Map<String, String>? headers}) Future<Dhttpd>
address can either be a String or an InternetAddress. If address is a String, start will perform a InternetAddress.lookup and use the first value in the list. To listen on the loopback adapter, which will allow only incoming connections from the local host, use the value InternetAddress.loopbackIPv4 or InternetAddress.loopbackIPv6. To allow for incoming connection from the network use either one of the values InternetAddress.anyIPv4 or InternetAddress.anyIPv6 to bind to all interfaces or the IP address of a specific interface.