Class static_url

A modifiable container for a URL.

Synopsis

template<size_t Capacity>
class static_url
    : public static_url_base;

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

Defined in file <include/boost/url/static_url.hpp> on line 107

Member Functions

Name

Description

~static_url

Destructor

static_url

Constructor

static_url

Constructor

static_url

Constructor

static_url

Constructor

operator=

Assignment

operator=

Assignment

set_scheme

Set the scheme

set_scheme_id

url_base::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

Set the path.

set_encoded_path

Set the path.

set_query

Set the query

set_encoded_query

Set the query

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

Friends

Name

Description

hash

Description

This container owns a url, represented by an inline, null-terminated character buffer with fixed capacity. The contents may be inspected and modified, and the implementation maintains a useful invariant: changes to the url always leave it in a valid state.

Example

static_url< 1024 > u( "https://www.example.com" );

Invariants

this->capacity() == Capacity