Lines Matching refs:url
129 // https://url.spec.whatwg.org/#forbidden-domain-code-point
1204 * @see https://url.spec.whatwg.org/#url-parsing
1372 * @see https://url.spec.whatwg.org/#url-miscellaneous
1384 * @see https://url.spec.whatwg.org/#url-miscellaneous
1392 * @see https://url.spec.whatwg.org/#special-scheme
1434 * ada::url and ada::url_aggregator.
1471 * @see https://url.spec.whatwg.org/#concept-url-origin
1493 * Get the default port if the url's scheme has one, returns 0 otherwise.
1506 * @see https://url.spec.whatwg.org/#host-parsing
1557 * This function is used to prune a fragment from a url, and returning the
1574 * @see https://url.spec.whatwg.org/#shorten-a-urls-path
1583 * @see https://url.spec.whatwg.org/#shorten-a-urls-path
1598 * @see https://url.spec.whatwg.org/
1667 * https://url.spec.whatwg.org/#potentially-strip-trailing-spaces-from-an-opaque-path
1671 url_type& url) noexcept;
4289 struct url;
4299 * Parses a url.
4307 extern template url parse_url<url>(std::string_view user_input,
4308 const url* base_url);
4408 * @see https://url.spec.whatwg.org/#concept-ipv6-serializer
4416 * @see https://url.spec.whatwg.org/#concept-ipv4-serializer
4479 * @see https://url.spec.whatwg.org/#concept-domain-to-ascii
4501 * @see https://url.spec.whatwg.org/#forbidden-host-code-point
4507 * @see https://url.spec.whatwg.org/#forbidden-domain-code-point
4516 * @see https://url.spec.whatwg.org/#forbidden-domain-code-point
4524 * @see https://url.spec.whatwg.org/#forbidden-domain-code-point
4634 * @brief Inline functions for url base
4685 * @see https://url.spec.whatwg.org/#concept-url-origin
4693 * @see https://url.spec.whatwg.org/#dom-url-href
4694 * @see https://url.spec.whatwg.org/#concept-url-serializer
4701 * @see https://url.spec.whatwg.org/#dom-url-username
4708 * @see https://url.spec.whatwg.org/#dom-url-password
4715 * @see https://url.spec.whatwg.org/#dom-url-port
4722 * @see https://url.spec.whatwg.org/#dom-url-hash
4726 * Return url's host, serialized, followed by U+003A (:) and url's port,
4731 * @see https://url.spec.whatwg.org/#dom-url-host
4739 * @see https://url.spec.whatwg.org/#dom-url-hostname
4747 * @see https://url.spec.whatwg.org/#dom-url-pathname
4754 * @see https://url.spec.whatwg.org/#dom-url-pathname
4761 * @see https://url.spec.whatwg.org/#dom-url-search
4769 * @see https://url.spec.whatwg.org/#dom-url-protocol
4793 * Inspired after servo/url
4798 * https://github.com/servo/rust-url/blob/b65a45515c10713f6d212e6726719a020203cc98/url/src/quirks.rs#L31
4843 ada::url_aggregator>(ada::url_aggregator &url) noexcept;
4874 * @see https://url.spec.whatwg.org/#concept-ipv4-parser
4880 * @see https://url.spec.whatwg.org/#concept-ipv6-parser
4886 * @see https://url.spec.whatwg.org/#concept-opaque-host-parser
4942 inline std::ostream &operator<<(std::ostream &out, const ada::url &u);
5007 * https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
5057 /* begin file include/ada/url.h */
5059 * @file url.h
5080 * Unlike the url_aggregator, the ada::url represents the different components
5085 * @see https://url.spec.whatwg.org/#url-representation
5087 struct url : url_base {
5088 url() = default;
5089 url(const url &u) = default;
5090 url(url &&u) noexcept = default;
5091 url &operator=(url &&u) noexcept = default;
5092 url &operator=(const url &u) = default;
5093 ~url() override = default;
5157 * @see https://url.spec.whatwg.org/#dom-url-href
5158 * @see https://url.spec.whatwg.org/#concept-url-serializer
5166 * @see https://url.spec.whatwg.org/#concept-url-origin
5174 * @see https://url.spec.whatwg.org/#dom-url-protocol
5179 * Return url's host, serialized, followed by U+003A (:) and url's port,
5183 * @see https://url.spec.whatwg.org/#dom-url-host
5191 * @see https://url.spec.whatwg.org/#dom-url-hostname
5199 * @see https://url.spec.whatwg.org/#dom-url-pathname
5207 * @see https://url.spec.whatwg.org/#dom-url-pathname
5214 * @see https://url.spec.whatwg.org/#dom-url-search
5221 * @see https://url.spec.whatwg.org/#dom-url-username
5227 * @see https://url.spec.whatwg.org/#dom-url-username
5233 * @see https://url.spec.whatwg.org/#dom-url-password
5239 * @see https://url.spec.whatwg.org/#dom-url-port
5245 * @see https://url.spec.whatwg.org/#dom-url-hash
5251 * @see https://url.spec.whatwg.org/#dom-url-search
5257 * @see https://url.spec.whatwg.org/#dom-url-search
5263 * @see https://url.spec.whatwg.org/#dom-url-host
5269 * @see https://url.spec.whatwg.org/#dom-url-hostname
5275 * @see https://url.spec.whatwg.org/#dom-url-protocol
5280 * @see https://url.spec.whatwg.org/#dom-url-href
5287 * @see https://url.spec.whatwg.org/#dom-url-password
5294 * @see https://url.spec.whatwg.org/#dom-url-port
5301 * @see https://url.spec.whatwg.org/#dom-url-hash
5325 * Inspired after servo/url
5330 * https://github.com/servo/rust-url/blob/b65a45515c10713f6d212e6726719a020203cc98/url/src/quirks.rs#L31
5340 friend ada::url ada::parser::parse_url<ada::url>(std::string_view,
5341 const ada::url *);
5344 friend void ada::helpers::strip_trailing_spaces_from_opaque_path<ada::url>(
5345 ada::url &url) noexcept;
5361 * @see https://url.spec.whatwg.org/#hostname-state
5368 * @see https://url.spec.whatwg.org/#concept-ipv4-parser
5374 * @see https://url.spec.whatwg.org/#concept-ipv6-parser
5380 * @see https://url.spec.whatwg.org/#concept-opaque-host-parser
5391 * typically do not need to store them in each url instance.
5410 * provided url.
5412 inline void copy_scheme(const ada::url &u);
5420 * @see https://url.spec.whatwg.org/#host-parsing
5439 * @see https://url.spec.whatwg.org/
5452 * provided url.
5454 inline void copy_scheme(ada::url &&u) noexcept;
5456 }; // struct url
5458 inline std::ostream &operator<<(std::ostream &out, const ada::url &u);
5462 /* end file include/ada/url.h */
5489 /* begin file include/ada/url-inl.h */
5491 * @file url-inl.h
5505 [[nodiscard]] ada_really_inline bool url::has_credentials() const noexcept {
5508 [[nodiscard]] ada_really_inline bool url::has_port() const noexcept {
5511 [[nodiscard]] inline bool url::cannot_have_credentials_or_port() const {
5515 [[nodiscard]] inline bool url::has_empty_hostname() const noexcept {
5521 [[nodiscard]] inline bool url::has_hostname() const noexcept {
5524 inline std::ostream &operator<<(std::ostream &out, const ada::url &u) {
5528 [[nodiscard]] size_t url::get_pathname_length() const noexcept {
5532 [[nodiscard]] ada_really_inline ada::url_components url::get_components()
5571 // If url's host is null, url does not have an opaque path, url's path's
5572 // size is greater than 1, and url's path[0] is the empty string, then
5604 inline void url::update_base_hostname(std::string_view input) { host = input; }
5606 inline void url::update_unencoded_base_hash(std::string_view input) {
5612 inline void url::update_base_search(std::string_view input,
5617 inline void url::update_base_search(std::optional<std::string> input) {
5621 inline void url::update_base_pathname(const std::string_view input) {
5625 inline void url::update_base_username(const std::string_view input) {
5629 inline void url::update_base_password(const std::string_view input) {
5633 inline void url::update_base_port(std::optional<uint16_t> input) {
5637 inline void url::clear_pathname() { path.clear(); }
5639 inline void url::clear_search() { query = std::nullopt; }
5641 [[nodiscard]] inline bool url::has_hash() const noexcept {
5645 [[nodiscard]] inline bool url::has_search() const noexcept {
5649 inline void url::set_protocol_as_file() { type = ada::scheme::type::FILE; }
5651 inline void url::set_scheme(std::string &&new_scheme) noexcept {
5659 inline void url::copy_scheme(ada::url &&u) noexcept {
5664 inline void url::copy_scheme(const ada::url &u) {
5669 [[nodiscard]] ada_really_inline std::string url::get_href() const noexcept {
5686 // If url's host is null, url does not have an opaque path, url's path's
5687 // size is greater than 1, and url's path[0] is the empty string, then
5701 ada_really_inline size_t url::parse_port(std::string_view view,
5735 /* end file include/ada/url-inl.h */
5739 * @brief Inline functions for url aggregator
6031 // If url's host is null, url does not have an opaque path, url's path's
6568 // If url's host is null, url does not have an opaque path, url's path's size
6569 // is greater than 1, and url's path[0] is the empty string, then append
6713 * @see https://url.spec.whatwg.org/#interface-urlsearchparams
6720 * https://github.com/web-platform-tests/wpt/blob/master/url/urlsearchparams-constructor.any.js
6733 * @see https://url.spec.whatwg.org/#dom-urlsearchparams-append
6738 * @see https://url.spec.whatwg.org/#dom-urlsearchparams-delete
6744 * @see https://url.spec.whatwg.org/#dom-urlsearchparams-get
6749 * @see https://url.spec.whatwg.org/#dom-urlsearchparams-getall
6754 * @see https://url.spec.whatwg.org/#dom-urlsearchparams-has
6760 * @see https://url.spec.whatwg.org/#dom-urlsearchparams-set
6765 * @see https://url.spec.whatwg.org/#dom-urlsearchparams-sort
6770 * @see https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
6779 * @see https://url.spec.whatwg.org/#interface-urlsearchparams
6787 * @see https://url.spec.whatwg.org/#interface-urlsearchparams
6796 * @see https://url.spec.whatwg.org/#interface-urlsearchparams
6815 * @see https://url.spec.whatwg.org/#concept-urlencoded-parser
7032 * @see https://url.spec.whatwg.org/#interface-urlsearchparams
7039 * @see https://url.spec.whatwg.org/#interface-urlsearchparams
7122 * @param base_url the optional URL input to use as a base url.
7129 extern template ada::result<url> parse<url>(std::string_view input,
7130 const url* base_url);
7137 * @see https://url.spec.whatwg.org/#dom-url-canparse