Boost logo

Boost :

From: Seth (bugs_at_[hidden])
Date: 2022-08-22 03:09:21


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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk