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

Method set_header

dlib/http_client/http_client.cpp:116–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114// ----------------------------------------------------------------------------------------
115
116 void http_client::set_header(const std::string& header_name, long header_value)
117 {
118 char buf[21] = { 0 };
119#ifdef __WXMSW__
120 ::ltoa(header_value, buf, 10);
121#else
122 snprintf(buf, sizeof(buf), "%ld", header_value);
123#endif
124 set_header(header_name, buf);
125 }
126
127// ----------------------------------------------------------------------------------------
128

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected