summaryrefslogtreecommitdiff
path: root/src/HTTP_Message.h
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-03-20 17:11:39 +0800
committerlijia <[email protected]>2024-03-22 09:11:49 +0800
commitb0df6e0c2846300ac15673a19fc10ce5fd409153 (patch)
tree239bee509e44769a9c026998dfabba3fce806d16 /src/HTTP_Message.h
parent0ddf0cd934dd0ad9ec742790e6aeb4980bcdb64e (diff)
feat: obsolete libdocanalyze, use zlib to decompress http payload.v2.1.1obsolete-docanalyze-use-zlib
Diffstat (limited to 'src/HTTP_Message.h')
-rw-r--r--src/HTTP_Message.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/HTTP_Message.h b/src/HTTP_Message.h
index 03234ec..fbc7b8f 100644
--- a/src/HTTP_Message.h
+++ b/src/HTTP_Message.h
@@ -4,7 +4,8 @@
#include <stdio.h>
#include "http.h"
#include "stream.h"
-#include "DocumentAnalyze.h"
+//#include "DocumentAnalyze.h"
+#include <zlib.h>
#define HTTP_PLUGIN_NAME "http.so"
@@ -104,7 +105,7 @@
#define LINE_FLAG_LF 0x02
#define LINE_FLAG_CRLF 0x03
-#define HTTP_UNZIP_CONTENT_LEN 16*1024
+#define HTTP_UNZIP_CONTENT_LEN 16384
typedef enum
{
@@ -158,7 +159,8 @@ typedef struct _http_parser_t
uint32 processed_offset; //�Ѵ��������ڵ�ǰ����ƫ����,��������һ������Ҫ����
uint64 packet_entity_len; //δ������ʵ�峤��
- docanalyze_streamparam_t ungzip_handle;
+ //docanalyze_streamparam_t ungzip_handle;
+ z_stream *ungzip_handle;
uint64 acc_cont_length;
int64 batch_prot_flag;
char* url_buf;
@@ -187,7 +189,7 @@ typedef struct _http_prog_runtime_parameter_t
void* http_log_handle;
void* region_hash; //��չ���ʶ��
void* stat_handler;
- void* docanly_handler;
+ //void* docanly_handler;
uint16 http_plugid;
uint16 http_log_level;