comparison Core/HttpServer/HttpOutput.h @ 1882:5cf2bd0abfa2

OrthancPluginSendMultipartItem2 for DICOMweb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Dec 2015 09:29:05 +0100
parents 1558b3226b18
children b1291df2f780
comparison
equal deleted inserted replaced
1881:d2efbe076653 1882:5cf2bd0abfa2
97 void SendBody(const void* buffer, size_t length); 97 void SendBody(const void* buffer, size_t length);
98 98
99 void StartMultipart(const std::string& subType, 99 void StartMultipart(const std::string& subType,
100 const std::string& contentType); 100 const std::string& contentType);
101 101
102 void SendMultipartItem(const void* item, size_t length); 102 void SendMultipartItem(const void* item,
103 size_t length,
104 const std::map<std::string, std::string>& headers);
103 105
104 void CloseMultipart(); 106 void CloseMultipart();
105 107
106 void CloseBody(); 108 void CloseBody();
107 109
200 const std::string& contentType) 202 const std::string& contentType)
201 { 203 {
202 stateMachine_.StartMultipart(subType, contentType); 204 stateMachine_.StartMultipart(subType, contentType);
203 } 205 }
204 206
205 void SendMultipartItem(const std::string& item); 207 void SendMultipartItem(const void* item,
206 208 size_t size,
207 void SendMultipartItem(const void* item, size_t size) 209 const std::map<std::string, std::string>& headers)
208 { 210 {
209 stateMachine_.SendMultipartItem(item, size); 211 stateMachine_.SendMultipartItem(item, size, headers);
210 } 212 }
211 213
212 void CloseMultipart() 214 void CloseMultipart()
213 { 215 {
214 stateMachine_.CloseMultipart(); 216 stateMachine_.CloseMultipart();