| 232 | } |
| 233 | |
| 234 | bool Cookie::IsExpired() const { |
| 235 | // Check if current-time is less than creation time. |
| 236 | return (has_expiry_ && (expiration_time_ <= std::chrono::system_clock::now())); |
| 237 | } |
| 238 | |
| 239 | std::string Cookie::AsCookieString() const { |
| 240 | // Return the string for the cookie as it would appear in a Cookie header. |
no outgoing calls