Defines the HttpFetcher class for performing HTTP GET requests asynchronously. More...
#include <wx/wx.h>
#include <wx/event.h>
#include <wx/string.h>
#include <thread>
#include <cpr/cpr.h>
Go to the source code of this file.
Classes | |
class | HttpFetcher |
Handles asynchronous HTTP GET requests. More... | |
Macros | |
#define | HTTPFETCHER_H |
Functions | |
wxDECLARE_EVENT (EVT_HTTP_FETCH_COMPLETE, wxThreadEvent) | |
Custom event type for HTTP fetch completion. | |
Defines the HttpFetcher class for performing HTTP GET requests asynchronously.
This class is responsible for fetching data from a given URL using the cpr library. The fetched data is then sent to the main thread via a custom wxWidgets event.
#define HTTPFETCHER_H |
wxDECLARE_EVENT | ( | EVT_HTTP_FETCH_COMPLETE | , |
wxThreadEvent | ) |
Custom event type for HTTP fetch completion.
This event is emitted when an HTTP request is completed, carrying the response data.