Mercurial > archived > louis > epitech > zia-api
changeset 90:f14cc8f23f4f
Add dump method, Fix #18
author | daedric <d43dr1c@gmail.com> |
---|---|
date | Mon, 12 Apr 2010 17:03:26 +0200 |
parents | 590263f68bd8 |
children | 50ddfda35426 |
files | include/http/IRequest.hpp include/http/IResponse.hpp |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }; }; };
--- 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; }; }; };