Public Members
| std::string | method |
| std::string | url |
| int | headers |
| std::string | body |
| std::string | content_type |
Detailed Description
HTTP request that app code sends through VApp::http().
The core doesn't do networking itself. Each platform shell installs an
HttpHandler at startup that sends the
request, so the same app code runs on every platform.
Member Variable Documentation
std::string method
HTTP verb, like "GET" or "POST"
std::string url
Absolute URL
int headers
Header names and values, like { "Accept", "application/json" }.
std::string body
Raw body, like form-encoded or JSON text
std::string content_type
Like "application/json"; empty sends no Content-Type