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

except → List<String>
Cookies left unencrypted.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

handle(Request request, Next next) → Future<Response>
Handles request: return a response, or call next to 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