diff Core/HttpServer/HttpOutput.h @ 1137:d9c27f9f1a51

OrthancPluginSetHttpHeader
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Sep 2014 17:33:46 +0200
parents da56a7916e8a
children 6e7e5ed91c2d
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.h	Tue Sep 09 16:47:04 2014 +0200
+++ b/Core/HttpServer/HttpOutput.h	Tue Sep 09 17:33:46 2014 +0200
@@ -123,6 +123,12 @@
       stateMachine_.SetCookie(cookie, value);
     }
 
+    void AddHeader(const std::string& key,
+                   const std::string& value)
+    {
+      stateMachine_.AddHeader(key, value);
+    }
+
     void SendBody(const void* buffer, size_t length);
 
     void SendBody(const std::string& str);