Interest: Added Interest::toUri().
diff --git a/include/ndn-cpp/interest.hpp b/include/ndn-cpp/interest.hpp
index e8a498b..d5d8e49 100644
--- a/include/ndn-cpp/interest.hpp
+++ b/include/ndn-cpp/interest.hpp
@@ -303,6 +303,14 @@
}
/**
+ * Encode the name according to the "NDN URI Scheme". If there are interest selectors, append "?" and
+ * added the selectors as a query string. For example "/test/name?ndn.ChildSelector=1".
+ * @return The URI string.
+ */
+ std::string
+ toUri() const;
+
+ /**
* Set the interestStruct to point to the components in this interest, without copying any memory.
* WARNING: The resulting pointers in interestStruct are invalid after a further use of this object which could reallocate memory.
* @param interestStruct a C ndn_Interest struct where the name components array is already allocated.