10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
URL.h
1#ifndef TENDUKE_NET_URL_H
2#define TENDUKE_NET_URL_H
3
4#include <cstdint>
5#include <map>
6#include <string>
7
8namespace tenduke { namespace net {
9
10
14class URL
15{
16public:
17 virtual ~URL() = default;
18
25 virtual std::multimap<std::string, std::string> getQueryParameters() const = 0;
26
31 virtual std::string getPath() const = 0;
32
37 virtual void setPort(std::uint16_t port) = 0;
38
43 virtual std::string toString() const = 0;
44};
45
46
47}}
48
49
50#endif // TENDUKE_NET_URL_H
Represents URL.
Definition URL.h:15
virtual void setPort(std::uint16_t port)=0
Sets port.
virtual std::string getPath() const =0
Returns path, URL-decoded.
virtual std::string toString() const =0
Returns the URL as string.
virtual std::multimap< std::string, std::string > getQueryParameters() const =0
Returns the query parameters, URL-decoded.
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7