75 bool set_href(std::string_view input);
76 bool set_host(std::string_view input);
81 bool set_port(std::string_view input);
84 void set_hash(std::string_view input);
97 [[nodiscard]] std::
string get_origin() const override;
106 [[nodiscard]] constexpr std::string_view
get_href() const noexcept
113 [[nodiscard]] constexpr
size_t get_href_size() const noexcept;
176 [[nodiscard]] constexpr std::string_view
get_pathname() const
237 [[nodiscard]] std::
string to_string() const override;
250 [[nodiscard]] constexpr
bool validate() const noexcept;
262 [[nodiscard]] constexpr
bool has_hostname() const noexcept;
280 [[nodiscard]] constexpr
bool has_port() const noexcept;
286 [[nodiscard]] constexpr
bool has_password() const noexcept;
292 [[nodiscard]] constexpr
bool has_hash() const noexcept override;
298 [[nodiscard]] constexpr
bool has_search() const noexcept override;
327 template <class result_type>
329 template <class result_type>
333 uint32_t,
size_t,
size_t,
335 template <class result_type>
340#if ADA_INCLUDE_URL_PATTERN
342 template <url_pattern_regex::regex_concept regex_prov
ider>
343 friend tl::expected<url_pattern<regex_provider>,
errors>
344 parse_url_pattern_impl(
345 std::variant<std::string_view, url_pattern_init>&& input,
346 const std::string_view* base_url,
const url_pattern_options* options);
353 std::string buffer{};
362 inline
void add_authority_slashes_if_needed();
368 constexpr
void reserve(uint32_t capacity);
371 bool check_trailing_content) override;
374 return this->parse_port(view,
false);
383 [[nodiscard]]
bool parse_ipv4(std::string_view input,
bool in_place);
389 [[nodiscard]]
bool parse_ipv6(std::string_view input);
395 [[nodiscard]]
bool parse_opaque_host(std::string_view input);
403 [[nodiscard]]
constexpr bool cannot_have_credentials_or_port()
const;
414 [[nodiscard]]
bool needs_rollback_snapshot(
size_t input_len)
const noexcept;
416 template <
bool overr
ide_hostname = false>
417 bool set_host_or_hostname(std::string_view input);
421 inline void update_base_authority(std::string_view base_buffer,
422 const url_components& base);
423 inline void update_unencoded_base_hash(std::string_view input);
424 inline void update_base_hostname(std::string_view input);
425 inline void update_base_search(std::string_view input);
426 inline void update_base_search(std::string_view input,
427 const uint8_t* query_percent_encode_set);
428 inline void update_base_pathname(std::string_view input);
429 inline void update_base_username(std::string_view input);
430 inline void append_base_username(std::string_view input);
431 inline void update_base_password(std::string_view input);
432 inline void append_base_password(std::string_view input);
433 inline void update_base_port(uint32_t input);
434 inline void append_base_pathname(std::string_view input);
435 [[nodiscard]]
inline uint32_t retrieve_base_port()
const;
436 constexpr void clear_hostname();
437 constexpr void clear_password();
438 constexpr void clear_pathname()
override;
439 [[nodiscard]]
constexpr bool has_dash_dot() const noexcept;
440 void delete_dash_dot();
441 inline
void consume_prepared_path(std::string_view input);
442 template <
bool has_state_override = false>
444 std::string_view input);
446 std::string_view input);
447 [[nodiscard]] constexpr
bool has_authority() const noexcept;
448 constexpr
void set_protocol_as_file();
449 inline
void set_scheme(std::string_view new_scheme);
454 inline
void set_scheme_from_view_with_colon(
455 std::string_view new_scheme_with_colon);
458 inline
void update_host_to_base_host(const std::string_view input);