8#include <absl/container/flat_hash_map.h>
16 URL(
const std::string &
url);
67 return H::combine(std::move(
h),
url.getFullPath());
75struct std::formatter<
dcn::http::URL> : std::formatter<std::string> {
77 return formatter<string>::format(
URL & operator=(URL &&)=default
bool operator==(const URL &other) const
Definition url.cpp:21
std::string getPathInfo() const
Returns the path info of the URL.
Definition url.cpp:52
std::string getQuery() const
Returns the query string of the URL.
Definition url.cpp:31
URL & operator=(const URL &)=default
std::string getPathModule() const
Returns the path module of the URL.
Definition url.cpp:42
std::string getFullPath() const
Returns the full path of the URL, including the query string.
Definition url.cpp:26
H AbslHashValue(H h, const URL &url)
Combines hash values for a RouteKey object.
Definition url.hpp:66
std::vector< std::string > splitPathSegments(const std::string path)
Definition url.cpp:65
absl::flat_hash_map< std::string, std::string > splitQuerySegments(const std::string &query)
Definition url.cpp:86
Definition decentralised_art.hpp:30