mirror of
https://github.com/openappsec/attachment.git
synced 2025-12-31 13:49:09 +03:00
add getter functions for timeout
This commit is contained in:
@@ -266,4 +266,28 @@ freeCompressedBody(
|
||||
HttpBody *bodies
|
||||
);
|
||||
|
||||
///
|
||||
/// @brief Gets the request processing timeout in milliseconds.
|
||||
///
|
||||
/// This function retrieves the configured timeout value for request processing
|
||||
/// from the NanoAttachment configuration.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
///
|
||||
/// @return The request processing timeout in milliseconds.
|
||||
///
|
||||
uint32_t GetRequestProcessingTimeout(NanoAttachment *attachment);
|
||||
|
||||
///
|
||||
/// @brief Gets the response processing timeout in milliseconds.
|
||||
///
|
||||
/// This function retrieves the configured timeout value for response processing
|
||||
/// from the NanoAttachment configuration.
|
||||
///
|
||||
/// @param attachment A pointer to the NanoAttachment structure.
|
||||
///
|
||||
/// @return The response processing timeout in milliseconds.
|
||||
///
|
||||
uint32_t GetResponseProcessingTimeout(NanoAttachment *attachment);
|
||||
|
||||
#endif // __NANO_ATTACHMENT_H__
|
||||
|
||||
Reference in New Issue
Block a user