MCPcopy Create free account
hub / github.com/davisking/dlib / set_cookie

Method set_cookie

dlib/http_client/http_client.cpp:151–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149// ----------------------------------------------------------------------------------------
150
151 void http_client::set_cookie(const std::string& cookie_name, long cookie_value)
152 {
153 char buf[21] = { 0 };
154#ifdef __WXMSW__
155 ::ltoa(cookie_value, buf, 10);
156#else
157 snprintf(buf, sizeof(buf), "%ld", cookie_value);
158#endif
159 set_cookie(cookie_name, buf);
160 }
161
162// ----------------------------------------------------------------------------------------
163

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected