EncryptCookiesMiddleware class final
Encrypts every cookie the response sets and decrypts the ones the
request carries (Laravel's EncryptCookies, with Crypt and
CookieValuePrefix), so a Laravel application with the same APP_KEY
reads and writes the same cookies. A cookie that does not decrypt, or
was made for another name, is dropped from the request. except
names cookies left in clear.
Constructors
-
EncryptCookiesMiddleware({List<
String> except = const <String>[]}) -
Encrypts every cookie except
except, as Laravel's.const
Properties
Methods
-
handle(
Request request, Next next) → Future< Response> -
Handles
request: return a response, or callnextto continue. -
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