gos_http_download_t Struct Reference
HTTP download context used by gos_http_download. More...
Data Fields | |
const char * | url |
The HTTP request URL, if no schema is included http:// is used. | |
uint32_t | checksum |
Expected CRC32 checksum of file. Must also set GOS_FILE_FLAG_CHECKSUM_VALID in flags for checksum to be validated. | |
uint32_t | version |
File version to save file as, GOS_FILE_VERSION_MAKE, optional, set as 0 for default. | |
const char * | local_filename |
File name to save file as. | |
gos_tls_certificates_t | certs |
For HTTPS (secure) request, the TLS cert filenames, gos_tls_certificates_t. | |
gos_file_flag_t | flags |
File flags to save file as, gos_file_flag_t, optional, set as 0 for default. | |
gos_file_owner_t | owner |
The owner of this file, gos_file_owner_t, set as 0 for default. | |
gos_file_location_t | location |
The memory location where the file should be downloaded, gos_file_location_t, set as 0 for default. | |
gos_file_permission_t | permissions |
The access permissions this file has, gos_file_permission_t, set as 0 for default. | |
gos_file_type_t | type |
File type to save file as, gos_file_type_t, optional, set as 0 for default. | |
gos_interface_t | interface |
Network interface, gos_interface_t. | |
bool | delete_duplicate |
If a file with name local_filename already exists then delete it first, fail otherwise. | |
Detailed Description
HTTP download context used by gos_http_download.