comparison 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
comparison
equal deleted inserted replaced
329:f579d50fdf8f 330:78a8eaa5f30b
42 class RestApiOutput 42 class RestApiOutput
43 { 43 {
44 private: 44 private:
45 HttpOutput& output_; 45 HttpOutput& output_;
46 bool alreadySent_; 46 bool alreadySent_;
47 HttpHandler::Arguments cookies_;
47 48
48 void CheckStatus(); 49 void CheckStatus();
49 50
50 public: 51 public:
51 RestApiOutput(HttpOutput& output); 52 RestApiOutput(HttpOutput& output);
70 const std::string& contentType); 71 const std::string& contentType);
71 72
72 void SignalError(Orthanc_HttpStatus status); 73 void SignalError(Orthanc_HttpStatus status);
73 74
74 void Redirect(const std::string& path); 75 void Redirect(const std::string& path);
76
77 void SetCookie(const std::string& name,
78 const std::string& value,
79 unsigned int maxAge = 0);
80
81 void ResetCookie(const std::string& name);
75 }; 82 };
76 } 83 }