HttpResponse Struct

Apps › Core

#include <vortex/vapp.h>

Public Members

int status { 0 }
std::string body
std::string error

Detailed Description

Reply to an HttpRequest.

An HTTP error, like 401, keeps its status and body for the app to read. A request that never completed, like one with no network, has a status of 0 and the reason in error.

Member Variable Documentation

int status { 0 }

HTTP status, like 200; 0 when the request never completed

std::string body

Response body

std::string error

Why the request failed, when status is 0

› Documentation
Appearance
Theme
—