aboutsummaryrefslogtreecommitdiff
path: root/include/Uri/Uri.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Uri/Uri.hpp')
-rw-r--r--include/Uri/Uri.hpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/Uri/Uri.hpp b/include/Uri/Uri.hpp
index 7074990..f531d09 100644
--- a/include/Uri/Uri.hpp
+++ b/include/Uri/Uri.hpp
@@ -164,6 +164,16 @@ namespace Uri {
bool ContainsRelativePath() const;
/**
+ * This method returns an indication of whether or not the
+ * URI includes a query.
+ *
+ * @return
+ * An indication of whether or not the
+ * URI includes a query is returned.
+ */
+ bool HasQuery() const;
+
+ /**
* This method returns the "query" element of the URI,
* if it has one.
*
@@ -176,6 +186,16 @@ namespace Uri {
std::string GetQuery() const;
/**
+ * This method returns an indication of whether or not the
+ * URI includes a fragment.
+ *
+ * @return
+ * An indication of whether or not the
+ * URI includes a fragment is returned.
+ */
+ bool HasFragment() const;
+
+ /**
* This method returns the "fragment" element of the URI,
* if it has one.
*
@@ -267,6 +287,11 @@ namespace Uri {
void SetPath(const std::vector< std::string >& path);
/**
+ * This method removes the query element from the URI.
+ */
+ void ClearQuery();
+
+ /**
* This method sets the query element of the URI.
*
* @param[in] query
@@ -275,6 +300,11 @@ namespace Uri {
void SetQuery(const std::string& query);
/**
+ * This method removes the fragment element from the URI.
+ */
+ void ClearFragment();
+
+ /**
* This method sets the fragment element of the URI.
*
* @param[in] fragment