Let's consider the following URL: boost::network::uri::uri url; boost::network::uri::schemes::http(url) << boost::network::uri::host("my.awesome.server.com"); then the request: boost::network::uri::authority(url) will return only the scheme part: "http://"