get method
get the cookie to response in http response
cookie.get();
Implementation
String get() {
String val =
encrypt ? AESEncryptor.encode(value, Dox().config.appKey) : value;
Cookie cookie = Cookie(key, val);
cookie.maxAge = maxAge.inMilliseconds;
cookie.path = path;
cookie.domain = domain;
cookie.httpOnly = httpOnly;
cookie.secure = secure;
cookie.expires = expires;
return cookie.toString();
}