![]() |
Kurlyk
|
Provides utility functions for parsing and validating URLs and their components. More...
Go to the source code of this file.
Namespaces | |
namespace | kurlyk |
Primary namespace for the Kurlyk library, encompassing initialization, request management, and utility functions. | |
namespace | kurlyk::utils |
Macros | |
#define | _KURLYK_UTILS_URL_UTILS_HPP_INCLUDED |
Functions | |
std::string | kurlyk::utils::extract_protocol (const std::string &url) |
Extracts the protocol from a URL. | |
std::string | kurlyk::utils::remove_ws_prefix (const std::string &url) |
Removes the first occurrence of "wss://" or "ws://" from the given URL. | |
bool | kurlyk::utils::is_valid_scheme (const std::string &url, const std::string &scheme) |
Checks if a given URL starts with a specified scheme. | |
bool | kurlyk::utils::is_valid_domain (const std::string &domain) |
Validates if a domain name is correctly formatted. | |
bool | kurlyk::utils::is_valid_path (const std::string &path) |
Checks if a path is correctly formatted. | |
bool | kurlyk::utils::is_valid_query (const std::string &query) |
Validates if a query string is correctly formatted. | |
bool | kurlyk::utils::is_valid_url (const std::string &url, const std::vector< std::string > &protocol) |
Validates if a URL is correctly formatted. | |
Provides utility functions for parsing and validating URLs and their components.
Definition in file url_utils.hpp.
#define _KURLYK_UTILS_URL_UTILS_HPP_INCLUDED |
Definition at line 3 of file url_utils.hpp.