From 9ea86638e1676a6fc8c8892beb3fb6afd431b5cc Mon Sep 17 00:00:00 2001 From: lijia Date: Fri, 12 Apr 2024 15:01:57 +0800 Subject: Remove the dir of http_message_get_xxx API, because msg type already contains this information --- src/http_decoder_table.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/http_decoder_table.h') diff --git a/src/http_decoder_table.h b/src/http_decoder_table.h index fe443bb..906a28d 100644 --- a/src/http_decoder_table.h +++ b/src/http_decoder_table.h @@ -65,12 +65,11 @@ int http_decoder_table_get_body(struct http_decoder_table *table, struct hstring int http_decoder_table_get_header(struct http_decoder_table *table, struct hstring *key, - struct http_header *hdr_array, - size_t array_size); + struct http_header *hdr_res); int http_decoder_table_iter_header(struct http_decoder_table *table, struct http_header *hdr); - +int http_decoder_table_reset_header_iter(struct http_decoder_table *table); /** * @brief Is there a parsed header * -- cgit v1.2.3