Home | Libraries | People | FAQ | More |
(Inherited from url_base
)
Set the host to an address.
url_base& set_host_ipvfuture( string_view s);
The host is set to the specified IPvFuture string. The host type will be
host_type::ipvfuture
.
assert( url().set_host_ipvfuture( "v42.bis" ).buffer() == "//[v42.bis]" );
Linear in this->size() + s.size()
.
this->has_authority() == true && this->host_ipvfuture) == s && this->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_name
.