mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Update uri.hpp
get query of URI method
This commit is contained in:
@@ -281,6 +281,14 @@ public:
|
||||
s << m_resource;
|
||||
return s.str();
|
||||
}
|
||||
|
||||
std::string const get_query() const {
|
||||
std::size_t found = m_resource.find("?");
|
||||
if (found > 0)
|
||||
return m_resource.substr(found + 1);
|
||||
else
|
||||
return "";
|
||||
}
|
||||
|
||||
// get query?
|
||||
// get fragment
|
||||
|
||||
Reference in New Issue
Block a user