Class url_base

Common functionality for containers

Synopsis

class url_base
    : public url_view_base;

Declared in file <include/boost/url/params_encoded_ref.hpp> on line 23

Declared in file <include/boost/url/segments_encoded_ref.hpp> on line 23

Declared in file <include/boost/url/segments_ref.hpp> on line 23

Declared in file <include/boost/url/params_ref.hpp> on line 24

Defined in file <include/boost/url/url_base.hpp> on line 63

Types

Name

Description

op_t

Member Functions

Name

Description

c_str

Return the url as a null-terminated string

capacity

Return the number of characters that can be stored without reallocating

clear

Clear the contents while preserving the capacity

reserve

Adjust the capacity without changing the size

set_scheme

Set the scheme

set_scheme_id

remove_scheme

Remove the scheme

set_encoded_authority

Set the authority

remove_authority

Remove the authority

set_userinfo

Set the userinfo

set_encoded_userinfo

Set the userinfo.

remove_userinfo

Remove the userinfo

set_user

Set the user

set_encoded_user

Set the user

set_password

Set the password.

set_encoded_password

Set the password.

remove_password

Remove the password

set_host

Set the host

set_encoded_host

Set the host

set_host_address

Set the host to an address

set_encoded_host_address

Set the host to an address

set_host_ipv4

Set the host to an address

set_host_ipv6

Set the host to an address

set_host_ipvfuture

Set the host to an address

set_host_name

Set the host to a name

set_encoded_host_name

Set the host to a name

set_port_number

Set the port

set_port

Set the port

remove_port

Remove the port

set_path_absolute

Set if the path is absolute

set_path

Set the path.

set_encoded_path

Set the path.

segments

Return the path as a container of segments

segments

Return the path as a container of segments

encoded_segments

Return the path as a container of segments

encoded_segments

Return the path as a container of segments

set_query

Set the query

set_encoded_query

Set the query

params

Return the query as a container of parameters

params

url_view_base::params

params

Return the query as a container of parameters

encoded_params

Return the query as a container of parameters

encoded_params

Return the query as a container of parameters

set_params

Set the query params

set_encoded_params

Set the query params

remove_query

Remove the query

remove_fragment

Remove the fragment

set_fragment

Set the fragment.

set_encoded_fragment

Set the fragment.

remove_origin

Remove the origin component

normalize

Normalize the URL components

normalize_scheme

Normalize the URL scheme

normalize_authority

Normalize the URL authority

normalize_path

Normalize the URL path

normalize_query

Normalize the URL query

normalize_fragment

Normalize the URL fragment

resolve

Resolve a URL reference against this base URL

Description

This base class is used by the library to provide common member functions for containers. This cannot be instantiated directly; Instead, use one of the containers or functions:

Containers