From 19d4ce61da8c21b075424b73c5c5ccc1a91bf5d5 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 16 Feb 2022 14:09:58 +1000 Subject: [PATCH] uri: add path-query-fragment accessor --- uri.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uri.hpp b/uri.hpp index 2b4deb85..c88c7ccf 100644 --- a/uri.hpp +++ b/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);