cookie function
Creates a cookie support handler closure.
Implementation
FutureOr<Response> Function(Event) 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,
}) {
return cookieWith(
next,
secret: secret,
algorithm: algorithm,
autoSecureSet: autoSecureSet,
expires: expires,
maxAge: maxAge,
domain: domain,
path: path,
secure: secure,
httpOnly: httpOnly,
sameSite: sameSite,
partitioned: partitioned,
);
}