pub unsafe extern "C" fn httpcDownloadData(
    context: *mut httpcContext,
    buffer: *mut u8_,
    size: u32_,
    downloadedsize: *mut u32_
) -> Result
Expand description

Downloads data from the HTTP context into a buffer. The entire content must be downloaded before using httpcCloseContext(), otherwise httpcCloseContext() will hang.

§Arguments

  • context - Context to download data from.
  • buffer - Buffer to write data to.
  • size - Size of the buffer.
  • downloadedsize - Pointer to write the size of the downloaded data to.