Skip to content

Commit

Permalink
Explicit what is missing on the host part of an uri in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dinosaure committed Sep 25, 2023
1 parent cca065b commit cf8879e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/uri.ml
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,16 @@ module Parser = struct
[ ipv4_address >>| (fun h -> `Ipv4_literal h)
; ipv6_address >>| (fun h -> `Ipv6_literal h)
; reg_name >>| (fun s -> `Host (Pct.decode (Pct.cast_encoded s)))
(* ipv4_literal TODO *)
(* TODO(dinosaure): According to RFC3986:
host = IP-literal / IPv4address / reg-name
IP-literal = "[" ( IPv6address / IPvFuture ) "]"
IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
IPvFuture is not implemented. We should handle it:
IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
*)
]

let userinfo =
Expand Down

0 comments on commit cf8879e

Please sign in to comment.