spry_cookie
library
Classes
-
Cookies
-
Spry cookies container.
Functions
-
cookie({String? secret, Hash algorithm = sha256, bool autoSecureSet = true, DateTime? expires, int? maxAge, String? domain, String? path, bool? secure, bool? httpOnly, SameSite? sameSite, bool? partitioned})
→ FutureOr<Response> Function(Event)
-
Creates a cookie support handler closure.
-
cookieWith<T>(FutureOr<T> closure(Event event), {String? secret, Hash algorithm = sha256, bool autoSecureSet = true, DateTime? expires, int? maxAge, String? domain, String? path, bool? secure, bool? httpOnly, SameSite? sameSite, bool? partitioned})
→ FutureOr<Response> Function(Event)
-
Wrap a handle closure with cookies.