Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 3424:07c3b6044e9d
OrthancPlugins::HttpClient::SetHeaders()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Jun 2019 10:11:52 +0200 |
parents | decbede6e3ad |
children | 00737cd21f40 |
comparison
equal
deleted
inserted
replaced
3423:f5fe6d08f910 | 3424:07c3b6044e9d |
---|---|
876 void SetUrl(const std::string& url) | 876 void SetUrl(const std::string& url) |
877 { | 877 { |
878 url_ = url; | 878 url_ = url; |
879 } | 879 } |
880 | 880 |
881 void SetHeaders(const HttpHeaders& headers) | |
882 { | |
883 headers_ = headers; | |
884 } | |
885 | |
881 void AddHeader(const std::string& key, | 886 void AddHeader(const std::string& key, |
882 const std::string& value) | 887 const std::string& value) |
883 { | 888 { |
884 headers_[key] = value; | 889 headers_[key] = value; |
885 } | 890 } |