10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
WinHttpSession.h
1#ifndef TENDUKE_HTTP_WIN_WINHTTPSESSION_H
2#define TENDUKE_HTTP_WIN_WINHTTPSESSION_H
3
4#include <memory>
5#include <string>
6
7#include "InternetHandle.h"
8
9
10namespace tenduke { namespace http { namespace win {
11
15class WinHttpSession
16{
17public:
18 explicit WinHttpSession(const std::string &userAgent);
19
20 std::unique_ptr<::tenduke::http::win::InternetHandle> connect(const std::wstring &hostname, unsigned short port) const;
21
22 void setSecureProtocols(DWORD protocolFlags);
23private:
24 std::unique_ptr<const ::tenduke::http::win::InternetHandle> sessionHandle;
25};
26
27}}}
28
29#endif //TENDUKE_HTTP_WIN_WINHTTPSESSION_H
HTTP-related services.
Definition BadRequest.h:6
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4