![]() |
Home | Libraries | People | FAQ | More |
Set the host to an address.
url& set_host_ipvfuture( core::string_view s);
The host is set to the specified IPvFuture string. The host type is host_type::ipvfuture
.
assert( [link url.ref.boost__urls__url.url `url`]().[link url.ref.boost__urls__url.set_host_ipvfuture `set_host_ipvfuture`]( "v42.bis" ).[link url.ref.boost__urls__url.buffer `buffer`]() == "//[v42.bis]" );
Linear in this->size() + s.size()
.
this->[link url.ref.boost__urls__url.has_authority `has_authority`]() == true && this->[link url.ref.boost__urls__url.host_ipvfuture `host_ipvfuture`]) == s && this->[link url.ref.boost__urls__host_type `host_type`]() == [link url.ref.boost__urls__host_type `host_type::ipvfuture`]
Strong guarantee. Calls to allocate may throw. Exceptions thrown on invalid input.
Type |
Thrown On |
---|---|
|
|
Name |
Description |
---|---|
|
The string to set. |
IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
set_encoded_host
, set_encoded_host_address
, set_encoded_host_name
, set_host
, set_host_address
, set_host_ipv4
, set_host_ipv6
, /root/project/libs/url/include/boost/url/url.hpp