Type Alias OrthancPluginChunkedClientRequestGetChunkData

Source
pub type OrthancPluginChunkedClientRequestGetChunkData = Option<unsafe extern "C" fn(request: *mut c_void) -> *const c_void>;
Expand description

@brief Callback to read the current chunk of the request body during a chunked transfer

Signature of a callback function that is called by Orthanc acting as a HTTP client during a chunked HTTP transfer, while reading the body of a POST or PUT request. The plugin must provide the content of the current chunk of data of the request body.

@see OrthancPluginChunkedHttpClient() @param request The user payload, as provided by the calling plugin. @return The content of the current request chunk. @ingroup Toolbox

Aliased Type§

pub enum OrthancPluginChunkedClientRequestGetChunkData {
    None,
    Some(unsafe extern "C" fn(*mut c_void) -> *const c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void) -> *const c_void)

Some value of type T.