pub type OrthancPluginServerChunkedRequestReaderExecute = Option<unsafe extern "C" fn(reader: *mut OrthancPluginServerChunkedRequestReader, output: *mut OrthancPluginRestOutput) -> OrthancPluginErrorCode>;
Expand description
@brief Callback invoked whenever the request body is entirely received.
Signature of a callback function that is called by Orthanc acting as a HTTP server that supports chunked HTTP transfers. This callback is invoked as soon as the full body of the HTTP request is available. The plugin can then send its answer thanks to the provided “output” object.
@see OrthancPluginRegisterChunkedRestCallback() @param reader The user payload, as created by the OrthancPluginServerChunkedRequestReaderFactory() callback. @param output The HTTP connection to the client application. @return 0 if success, or the error code if failure.
Aliased Type§
pub enum OrthancPluginServerChunkedRequestReaderExecute {
None,
Some(unsafe extern "C" fn(*mut _OrthancPluginServerChunkedRequestReader_t, *mut _OrthancPluginRestOutput_t) -> i32),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(*mut _OrthancPluginServerChunkedRequestReader_t, *mut _OrthancPluginRestOutput_t) -> i32)
Some value of type T
.