RedirectManager class
Manages route redirects with loop detection, chain collapsing, and open redirect protection.
Constructors
-
RedirectManager({List<
RedirectRule> rules = const [], int maxHops = 5, Set<String> allowedHosts = const {}})
Properties
-
allowedHosts
→ Set<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxHops → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
RedirectRule rule) → void - Registers a redirect rule.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
String path) → RedirectResolution? -
Resolves any redirects for
path. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited