1#ifndef TENDUKE_HTTP_WIN_INTERNETHANDLE_H
2#define TENDUKE_HTTP_WIN_INTERNETHANDLE_H
6#include "../win32_utils.h"
7#include "TendukeException.h"
47 if (handle ==
nullptr) {
51 const auto handleToClose = handle;
53 const auto ok = ::WinHttpCloseHandle(handleToClose);
57 ::tenduke::osa::win::throwOnHttpError(::GetLastError());
InternetHandle(const ::HINTERNET handle)
Constructs a new instance.
Definition InternetHandle.h:33
Base class for exceptions thrown by 10Duke C++ clients.
Definition TendukeException.h:13
InternetHandle(const ::HINTERNET handle)
Constructs a new instance.
Definition InternetHandle.h:33
void close()
Closes the handle.
Definition InternetHandle.h:45
HTTP-related services.
Definition BadRequest.h:6
void warning(const char *message)
Write message to global logger at WARNING-level.
Definition log.cpp:94
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4