MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / get_formatted

Method get_formatted

src/cookie.cpp:161–166  ·  view source on GitHub ↗

Implementation of get_formatted method.

Source from the content-addressed store, hash-verified

159
160// Implementation of get_formatted method.
161string 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}

Callers 1

setMethod · 0.45

Calls 1

is_secureMethod · 0.95

Tested by

no test coverage detected