33 bool set_href(std::string_view input);
34 bool set_host(std::string_view input);
39 bool set_port(std::string_view input);
42 void set_hash(std::string_view input);
51 [[nodiscard]] std::
string get_origin() const noexcept override;
60 [[nodiscard]] constexpr std::string_view
get_href() const noexcept
68 [[nodiscard]] std::string_view
get_username() const noexcept
76 [[nodiscard]] std::string_view
get_password() const noexcept
108 [[nodiscard]] std::string_view
get_hostname() const noexcept
117 [[nodiscard]] constexpr std::string_view
get_pathname() const noexcept
140 [[nodiscard]] std::string_view
get_protocol() const noexcept
176 [[nodiscard]] std::
string to_string() const override;
187 [[nodiscard]] constexpr
bool validate() const noexcept;
192 [[nodiscard]] constexpr
bool has_hostname() const noexcept;
198 [[nodiscard]] constexpr
bool has_port() const noexcept;
200 [[nodiscard]] constexpr
bool has_password() const noexcept;
202 [[nodiscard]] constexpr
bool has_hash() const noexcept override;
204 [[nodiscard]] constexpr
bool has_search() const noexcept override;
221 std::
string buffer{};
231 inline
void add_authority_slashes_if_needed() noexcept;
237 constexpr
void reserve(uint32_t capacity);
240 std::string_view view,
bool check_trailing_content) noexcept override;
243 return this->parse_port(view,
false);
252 [[nodiscard]]
bool parse_ipv4(std::string_view input,
bool in_place);
258 [[nodiscard]]
bool parse_ipv6(std::string_view input);
264 [[nodiscard]]
bool parse_opaque_host(std::string_view input);
272 [[nodiscard]]
constexpr bool cannot_have_credentials_or_port()
const;
274 template <
bool overr
ide_hostname = false>
275 bool set_host_or_hostname(std::string_view input);
279 inline void update_base_authority(std::string_view base_buffer,
281 inline void update_unencoded_base_hash(std::string_view input);
282 inline void update_base_hostname(std::string_view input);
283 inline void update_base_search(std::string_view input);
284 inline void update_base_search(std::string_view input,
285 const uint8_t *query_percent_encode_set);
286 inline void update_base_pathname(std::string_view input);
287 inline void update_base_username(std::string_view input);
288 inline void append_base_username(std::string_view input);
289 inline void update_base_password(std::string_view input);
290 inline void append_base_password(std::string_view input);
291 inline void update_base_port(uint32_t input);
292 inline void append_base_pathname(std::string_view input);
293 [[nodiscard]]
inline uint32_t retrieve_base_port()
const;
294 constexpr void clear_hostname();
295 constexpr void clear_password();
296 constexpr void clear_pathname()
override;
297 [[nodiscard]]
constexpr bool has_dash_dot() const noexcept;
298 void delete_dash_dot();
299 inline
void consume_prepared_path(std::string_view input);
300 template <
bool has_state_override = false>
302 std::string_view input);
304 std::string_view input);
305 [[nodiscard]] constexpr
bool has_authority() const noexcept;
306 constexpr
void set_protocol_as_file();
307 inline
void set_scheme(std::string_view new_scheme) noexcept;
312 inline
void set_scheme_from_view_with_colon(
313 std::string_view new_scheme_with_colon) noexcept;
316 inline
void update_host_to_base_host(const std::string_view input) noexcept;