comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3426:00737cd21f40

OrthancPlugins::HttpClient::AddHeaders()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 14 Jun 2019 17:52:36 +0200
parents 8b4169a88039
children caa526bb65cc
comparison
equal deleted inserted replaced
3425:2f6dcb9c8cc1 3426:00737cd21f40
2220 pkcs11_(false), 2220 pkcs11_(false),
2221 chunkedBody_(NULL) 2221 chunkedBody_(NULL)
2222 { 2222 {
2223 } 2223 }
2224 2224
2225
2226 void HttpClient::AddHeaders(const HttpHeaders& headers)
2227 {
2228 for (HttpHeaders::const_iterator it = headers.begin();
2229 it != headers.end(); ++it)
2230 {
2231 headers_[it->first] = it->second;
2232 }
2233 }
2234
2225 2235
2226 void HttpClient::SetCredentials(const std::string& username, 2236 void HttpClient::SetCredentials(const std::string& username,
2227 const std::string& password) 2237 const std::string& password)
2228 { 2238 {
2229 username_ = username; 2239 username_ = username;