|
|
std::optional< std::string > | getCurlScheme () |
|
long | getHTTPStatus () |
|
std::string | verb () const |
|
| TransferItem (const std::string &uri, const Headers &headers, ActivityId parentAct, std::optional< std::string_view > uploadData, bool noBody, curl_off_t writtenToSink) |
|
bool | acceptsRanges () |
|
void | failEx (std::exception_ptr ex) |
|
template<class T> |
| void | fail (T &&e) |
|
void | maybeFinishSetup () |
|
size_t | writeCallback (void *contents, size_t size, size_t nmemb) |
|
size_t | headerCallback (void *contents, size_t size, size_t nmemb) |
|
int | progressCallback (curl_off_t dltotal, curl_off_t dlnow) |
|
void | finish (CURLcode code) |
|
|
static size_t | writeCallbackWrapper (void *contents, size_t size, size_t nmemb, void *userp) |
|
static size_t | headerCallbackWrapper (void *contents, size_t size, size_t nmemb, void *userp) |
|
static int | progressCallbackWrapper (void *userp, curl_off_t dltotal, curl_off_t dlnow, curl_off_t ultotal, curl_off_t ulnow) |
|
static int | debugCallback (CURL *handle, curl_infotype type, char *data, size_t size, void *userptr) |
|
|
std::string | uri |
|
FileTransferResult | result |
|
Activity | act |
|
std::unique_ptr< FILE, decltype([](FILE *f) { fclose(f);})> | uploadData |
|
Sync< DownloadState > | downloadState |
|
std::condition_variable | downloadEvent |
|
bool | headersDone = false |
|
bool | metadataReturned = false |
|
std::promise< FileTransferResult > | metadataPromise |
|
std::string | statusMsg |
|
uint64_t | bodySize = 0 |
|
std::unique_ptr< curl_slist, decltype([](auto *s) { curl_slist_free_all(s);})> | requestHeaders |
|
std::unique_ptr< CURL, decltype([](auto *c) { curl_easy_cleanup(c);})> | req |
|
char | errbuf [CURL_ERROR_SIZE] |
|
std::optional< long > | httpStatusCode |
|
std::exception_ptr | callbackException |
|
|
static const std::set< long > | successfulStatuses {200, 201, 204, 206, 304, 0 } |
The documentation for this struct was generated from the following file:
- lix/libstore/filetransfer.cc