11#include "ada/expected.h"
21template <url_pattern_regex::regex_concept regex_prov
ider>
24enum class errors : uint8_t;
38template <
typename result_type = url_aggregator>
39result_type
parse_url(std::string_view user_input,
40 const result_type* base_url =
nullptr);
47template <
typename result_type = url_aggregator,
bool store_values = true>
49 const result_type* base_url =
nullptr);
56template <url_pattern_regex::regex_concept regex_prov
ider>
58 std::variant<std::string_view, url_pattern_init> input,
Includes the definitions for supported parsers.
template url parse_url< url >(std::string_view user_input, const url *base_url)
result_type parse_url(std::string_view user_input, const result_type *base_url=nullptr)
tl::expected< url_pattern< regex_provider >, errors > parse_url_pattern_impl(std::variant< std::string_view, url_pattern_init > input, const std::string_view *base_url, const url_pattern_options *options)
template url parse_url_impl< url >(std::string_view user_input, const url *base_url)
template url_aggregator parse_url_impl< url_aggregator >(std::string_view user_input, const url_aggregator *base_url)
template url_aggregator parse_url< url_aggregator >(std::string_view user_input, const url_aggregator *base_url)
result_type parse_url_impl(std::string_view user_input, const result_type *base_url=nullptr)
Generic URL struct reliant on std::string instantiation.
Declaration for the url_pattern_init implementation.