uri: add path-query-fragment accessor

This commit is contained in:
Danny Robson 2022-02-16 14:09:58 +10:00
parent a88fb9809d
commit 19d4ce61da

View File

@ -100,6 +100,14 @@ namespace cruft {
std::string_view query (void) const& { return get (QUERY); }
std::string_view fragment (void) const& { return get (FRAGMENT); }
std::string_view
pqf (void) const& {
return {
m_views[PATH].begin (),
m_views[FRAGMENT].end ()
};
}
// void clear (component);
void clear_fragment (void);