tgbot-cpp
TgBot::Url Class Reference

This class parses a string with the url. More...

#include <Url.h>

Public Member Functions

 Url (const std::string &url)
 

Public Attributes

std::string protocol
 Protocol part of an url. Example: https://. More...
 
std::string host
 Host part of an url. Example: www.example.com. More...
 
std::string path
 Path part of an url including preceding '/' char. Example: /index.html. More...
 
std::string query
 Query part of an url without '?' char. Example: a=1&b=2&c=3. More...
 
std::string fragment
 Fragment part of an url without '#' char. Example: section1. More...
 

Detailed Description

This class parses a string with the url.

Definition at line 35 of file Url.h.

Constructor & Destructor Documentation

◆ Url()

TgBot::Url::Url ( const std::string &  url)

Member Data Documentation

◆ fragment

std::string TgBot::Url::fragment

Fragment part of an url without '#' char. Example: section1.

Definition at line 63 of file Url.h.

◆ host

std::string TgBot::Url::host

Host part of an url. Example: www.example.com.

Definition at line 48 of file Url.h.

◆ path

std::string TgBot::Url::path

Path part of an url including preceding '/' char. Example: /index.html.

Definition at line 53 of file Url.h.

◆ protocol

std::string TgBot::Url::protocol

Protocol part of an url. Example: https://.

Definition at line 43 of file Url.h.

◆ query

std::string TgBot::Url::query

Query part of an url without '?' char. Example: a=1&b=2&c=3.

Definition at line 58 of file Url.h.


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