22 Aug
2022
22 Aug
'22
3:09 a.m.
On Mon, Aug 22, 2022, at 4:57 AM, Seth via Boost wrote:
Whereas Boost URL allows the user to specify the intended semantics
- parse_uri("localhost:5555") gives {scheme="localhost", path="5555"} - parse_relative_reference("localhost:5555") gives an error (leftover) - the RFC specifies[1] how to fix the input to allow `:` to appear in the first elements of a relative-path reference: parse_relative_reference("./localhost:5555") gives {path="./localhost:5555"}
Somehow forgot to add the most obvious match here - since it's not a URL: - parse_authority("localhost:5555") which gives {host="localhost",port="5555"} while also giving additional accessors like port_number, has_port etc.