boost::urls::static_url::set_port_number
Set the port
Synopsis
Declared in <boost/url/static_url.hpp>
static_url&
set_port_number(std::uint16_t n);
Example
assert( url( "http://www.example.com" ).set_port_number( 8080 ).authority().buffer() == "www.example.com:8080" );
Postconditions
this->has_authority() == true && this->has_port() == true && this->port_number() == n
See Also
remove_port
, set_port
.
Created with MrDocs