Implementation of get_formatted method.
| 159 | |
| 160 | // Implementation of get_formatted method. |
| 161 | string curl::cookie::get_formatted() NOEXCEPT { |
| 162 | string _secure = this->is_secure() == 1 ? "secure" : ""; |
| 163 | |
| 164 | return "Set-Cookie: "+this->name+"="+this->value+"; expires="+this->datetime.get_formatted() |
| 165 | +"; path="+this->path+"; domain="+this->domain+" "+_secure; |
| 166 | } |