Public Attributes | List of all members
kvikio::detail::UrlParser::UrlComponents Struct Reference

Container for parsed URL components. More...

#include <url.hpp>

Public Attributes

std::optional< std::string > scheme
 The URL scheme (e.g., "http", "https", "ftp"). May be empty for scheme-relative URLs or paths.
 
std::optional< std::string > host
 The hostname or IP address. May be empty for URLs without an authority component (e.g., "file:///path").
 
std::optional< std::string > port
 The port number as a string. Will be empty if no explicit port is specified in the URL. More...
 
std::optional< std::string > path
 The path component of the URL. Libcurl ensures that the path component is always present, even if empty (will be "/" for URLs like "http://example.com").
 
std::optional< std::string > query
 The query string (without the leading "?"). Empty if no query parameters are present.
 
std::optional< std::string > fragment
 The fragment identifier (without the leading "#"). Empty if no fragment is present.
 

Detailed Description

Container for parsed URL components.

Definition at line 89 of file url.hpp.

Member Data Documentation

◆ port

std::optional<std::string> kvikio::detail::UrlParser::UrlComponents::port

The port number as a string. Will be empty if no explicit port is specified in the URL.

Note
Default ports (e.g., 80 for HTTP, 443 for HTTPS) are not automatically filled in.

Definition at line 107 of file url.hpp.


The documentation for this struct was generated from the following file: