bref
API 2014 of the Zia HTTP server.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
/Users/giersc_v/projets/zia/api/include/bref/HttpResponse.h
Go to the documentation of this file.
00001 
00010 #ifndef BREF_API_HTTPRESPONSE_H_
00011 #define BREF_API_HTTPRESPONSE_H_
00012 
00013 #include "HttpConstants.h"
00014 #include "HttpHeader.h"
00015 #include "Version.h"
00016 #include "Buffer.h"
00017 #include "detail/BrefDLL.h"
00018 
00019 #include <deque>
00020 
00021 namespace bref {
00022 
00029 class BREF_DLL HttpResponse : public HttpHeader
00030 {
00031 private:
00035   Version            version_;
00036 
00041   status_codes::Type statusCode_;
00042 
00047   std::string        reason_;
00048 
00049 public:
00053   HttpResponse();
00054 
00058   ~HttpResponse();
00059 
00067   const Version & getVersion() const;
00068 
00076   status_codes::Type getStatus() const;
00077 
00085   const std::string & getReason() const;
00086 
00095   Buffer getRawData() const;
00096 
00104   void setVersion(const Version & version);
00105 
00113   void setStatus(status_codes::Type type);
00114 
00122   void setReason(const std::string & reason);
00123 };
00124 
00125 } // ! bref
00126 
00127 #endif /* !BREF_API_HTTPRESPONSE_H_ */