VirtualHost class

The VirtualHost class is a utility class for handling multiple hosts on multiple sources, by using a named-based approach.

Constructors

VirtualHost([Stream<HttpRequest> source ])
Construct a new VirtualHost. [...]
factory

Properties

unhandled → Stream<HttpRequest>
Get the Stream of HttpRequests, not matching any hosts. If unused, the default implementation will result in a HttpStatus.forbidden response.
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addHost(String host) → Stream<HttpRequest>
Add a host to the VirtualHost instance. The host can be either a specific domain (my.domain.name) or a wildcard-based domain name (*.domain.name). The former will only match the specific domain name while the latter will match any series of sub-domains. [...]
addSource(Stream<HttpRequest> source) → void
Provide another source of HttpRequests in the form of a Stream.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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