From 43d47575878e4eaf3c8da84bf609fcd0bde595fb Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 09 May 2005 11:00:28 +0000 Subject: 1. http headers container added 2. preliminary cookies support 3. absolutely useless http_quoted_string and http_quote utility functions added --- (limited to 'include/kingate/util.h') diff --git a/include/kingate/util.h b/include/kingate/util.h index 6024ccf..3fd96f6 100644 --- a/include/kingate/util.h +++ b/include/kingate/util.h @@ -28,6 +28,19 @@ namespace kingate { string url_decode(const string& str); /** + * Quote string for use in HTTP header. + * @param str the string to quote. + * @return the quoted string. + */ + string http_quoted_string(const string& str); + /** + * Quote string for use in HTTP header if necessary. + * @param str the string to quote. + * @return the quoted string or token left as is. + */ + string http_quote(const string& str); + + /** * deprecated alias to url_encode. * @see url_encode */ -- cgit v0.9.0.2