mirror of
https://github.com/openappsec/attachment.git
synced 2026-01-17 16:00:26 +03:00
Adding base for async with kong
This commit is contained in:
@@ -124,6 +124,86 @@ AttachmentVerdictResponse SendRequestEnd(NanoAttachment *attachment, AttachmentD
|
||||
///
|
||||
AttachmentVerdictResponse SendResponseEnd(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends request filter data to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the data to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendRequestFilterAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends start request data to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the data to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendMetadataAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends request headers to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the headers to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendRequestHeadersAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends response headers to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the headers to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendResponseHeadersAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends request body to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the body to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendRequestBodyAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends response body to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the body to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendResponseBodyAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends end request signal to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the necessery data to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendRequestEndAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends end response signal to the nano service asynchronously.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
/// @param data A pointer to AttachmentData structure containing the necessery data to send and the session data.
|
||||
///
|
||||
/// @return A NanoCommunicationResult indicating the outcome of the operation.
|
||||
///
|
||||
NanoCommunicationResult SendResponseEndAsync(NanoAttachment *attachment, AttachmentData *data);
|
||||
|
||||
///
|
||||
/// @brief Sends metric data to the nano service and resets it on the attachment.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user