diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2018-07-02 21:11:01 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2018-07-02 21:11:01 -0700 |
commit | 6974150a2c6b3b4e0fa278b08de8b2647d2c95ed (patch) | |
tree | b36d809b21c95d9659ca17c17504a06ee3fa2080 /include/Uri/Uri.hpp | |
parent | a32396b98cad2abc6c3fbf15a2fe1a2eaa3c8e91 (diff) |
Add NormalizePath method
Diffstat (limited to 'include/Uri/Uri.hpp')
-rw-r--r-- | include/Uri/Uri.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Uri/Uri.hpp b/include/Uri/Uri.hpp index 8be3dd0..afdb631 100644 --- a/include/Uri/Uri.hpp +++ b/include/Uri/Uri.hpp @@ -163,6 +163,14 @@ namespace Uri { */ std::string GetFragment() const; + /** + * This method applies the "remove_dot_segments" routine talked about + * in RFC 3986 (https://tools.ietf.org/html/rfc3986) to the path + * segments of the URI, in order to normalize the path + * (apply and remove "." and ".." segments). + */ + void NormalizePath(); + // Private properties private: /** |