From 1c232f0176c43c93c3e787ac83f3573bf42c58f1 Mon Sep 17 00:00:00 2001 From: lijia Date: Fri, 24 May 2024 22:47:32 +0800 Subject: Adapt to stellar2.0;update API,add HDR_END,BODY_END,TRANSACTION_NEW,FREE msg. --- src/http_decoder_utils.h | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'src/http_decoder_utils.h') diff --git a/src/http_decoder_utils.h b/src/http_decoder_utils.h index 9c031a3..0661641 100644 --- a/src/http_decoder_utils.h +++ b/src/http_decoder_utils.h @@ -1,28 +1,13 @@ -/* -********************************************************************************************** -* File: http_decoder_utils.h -* Description: -* Authors: LuWenPeng -* Date: 2022-10-31 -* Copyright: (c) Since 2022 Geedge Networks, Ltd. All rights reserved. -*********************************************************************************************** -*/ - - #ifndef _HTTP_DECODER_UTILS_H_ #define _HTTP_DECODER_UTILS_H_ -#ifdef __cplusplus -extern "C" -{ -#endif - #include #include - char *safe_dup(const char *str, size_t len); - +const char *http_message_type_to_string(enum http_message_type type); +int http_message_type_is_req(struct session *sess, enum http_message_type msg_type); +int http_event_is_req(enum http_event event); /****************************************************************************** * Logger ******************************************************************************/ @@ -58,9 +43,4 @@ enum http_decoder_log_level { } \ } #endif - -#ifdef __cplusplus -} -#endif - #endif \ No newline at end of file -- cgit v1.2.3