DVHostMatch class final

A host matched to its entry, with the label a wildcard matched.

Constructors

DVHostMatch(DVHostEntry entry, {String? label})
const

Properties

entry → DVHostEntry
final
hashCode → int
The hash code for this object.
no setterinherited
label → String?
final
mount → String
The host's mount, label substituted: / for the primary host.
no setter
origin → String
The host's public origin, label substituted.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

covers(String internalPath) → bool
Whether internalPath is this host's mount or below it.
hostPath(String internalPath) → String?
The path on this host that shows internalPath, or null when it is outside this host's mount.
internalPath(String hostPath) → String
The route a path on this host shows: / is the mount, /x is mount + /x.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
servesAnyOf(Iterable<String> patterns) → bool
Whether any of the route patterns lies under this host's mount. The primary host always serves. A wildcard label nothing is published for serves nothing, so its robots.txt and sitemap are not found.
toString() → String
A string representation of this object.
inherited

Operators

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