Ada 3.4.4
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
url_components.h
Go to the documentation of this file.
1
9#ifndef ADA_URL_COMPONENTS_H
10#define ADA_URL_COMPONENTS_H
11
12namespace ada {
13
41 constexpr static uint32_t omitted = uint32_t(-1);
42
43 url_components() = default;
44 url_components(const url_components &u) = default;
45 url_components(url_components &&u) noexcept = default;
46 url_components &operator=(url_components &&u) noexcept = default;
48 ~url_components() = default;
49
52
58
61
64
67
70
73
76
83
88 [[nodiscard]] std::string to_string() const;
89
90}; // struct url_components
91} // namespace ada
92#endif
Definition ada_idna.h:13
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)
Stores byte offsets for URL components within a buffer.
std::string to_string() const
static constexpr uint32_t omitted
constexpr bool check_offset_consistency() const noexcept
url_components & operator=(url_components &&u) noexcept=default
~url_components()=default
url_components()=default
url_components(url_components &&u) noexcept=default
url_components(const url_components &u)=default
url_components & operator=(const url_components &u)=default