|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Synchronous HTTP client using the Windows WinHTTP API. More...
Classes | |
| struct | Response |
| Simple HTTP response containing status, body, and error info. More... | |
Typedefs | |
| using | ProgressCallback = std::function< void(size_t bytesReceived, size_t totalBytes)> |
| Optional progress callback: (bytesReceived, totalBytes). totalBytes may be 0 if unknown. | |
Functions | |
| Response | Get (const std::string &url, const ProgressCallback &progress=nullptr) |
| Perform a synchronous HTTP(S) GET request. | |
Synchronous HTTP client using the Windows WinHTTP API.
Supports HTTPS via the OS certificate store (no OpenSSL required).
| using HttpClient::ProgressCallback = typedef std::function<void(size_t bytesReceived, size_t totalBytes)> |
Optional progress callback: (bytesReceived, totalBytes). totalBytes may be 0 if unknown.
Definition at line 40 of file HttpClient.h.
| HttpClient::Response HttpClient::Get | ( | const std::string & | url, |
| const ProgressCallback & | progress = nullptr |
||
| ) |
Perform a synchronous HTTP(S) GET request.
| url | The full URL to fetch. |
| progress | Optional callback invoked as data is received. |
Definition at line 73 of file HttpClient.cpp.