-rw-r--r-- | include/opkele/util.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 | |||
@@ -123,11 +123,21 @@ namespace opkele { | |||
123 | /** | 123 | /** |
124 | * Decode binary data from base64 representation. | 124 | * Decode binary data from base64 representation. |
125 | * @param data base64-encoded data | 125 | * @param data base64-encoded data |
126 | * @param rv container for decoded binary | 126 | * @param rv container for decoded binary |
127 | */ | 127 | */ |
128 | void decode_base64(const string& data,vector<unsigned char>& rv); | 128 | void decode_base64(const string& data,vector<unsigned char>& rv); |
129 | |||
130 | /** | ||
131 | * Normalize http(s) URI according to RFC3986, section 6. URI is | ||
132 | * expected to have scheme: in front of it. | ||
133 | * @param uri URI | ||
134 | * @return normalized URI | ||
135 | * @throw not_implemented in case of non-httpi(s) URI | ||
136 | * @throw bad_input in case of malformed URI | ||
137 | */ | ||
138 | string rfc_3986_normalize_uri(const string& uri); | ||
129 | } | 139 | } |
130 | 140 | ||
131 | } | 141 | } |
132 | 142 | ||
133 | #endif /* __OPKELE_UTIL_H */ | 143 | #endif /* __OPKELE_UTIL_H */ |