Extension<T extends Object> class
final
Reads a value a fromExtractor layer already produced.
The counterpart to axum's Extension<T>.
A missing value is a 500, not a 401: the layer not being installed is a wiring mistake in the route table rather than something a client did, and answering 401 would send whoever is debugging it after a credential that was never the problem. The message says which type is missing.
- Implemented types
Constructors
- Extension()
-
Reads the
TafromExtractorlayer left behind.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
extract(
Request request) → Future< Result< T, Rejection> > -
Produces the value, or the rejection that stops the handler.
override
-
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