uri: add path-query-fragment accessor
This commit is contained in:
parent
a88fb9809d
commit
19d4ce61da
8
uri.hpp
8
uri.hpp
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user