diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Uri/Uri.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/Uri/Uri.hpp b/include/Uri/Uri.hpp index 43e4ac3..1288a52 100644 --- a/include/Uri/Uri.hpp +++ b/include/Uri/Uri.hpp @@ -195,6 +195,23 @@ namespace Uri { */ void NormalizePath(); + /** + * This method resolves the given relative reference, based on the given + * base URI, returning the resolved target URI. + * + * @param[in] relativeReference + * This describes how to get to the target starting at the base. + * + * @return + * The resolved target URI is returned. + * + * @note + * It only makes sense to call this method on an absolute URI + * (in which I mean, the base URI should be absolute, + * as in IsRelativeReference() should return false). + */ + Uri Resolve(const Uri& relativeReference) const; + // Private properties private: /** |