◆ BinaryNinja::DownloadInstance::Response
struct BinaryNinja::DownloadInstance::Response |
Class Members |
unordered_map< string, string > |
headers |
|
uint16_t |
statusCode |
|
◆ DownloadInstance() [1/2]
◆ DownloadInstance() [2/2]
DownloadInstance::DownloadInstance |
( |
BNDownloadInstance * |
instance | ) |
|
|
protected |
◆ DestroyInstance()
void DownloadInstance::DestroyInstance |
( |
| ) |
|
|
protectedvirtual |
Cleanup any resources created by the instance.
◆ DestroyInstanceCallback()
void DownloadInstance::DestroyInstanceCallback |
( |
void * |
ctxt | ) |
|
|
staticprotected |
◆ GetError()
string DownloadInstance::GetError |
( |
| ) |
const |
Retrieve the error from the last request sent by this instance.
◆ NotifyProgressCallback()
bool DownloadInstance::NotifyProgressCallback |
( |
uint64_t |
progress, |
|
|
uint64_t |
total |
|
) |
| |
|
protected |
◆ PerformCustomRequest() [1/2]
virtual int BinaryNinja::DownloadInstance::PerformCustomRequest |
( |
const std::string & |
method, |
|
|
const std::string & |
url, |
|
|
const std::unordered_map< std::string, std::string > & |
headers, |
|
|
Response & |
response |
|
) |
| |
|
protectedpure virtual |
Virtual method to synchronously perform a request to a url, overridden by a subclass.
- Parameters
-
method | Request method e.g. GET |
url | Full url to request |
headers | HTTP headers as keys/values |
response | Structure into which the response status code and headers should be stored |
- Returns
- Zero on successful request, negative on failed request
Implemented in BinaryNinja::CoreDownloadInstance.
◆ PerformCustomRequest() [2/2]
int BinaryNinja::DownloadInstance::PerformCustomRequest |
( |
const std::string & |
method, |
|
|
const std::string & |
url, |
|
|
const std::unordered_map< std::string, std::string > & |
headers, |
|
|
Response & |
response, |
|
|
BNDownloadInstanceInputOutputCallbacks * |
callbacks |
|
) |
| |
Send a request to a url, synchronously.
- Parameters
-
method | Request method e.g. GET |
url | Full url to request |
headers | HTTP headers as keys/values |
response | Structure into which the response status code and headers are stored |
callbacks | Structure with callback functions for input and output data |
- Returns
- Zero on successful request, negative on failed request
◆ PerformCustomRequestCallback()
int DownloadInstance::PerformCustomRequestCallback |
( |
void * |
ctxt, |
|
|
const char * |
method, |
|
|
const char * |
url, |
|
|
uint64_t |
headerCount, |
|
|
const char *const * |
headerKeys, |
|
|
const char *const * |
headerValues, |
|
|
BNDownloadInstanceResponse ** |
response |
|
) |
| |
|
staticprotected |
◆ PerformFreeResponse()
◆ PerformRequest() [1/2]
virtual int BinaryNinja::DownloadInstance::PerformRequest |
( |
const std::string & |
url | ) |
|
|
protectedpure virtual |
Virtual method to synchronously perform a GET request to a url, overridden by a subclass.
- Parameters
-
- Returns
- Zero on successful request, negative on failed request
Implemented in BinaryNinja::CoreDownloadInstance.
◆ PerformRequest() [2/2]
Send a GET request to a url, synchronously.
- Parameters
-
url | Full url to request |
callbacks | Structure with callback functions for output data |
- Returns
- Zero on successful request, negative on failed request
◆ PerformRequestCallback()
int DownloadInstance::PerformRequestCallback |
( |
void * |
ctxt, |
|
|
const char * |
url |
|
) |
| |
|
staticprotected |
◆ ReadDataCallback()
int64_t DownloadInstance::ReadDataCallback |
( |
uint8_t * |
data, |
|
|
uint64_t |
len |
|
) |
| |
|
protected |
◆ SetError()
void DownloadInstance::SetError |
( |
const std::string & |
error | ) |
|
|
protected |
◆ WriteDataCallback()
uint64_t DownloadInstance::WriteDataCallback |
( |
uint8_t * |
data, |
|
|
uint64_t |
len |
|
) |
| |
|
protected |
The documentation for this class was generated from the following files: