![]() |
Home | Libraries | People | FAQ | More |
Return the port.
core::string_view port() const;
If present, this function returns a string representing the port (which may be empty). Otherwise it returns an empty string.
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "http://localhost.com:8080" ).[link url.ref.boost__urls__url_view_base.port `port`]() == "8080" );
Constant.
Throws nothing.
[link url.ref.boost__urls__url_view_base.port `port`] = *DIGIT