comparison Framework/Oracle/OrthancRestApiCommand.h @ 979:18d53a8b41b7

HttpCommand
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Sep 2019 17:52:28 +0200
parents a68cd7ae8838
children 4383382db01d 2d8ab34c8c91
comparison
equal deleted inserted replaced
978:0e21ecafcc23 979:18d53a8b41b7
98 void SwapBody(std::string& body) 98 void SwapBody(std::string& body)
99 { 99 {
100 body_.swap(body); 100 body_.swap(body);
101 } 101 }
102 102
103 void SetHttpHeaders(const HttpHeaders& headers)
104 {
105 headers_ = headers;
106 }
107
103 void SetHttpHeader(const std::string& key, 108 void SetHttpHeader(const std::string& key,
104 const std::string& value) 109 const std::string& value)
105 { 110 {
106 headers_[key] = value; 111 headers_[key] = value;
107 } 112 }