CubeNetworkGate class final
Decides whether a URL may be fetched under the live cube policy.
Constructors
- CubeNetworkGate(CubeSpec? spec())
-
Creates a gate reading
specon every decision. Anullresult — no cube active — is allow-all.const
Properties
Methods
-
allows(
Uri uri) → bool -
Whether
urimay be reached. -
check(
Uri uri) → void -
Throws CubeNetworkDeniedException when
uriis denied. -
denialFor(
Uri uri) → String? -
The denial note for
uri, ornullwhen the gate allows it. -
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