HttpRequest Struct
Public Members
| std::string | method |
| std::string | url |
| int | headers |
| std::string | body |
| std::string | content_type |
Detailed Description
An async HTTP request the app core hands to the platform-injected transport (see VApp::set_http_handler). The core stays transport-agnostic: it builds the request, the platform shell performs it off the UI thread (Qt QNetworkAccessManager, web fetch, Android OkHttp) and delivers the response.
Member Variable Documentation
std::string method
"GET" | "POST"
std::string url
absolute URL
std::string body
raw bytes (form-encoded or JSON)
std::string content_type
e.g. "application/json"; empty to omit