Type Alias OrthancPluginChunkedClientAnswerAddHeader

Source
pub type OrthancPluginChunkedClientAnswerAddHeader = Option<unsafe extern "C" fn(answer: *mut c_void, key: *const c_char, value: *const c_char) -> OrthancPluginErrorCode>;
Expand description

@brief Callback executed when a HTTP header is received during a chunked transfer.

Signature of a callback function that is called by Orthanc acting as a HTTP client during a chunked HTTP transfer, as soon as it receives one HTTP header from the answer of the remote HTTP server.

@see OrthancPluginChunkedHttpClient() @param answer The user payload, as provided by the calling plugin. @param key The key of the HTTP header. @param value The value of the HTTP header. @return 0 if success, or the error code if failure. @ingroup Toolbox

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.