tgbot-cpp
TgBot::Url Class Reference

#include <Url.h>

Public Member Functions

 Url (const std::string &url)
 

Public Attributes

std::string protocol
 
std::string host
 
std::string path
 
std::string query
 
std::string fragment
 

Detailed Description

This class parses a string with the url

Definition at line 34 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 62 of file Url.h.

◆ host

std::string TgBot::Url::host

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

Definition at line 47 of file Url.h.

◆ path

std::string TgBot::Url::path

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

Definition at line 52 of file Url.h.

◆ protocol

std::string TgBot::Url::protocol

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

Definition at line 42 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 57 of file Url.h.


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