ModuleMount<HostR extends KaiselRoute> class

A module mount declaration: the host's marker route, the URL prefix the module answers to, and the module's URL codec.

Used inside ConfigCodecWithModules.modules to wire URL routing across module boundaries.

Annotations
  • @immutable

Constructors

ModuleMount({required HostR mountRoute, required String prefix, required UntypedModuleStackCodec codec})
Create a mount declaration.
const

Properties

codec UntypedModuleStackCodec
The module's own codec for URLs under prefix.
final
hashCode int
The hash code for this object.
no setterinherited
mountRoute → HostR
The marker route on the host's main stack. When the URL matches this mount's prefix, the composer produces a configuration whose mainStack ends with mountRoute and whose nestedState is a KaiselModuleConfig holding the module's decoded stack.
final
prefix String
URL prefix this module answers to. Leading slash optional.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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