10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
LibcurlURL.h
1
#ifndef TENDUKE_NET_CURL_LIBCURLURL_H
2
#define TENDUKE_NET_CURL_LIBCURLURL_H
3
4
#include <cstdint>
5
#include <string>
6
7
#include <curl/curl.h>
8
9
namespace
tenduke
{
namespace
net
{
namespace
curl
{
10
11
15
class
LibcurlURL
16
{
17
public
:
24
explicit
LibcurlURL
(
bool
lenient =
true
);
25
virtual
~LibcurlURL
();
26
27
std::string getScheme()
const
;
28
std::string getUsername()
const
;
29
std::string getPassword()
const
;
30
std::uint16_t getPort()
const
;
31
std::string getHostname()
const
;
32
std::string getPath()
const
;
33
std::string getQueryParameters()
const
;
34
std::string getFragment()
const
;
35
36
public
:
44
virtual
void
parse
(
const
std::string &url);
45
46
private
:
47
48
bool
lenient;
49
CURLU *curlHandle;
50
};
51
52
}}}
53
54
#endif
// TENDUKE_NET_CURL_LIBCURLURL_H
LibcurlURL::LibcurlURL
LibcurlURL(bool lenient=true)
Constructs a new instance.
Definition
LibcurlURL.cpp:14
tenduke::net::curl::LibcurlURL::parse
virtual void parse(const std::string &url)
Parses given URL into this instance.
Definition
LibcurlURL.cpp:67
tenduke::net::curl::LibcurlURL::LibcurlURL
LibcurlURL(bool lenient=true)
Constructs a new instance.
Definition
LibcurlURL.cpp:14
tenduke::net::curl
libcurl based implementation of generic network services.
Definition
LibcurlURL.h:9
tenduke::net
Generic networking support.
Definition
AbstractURLCodec.h:6
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
services
default
src
net
LibcurlURL.h
Generated by
1.17.0