aboutsummaryrefslogtreecommitdiff
path: root/include/Uri
diff options
context:
space:
mode:
authorRichard Walters <rwalters@digitalstirling.com>2018-07-02 23:15:11 -0700
committerRichard Walters <rwalters@digitalstirling.com>2018-07-02 23:15:11 -0700
commiteed4afa6005e7359c0807d35f0e2fc80af544c0c (patch)
treeba2c700751df1c3524bbf797a92585bd982701c1 /include/Uri
parente6d8e650b591e1e495822de356661e37a729f745 (diff)
Add reference resolution and attempt to fix path normalization
Path normalization is hideously broken for now.
Diffstat (limited to 'include/Uri')
-rw-r--r--include/Uri/Uri.hpp17
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:
/**