# HG changeset patch # User daedric # Date 1271084606 -7200 # Node ID f14cc8f23f4f93a5d2a4bd116e36578be92837b4 # Parent 590263f68bd8a620b432419cfb8a2ee0ce29571e Add dump method, Fix #18 diff -r 590263f68bd8 -r f14cc8f23f4f include/http/IRequest.hpp --- a/include/http/IRequest.hpp Mon Apr 12 16:38:32 2010 +0200 +++ b/include/http/IRequest.hpp Mon Apr 12 17:03:26 2010 +0200 @@ -92,6 +92,12 @@ * @see IHeader */ virtual IHeader & getHeaders(void) = 0; + + /** + * @brief get the request as string + * @return the string which represent the request + */ + virtual std::string dump() const = 0; }; }; }; diff -r 590263f68bd8 -r f14cc8f23f4f include/http/IResponse.hpp --- a/include/http/IResponse.hpp Mon Apr 12 16:38:32 2010 +0200 +++ b/include/http/IResponse.hpp Mon Apr 12 17:03:26 2010 +0200 @@ -94,6 +94,12 @@ * @see IHeader */ virtual IHeader & getHeaders(void) = 0; + + /** + * @brief get the response as string + * @return the string which represent the response + */ + virtual std::string dump() const = 0; }; }; };