-rw-r--r-- | include/opkele/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/opkele/util.h b/include/opkele/util.h index 60955e1..fd974a1 100644 --- a/include/opkele/util.h +++ b/include/opkele/util.h | |||
@@ -75,24 +75,26 @@ namespace opkele { | |||
75 | void decode_base64(const string& data,vector<unsigned char>& rv); | 75 | void decode_base64(const string& data,vector<unsigned char>& rv); |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * Normalize http(s) URI according to RFC3986, section 6. URI is | 78 | * Normalize http(s) URI according to RFC3986, section 6. URI is |
79 | * expected to have scheme: in front of it. | 79 | * expected to have scheme: in front of it. |
80 | * @param uri URI | 80 | * @param uri URI |
81 | * @return normalized URI | 81 | * @return normalized URI |
82 | * @throw not_implemented in case of non-httpi(s) URI | 82 | * @throw not_implemented in case of non-httpi(s) URI |
83 | * @throw bad_input in case of malformed URI | 83 | * @throw bad_input in case of malformed URI |
84 | */ | 84 | */ |
85 | string rfc_3986_normalize_uri(const string& uri); | 85 | string rfc_3986_normalize_uri(const string& uri); |
86 | 86 | ||
87 | string normalize_identifier(const string& usi,bool strip_fragment); | ||
88 | |||
87 | /** | 89 | /** |
88 | * Match URI against realm | 90 | * Match URI against realm |
89 | * @param uri URI to match | 91 | * @param uri URI to match |
90 | * @param realm realm to match against | 92 | * @param realm realm to match against |
91 | * @return true if URI matches realm | 93 | * @return true if URI matches realm |
92 | */ | 94 | */ |
93 | bool uri_matches_realm(const string& uri,const string& realm); | 95 | bool uri_matches_realm(const string& uri,const string& realm); |
94 | 96 | ||
95 | /** | 97 | /** |
96 | * Strip fragment part from URI | 98 | * Strip fragment part from URI |
97 | * @param uri input/output parameter containing the URI | 99 | * @param uri input/output parameter containing the URI |
98 | * @return reference to uri | 100 | * @return reference to uri |