10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
tenduke::net::URL Class Referenceabstract

#include <URL.h>

Detailed Description

Represents URL.

Inheritance diagram for tenduke::net::URL:
tenduke::net::curl::LibcurlURL tenduke::test::mocks::URLMock

Public Member Functions

virtual std::multimap< std::string, std::string > getQueryParameters () const =0
 Returns the query parameters, URL-decoded.
 
virtual std::string getPath () const =0
 Returns path, URL-decoded.
 
virtual void setPort (std::uint16_t port)=0
 Sets port.
 
virtual std::string toString () const =0
 Returns the URL as string.
 

Member Function Documentation

◆ getPath()

virtual std::string tenduke::net::URL::getPath ( ) const
pure virtual

Returns path, URL-decoded.

Returns
-

Implemented in tenduke::net::curl::LibcurlURL.

◆ getQueryParameters()

virtual std::multimap< std::string, std::string > tenduke::net::URL::getQueryParameters ( ) const
pure virtual

Returns the query parameters, URL-decoded.

Returns
-
Exceptions
tenduke::net::URLExceptionin case something failed

Implemented in tenduke::net::curl::LibcurlURL.

◆ setPort()

virtual void tenduke::net::URL::setPort ( std::uint16_t port)
pure virtual

Sets port.

Parameters
port-

Implemented in tenduke::net::curl::LibcurlURL.

◆ toString()

virtual std::string tenduke::net::URL::toString ( ) const
pure virtual

Returns the URL as string.

Returns
-

Implemented in tenduke::net::curl::LibcurlURL.


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