73 bool set_href(std::string_view input);
74 bool set_host(std::string_view input);
79 bool set_port(std::string_view input);
82 void set_hash(std::string_view input);
95 [[nodiscard]] std::
string get_origin() const noexcept override;
104 [[nodiscard]] constexpr std::string_view
get_href() const noexcept
114 [[nodiscard]] std::string_view
get_username() const noexcept
124 [[nodiscard]] std::string_view
get_password() const noexcept
161 [[nodiscard]] std::string_view
get_hostname() const noexcept
171 [[nodiscard]] constexpr std::string_view
get_pathname() const noexcept
197 [[nodiscard]] std::string_view
get_protocol() const noexcept
233 [[nodiscard]] std::
string to_string() const override;
246 [[nodiscard]] constexpr
bool validate() const noexcept;
258 [[nodiscard]] constexpr
bool has_hostname() const noexcept;
276 [[nodiscard]] constexpr
bool has_port() const noexcept;
282 [[nodiscard]] constexpr
bool has_password() const noexcept;
288 [[nodiscard]] constexpr
bool has_hash() const noexcept override;
294 [[nodiscard]] constexpr
bool has_search() const noexcept override;
324#if ADA_INCLUDE_URL_PATTERN
326 template <url_pattern_regex::regex_concept regex_prov
ider>
327 friend tl::expected<url_pattern<regex_provider>,
errors>
328 parse_url_pattern_impl(
329 std::variant<std::string_view, url_pattern_init> &&input,
330 const std::string_view *base_url,
const url_pattern_options *options);
333 std::string buffer{};
343 inline
void add_authority_slashes_if_needed() noexcept;
349 constexpr
void reserve(uint32_t capacity);
352 std::string_view view,
bool check_trailing_content) noexcept override;
355 return this->parse_port(view,
false);
364 [[nodiscard]]
bool parse_ipv4(std::string_view input,
bool in_place);
370 [[nodiscard]]
bool parse_ipv6(std::string_view input);
376 [[nodiscard]]
bool parse_opaque_host(std::string_view input);
384 [[nodiscard]]
constexpr bool cannot_have_credentials_or_port()
const;
386 template <
bool overr
ide_hostname = false>
387 bool set_host_or_hostname(std::string_view input);
391 inline void update_base_authority(std::string_view base_buffer,
392 const url_components &base);
393 inline void update_unencoded_base_hash(std::string_view input);
394 inline void update_base_hostname(std::string_view input);
395 inline void update_base_search(std::string_view input);
396 inline void update_base_search(std::string_view input,
397 const uint8_t *query_percent_encode_set);
398 inline void update_base_pathname(std::string_view input);
399 inline void update_base_username(std::string_view input);
400 inline void append_base_username(std::string_view input);
401 inline void update_base_password(std::string_view input);
402 inline void append_base_password(std::string_view input);
403 inline void update_base_port(uint32_t input);
404 inline void append_base_pathname(std::string_view input);
405 [[nodiscard]]
inline uint32_t retrieve_base_port()
const;
406 constexpr void clear_hostname();
407 constexpr void clear_password();
408 constexpr void clear_pathname()
override;
409 [[nodiscard]]
constexpr bool has_dash_dot() const noexcept;
410 void delete_dash_dot();
411 inline
void consume_prepared_path(std::string_view input);
412 template <
bool has_state_override = false>
414 std::string_view input);
416 std::string_view input);
417 [[nodiscard]] constexpr
bool has_authority() const noexcept;
418 constexpr
void set_protocol_as_file();
419 inline
void set_scheme(std::string_view new_scheme) noexcept;
424 inline
void set_scheme_from_view_with_colon(
425 std::string_view new_scheme_with_colon) noexcept;
428 inline
void update_host_to_base_host(const std::string_view input) noexcept;