Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::http::Url Class Referencefinal

URL Parser. More...

#include <UrlHelper.h>

Public Member Functions

 Url ()=default
 
 Url (const std::string &url) noexcept
 
const std::string & getProtocol () const
 
const std::string & getHost () const
 
const std::string & getUrl () const
 
const std::string & getQuery () const
 

Private Attributes

std::string protocol
 Protocol.
 
std::string host
 Host.
 
std::string url
 Resource.
 
std::string query
 Query.
 

Detailed Description

URL Parser.

Constructor & Destructor Documentation

◆ Url() [1/2]

sese::net::http::Url::Url ( )
default

◆ Url() [2/2]

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

Member Function Documentation

◆ getHost()

const std::string & sese::net::http::Url::getHost ( ) const
inlinenodiscard

References host.

Referenced by sese::net::http::RequestParser::parse().

◆ getProtocol()

const std::string & sese::net::http::Url::getProtocol ( ) const
inlinenodiscard

◆ getQuery()

const std::string & sese::net::http::Url::getQuery ( ) const
inlinenodiscard

References query.

Referenced by sese::net::http::RequestParser::parse().

◆ getUrl()

const std::string & sese::net::http::Url::getUrl ( ) const
inlinenodiscard

References url.

Referenced by sese::net::http::RequestParser::parse().

Member Data Documentation

◆ host

std::string sese::net::http::Url::host
private

Host.

Referenced by getHost().

◆ protocol

std::string sese::net::http::Url::protocol
private

Protocol.

Referenced by getProtocol().

◆ query

std::string sese::net::http::Url::query
private

Query.

Referenced by getQuery().

◆ url

std::string sese::net::http::Url::url
private

Resource.

Referenced by getUrl().


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