diff Core/RestApi/RestApiOutput.h @ 330:78a8eaa5f30b

cookies
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Jan 2013 11:41:13 +0100
parents 4031f73fe0e4
children 639272ef7615
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.h	Tue Jan 08 14:56:10 2013 +0100
+++ b/Core/RestApi/RestApiOutput.h	Wed Jan 09 11:41:13 2013 +0100
@@ -44,6 +44,7 @@
   private:
     HttpOutput& output_;
     bool alreadySent_;
+    HttpHandler::Arguments cookies_;
 
     void CheckStatus();
 
@@ -72,5 +73,11 @@
     void SignalError(Orthanc_HttpStatus status);
 
     void Redirect(const std::string& path);
+
+    void SetCookie(const std::string& name,
+                   const std::string& value,
+                   unsigned int maxAge = 0);
+
+    void ResetCookie(const std::string& name);
   };
 }