Files
sdk/tests/corelib
Lasse R.H. Nielsen b2f0b8d083 Accept IPvFuture syntax in Uri.
The RFC 3986 grammar for `[...]` addresses accepts
IPv6 addresses  and IPvFuture addresses, where the latter
have the form `'v' <hexDigit>+ '.' (<unreserved>|<sub-delim>|':')+`.

This allows the IPvFuture syntax, with no interpretation,
as the `host` of a `Uri`.

For now, the `Uri(host: ...)` constructor argument only allows
IPvFuture addresses that are already wrapped in `[...]` brackets,
and the `Uri.host` gette returns IPvFuture addresses including
brackets.
The `Uri(host:...)` still allows unbracketed IPv6 addresses
(distinguished from plain host-names by containing a `:`),
and `Uri.host` returns IPv6 addresses without brackets.
`Uri.parse` only accept IPv6 and IPvFuture in brackets.
(Only IPv6 can have a zone.)

Fixes #60483.

CoreLibraryReviewExempt: Local implementation only, no API.
Bug: https://dartbug.com/60483
Change-Id: Id369ba1316b34f443edfe5b0f56864c32beddccc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/421081
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
2025-04-09 03:56:37 -07:00
..
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2023-03-09 15:14:32 +00:00
2023-03-09 15:14:32 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2022-12-19 12:56:47 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-06-07 17:58:32 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00
2024-11-14 13:04:51 +00:00