addCookies method

  1. @override
void addCookies(
  1. ServerTransportStream response,
  2. Iterable<Cookie> cookies
)
override

Implementation

@override
void addCookies(ServerTransportStream response, Iterable<Cookie> cookies) {
  var headers =
      cookies.map((cookie) => Header.ascii('set-cookie', cookie.toString()));
  response.sendHeaders(headers.toList());
}