:relfileprefix: ../../../
[#E980669713D90369194A562331BD6C2C3E8AAC64]

= Function static_url::set_host_ipvfuture

pass:v,q[Set the host to an address]


== Synopsis

Declared in header `</boost/url/static_url.hpp#L386[boost/url/static_url.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/static_url.adoc[static_url]&
set_host_ipvfuture(string_view s);
----

== Description

pass:v,q[The host is set to the specified IPvFuture] pass:v,q[string.] pass:v,q[The host type is]
xref:boost/urls/host_type/ipvfuture.adoc[host_type::ipvfuture.]

=== Example
[,cpp]
----
assert( url().set_host_ipvfuture( "v42.bis" ).buffer() == "//[v42.bis]" );
----

=== Complexity
pass:v,q[Linear in `this->size() + s.size()`.]

=== Postconditions
[,cpp]
----
this->has_authority() == true && this->host_ipvfuture) == s && this->host_type() == host_type::ipvfuture
----

=== Exception Safety
pass:v,q[Strong guarantee.]
pass:v,q[Calls to allocate may throw.]
pass:v,q[Exceptions thrown on invalid input.]

=== BNF
[,cpp]
----
IPvFuture     = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
----

=== Specification

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2[            3.2.2. Host (rfc3986)]



== Return Value

* `` 


== Parameters

|===
| Name | Type 

| *s*
| `string_view`

|===



