7 #ifndef HTTP_RESPONSE_H 8 #define HTTP_RESPONSE_H 14 #include <boost/lexical_cast.hpp> 15 #include <boost/shared_ptr.hpp> 140 virtual void create();
147 virtual void finalize();
150 virtual void reset();
156 std::string getStatusPhrase()
const;
159 virtual std::string getBody()
const;
188 static uint16_t statusCodeToNumber(
const HttpStatusCode& status_code);
194 static std::string statusCodeToString(
const HttpStatusCode& status_code);
197 std::string toBriefString()
const;
203 virtual std::string toString()
const;
211 virtual std::string getDateHeaderValue()
const;
static const CallSetGenericBody & no()
Returns encapsulated false.
boost::shared_ptr< const HttpResponse > ConstHttpResponsePtr
Pointer to the const HttpResponse object.
Generic exception thrown by HttpMessage class.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
CallSetGenericBody(const bool set)
Constructor.
HttpResponseContextPtr context_
Pointer to the HttpResponseContext holding parsed data.
Base class for HttpRequest and HttpResponse.
Represents HTTP response message.
boost::shared_ptr< HttpResponse > HttpResponsePtr
Pointer to the HttpResponse object.
HttpResponseError(const char *file, size_t line, const char *what)
boost::shared_ptr< const Element > ConstElementPtr
int version()
returns Kea hooks version.
static const CallSetGenericBody & yes()
Returns encapsulated true.
Generic exception thrown by HttpResponse class.
const HttpResponseContextPtr & context() const
Returns pointer to the HttpResponseContext.
Defines the logger used by the top-level component of kea-lfc.
boost::shared_ptr< HttpResponseContext > HttpResponseContextPtr
Pointer to the HttpResponseContext.
bool set_
A storage for the boolean flag.
Encapsulates the boolean value indicating if the HttpResponse constructor should call its setGenericB...
HttpStatusCode
HTTP status codes (cf RFC 2068)