17#include <creos/utils_global.hpp>
20#include <unordered_map>
30std::string CREOS_UTILS_API
url_encode(
const std::string_view& value);
38std::string CREOS_UTILS_API
url_decode(
const std::string_view& value);
46std::string CREOS_UTILS_API
create_query(
const std::unordered_map<std::string, std::string>& parameters);
54std::unordered_map<std::string, std::string> CREOS_UTILS_API
parse_query(
const std::string_view& query);
The main namespace for the CreOS client library.
std::string CREOS_UTILS_API url_decode(const std::string_view &value)
Decodes a string from a URL.
Definition url.cpp:42
std::string CREOS_UTILS_API url_encode(const std::string_view &value)
Encodes a string to be used in a URL.
Definition url.cpp:24
std::unordered_map< std::string, std::string > CREOS_UTILS_API parse_query(const std::string_view &query)
Parses a query string into a map of parameters.
Definition url.cpp:90
std::string CREOS_UTILS_API create_query(const std::unordered_map< std::string, std::string > ¶meters)
Creates a query string from a map of parameters.
Definition url.cpp:74