Boost.URL

    • Quick Look
    • URLs
      • Parsing
      • Containers
      • Segments
      • Params
      • Normalization
      • String Token
      • Percent Encoding
      • Formatting
    • Customization
      • Parse Rules
      • Character Sets
      • Compound Rules
      • Ranges
      • RFC 3986
    • Examples
      • QR Code
      • Finicky
      • mailto URLs
      • Magnet Link
      • File Router
      • Router
      • Sanitizing URLs
    • Reference
      • Index
      • Concepts
        • CharSet
        • Rule
        • StringToken
      • Help Card

boost::urls::url_view_base::authority

Return the authority

Synopsis

Declared in header <boost/url/url_view_base.hpp>

authority_view
authority() const noexcept;

Description

This function returns the authority as an authority_view .

authority_view a = url_view( "https://www.example.com:8080/index.htm" ).authority();

Constant.

Throws nothing.

authority   = [ userinfo "@" ] host [ ":" port ]
  • 3.2. Authority (rfc3986)

See Also

encoded_authority , has_authority .