Basic HTTP response structure. More...
Basic HTTP response structure.
Public Member Functions | |
std::vector< uint8_t > | GetRaw () const noexcept |
Get response body as uint8_t vector. | |
std::string | GetString () const noexcept |
Get response body as text string. | |
Json::Value | GetJson () const |
Get response body as a json value. | |
bool | GetJson (Json::Value &value) const noexcept |
Get response body as a json value without throwing. | |
Public Attributes | |
DownloadInstance::Response | response |
std::vector< uint8_t > | body |
std::string | error |
|
noexcept |
Get response body as uint8_t vector.
|
noexcept |
Get response body as text string.
Json::Value BinaryNinja::Http::Response::GetJson | ( | ) | const |
Get response body as a json value.
runtime_error | On JSON parse error |
|
noexcept |
Get response body as a json value without throwing.
value | Output json value |
DownloadInstance::Response BinaryNinja::Http::Response::response |
std::vector<uint8_t> BinaryNinja::Http::Response::body |
std::string BinaryNinja::Http::Response::error |