DVHosts class final
Every host an application answers on.
Empty means dartvel.hosts was not declared, and then nothing anywhere
behaves differently: every function here is only consulted when
isEmpty is false.
Constructors
-
DVHosts(List<
DVHostEntry> entries) -
const
Properties
-
entries
→ List<
DVHostEntry> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- primary → DVHostEntry
-
The entry with no mount. parse refuses a configuration without
exactly one, so a DVHosts that is not empty always has it.
no setter
- primaryMatch → DVHostMatch
-
The primary host as a match.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
match(
String host) → DVHostMatch? -
The entry for
host, exact names before wildcards, or null for a host nothing declares.hostis normalised first (case, port, trailing dot). -
matchOrPrimary(
String? host) → DVHostMatch - match, or the primary host: an unknown host -- a health check, a bare IP -- is served as the primary.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
owner(
String internalPath) → DVHostMatch -
The host that owns
internalPath: the entry with the longest mount containing it, the primary host when none does. -
ownerOfPattern(
String pattern) → DVHostEntry? -
The entry that owns a route
patternsuch as/apps/:id, a parameter segment standing for any label. Null when there are no hosts. -
publicUrl(
String internalPath, {String? query}) → String -
internalPathas an absolute URL on the host that owns it, withquerywhen there is one. The root of a host is written as its origin with no trailing slash, as every canonical and sitemap URL Dartvel writes is; with a query it isorigin/?query. -
toJson(
) → List< Object?> - The list the manifest carries.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited