diff options
| author | lijia <[email protected]> | 2024-05-24 22:47:32 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-06-03 11:08:06 +0800 |
| commit | 1c232f0176c43c93c3e787ac83f3573bf42c58f1 (patch) | |
| tree | 734c31a97ec38847972b70a18ec075fd415bb5f6 /src/http_decoder_utils.h | |
| parent | 22d071e23ff423242f51dce2eab1477b5fb9d106 (diff) | |
Adapt to stellar2.0;update API,add HDR_END,BODY_END,TRANSACTION_NEW,FREE msg.v2.0.2
Diffstat (limited to 'src/http_decoder_utils.h')
| -rw-r--r-- | src/http_decoder_utils.h | 26 |
1 files changed, 3 insertions, 23 deletions
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 <[email protected]> -* 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 <stdlib.h> #include <stdio.h> - 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 |
