diff Core/RestApi/RestApiOutput.h @ 339:639272ef7615

answer raw buffers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 16 Jan 2013 15:14:54 +0100
parents 78a8eaa5f30b
children bdd72233b105
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.h	Mon Jan 14 11:35:01 2013 +0100
+++ b/Core/RestApi/RestApiOutput.h	Wed Jan 16 15:14:54 2013 +0100
@@ -70,6 +70,10 @@
     void AnswerBuffer(const std::string& buffer,
                       const std::string& contentType);
 
+    void AnswerBuffer(const void* buffer,
+                      size_t length,
+                      const std::string& contentType);
+
     void SignalError(Orthanc_HttpStatus status);
 
     void Redirect(const std::string& path);