Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.h Tue Dec 08 15:53:35 2015 +0100 +++ b/Core/HttpServer/HttpOutput.h Wed Dec 09 09:29:05 2015 +0100 @@ -99,7 +99,9 @@ void StartMultipart(const std::string& subType, const std::string& contentType); - void SendMultipartItem(const void* item, size_t length); + void SendMultipartItem(const void* item, + size_t length, + const std::map<std::string, std::string>& headers); void CloseMultipart(); @@ -202,11 +204,11 @@ stateMachine_.StartMultipart(subType, contentType); } - void SendMultipartItem(const std::string& item); - - void SendMultipartItem(const void* item, size_t size) + void SendMultipartItem(const void* item, + size_t size, + const std::map<std::string, std::string>& headers) { - stateMachine_.SendMultipartItem(item, size); + stateMachine_.SendMultipartItem(item, size, headers); } void CloseMultipart()