From 70f85314fcd188a182aae3a4291c0cd95ba16ee2 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 23 Nov 2007 22:18:54 +0000 Subject: added URI normalization procedure to opkele::util as specified in RFC3896, section 6 Signed-off-by: Michael Krelin --- (limited to 'include') diff --git a/include/opkele/util.h b/include/opkele/util.h index edc1859..085c9e6 100644 --- a/include/opkele/util.h +++ b/include/opkele/util.h @@ -126,6 +126,16 @@ namespace opkele { * @param rv container for decoded binary */ void decode_base64(const string& data,vector& rv); + + /** + * Normalize http(s) URI according to RFC3986, section 6. URI is + * expected to have scheme: in front of it. + * @param uri URI + * @return normalized URI + * @throw not_implemented in case of non-httpi(s) URI + * @throw bad_input in case of malformed URI + */ + string rfc_3986_normalize_uri(const string& uri); } } -- cgit v0.9.0.2