10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
InternetHandle Class Reference

#include <InternetHandle.h>

Detailed Description

Encapsulation of InternetHandle for RAII.

Public Member Functions

 InternetHandle (const ::HINTERNET handle)
 Constructs a new instance.
 
void close ()
 Closes the handle.
 

Public Attributes

::HINTERNET handle
 

Constructor & Destructor Documentation

◆ InternetHandle()

tenduke::http::win::InternetHandle::InternetHandle ( const ::HINTERNET handle)
inlineexplicit

Constructs a new instance.

Parameters
handlethe handle: Provided from outside, this instance takes ownership of the handle.

Member Function Documentation

◆ close()

void tenduke::http::win::InternetHandle::close ( )
inline

Closes the handle.

NOTE: Destructor calls this method, but only logs exceptions.

Exceptions
tenduke::http::HTTPRequestExceptionif closing the handle fails
tenduke::TendukeExceptionif closing the handle fails

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