write method

  1. @override
void write (
  1. Context ctx,
  2. String session
)
override

Writes session data to header named by name

Implementation

@override

/// Writes session data to header named by [name]
void write(Context ctx, String session) {
  if (ctx.response == null) return;

  ctx.response.headers.set(name, session);
}