From aa043addc0f15daa96e2be49ce43595444650a4f Mon Sep 17 00:00:00 2001 From: Giacomo Cavalieri Date: Mon, 18 Nov 2024 10:34:46 +0100 Subject: todo comment! --- src/gleam/uri.gleam | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gleam/uri.gleam b/src/gleam/uri.gleam index 2a5c190..9d78fe9 100644 --- a/src/gleam/uri.gleam +++ b/src/gleam/uri.gleam @@ -65,6 +65,9 @@ pub fn do_parse(uri_string: String) -> Result(Uri, Nil) { query_with_question_mark: query, fragment: fragment, )) -> { + // TODO: instead of splitting the authority as a second step we can avoid + // going over this part of the string twice and incorporate the parsing in + // the main loop. let AuthorityPieces(userinfo: userinfo, host: host, port: port) = split_authority(authority_with_slashes) Ok(Uri( -- cgit v1.2.3