CookieExtractable<T> class
final
Extracts one cookie, coerced to T.
A nullable T makes it optional; a non-nullable one rejects with 400 when
the cookie is absent, which matches how a query is read.
- Implemented types
- Available extensions
Constructors
- CookieExtractable(String name)
-
Reads the cookie named
name.const
Properties
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
-
require(
Request request) → Future< T> -
Available on FromRequestParts<
Extracts the value, throwing the Rejection when extraction fails.T> , provided by the RequireExtraction extension -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited