diff options
| author | lijia <[email protected]> | 2024-08-16 14:58:19 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2024-08-16 16:05:57 +0800 |
| commit | 5ccd3bc23cf46a11ada14eab3e0b0a354733da59 (patch) | |
| tree | 140a676f27ca516916fdd78eb1a0f07d8c59dac8 /decoders/http/http_decoder_table.h | |
| parent | a59eca7685e126226d5c2b4679a2a90711cc5875 (diff) | |
Adjust benchmark directory,enable HTTP test,rename variables,format codesdev-integration-http
Diffstat (limited to 'decoders/http/http_decoder_table.h')
| -rw-r--r-- | decoders/http/http_decoder_table.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/decoders/http/http_decoder_table.h b/decoders/http/http_decoder_table.h index bbc6956..d32f6be 100644 --- a/decoders/http/http_decoder_table.h +++ b/decoders/http/http_decoder_table.h @@ -1,11 +1,11 @@ -#ifndef _HTTP_DECODER_TABLE_H_ -#define _HTTP_DECODER_TABLE_H_ +#pragma once #include <stddef.h> #include "stellar/http.h" -#include "http_decoder_inc.h" +#include "http_decoder_private.h" #include "http_decoder_string.h" -enum http_item { +enum http_item +{ HTTP_ITEM_URI = 0x01, HTTP_ITEM_STATUS = 0x02, HTTP_ITEM_METHOD = 0x03, @@ -55,9 +55,9 @@ int http_decoder_table_iter_header(struct http_decoder_table *table, int http_decoder_table_reset_header_iter(struct http_decoder_table *table); /** * @brief Is there a parsed header - * + * * @retval yes(1) no(0) -*/ + */ int http_decoder_table_has_parsed_header(struct http_decoder_table *table); /** @@ -69,7 +69,7 @@ int http_decoder_table_header_complete(struct http_decoder_table *table); /** * @brief set flag for headers parsed completely -*/ + */ void http_decoder_table_set_header_complete(struct http_decoder_table *table); void http_decoder_table_reset_header_complete(struct http_decoder_table *table); @@ -77,4 +77,3 @@ void http_decoder_table_reset_header_complete(struct http_decoder_table *table); void http_decoder_table_update_commit_index(struct http_decoder_table *table); int http_decoder_table_get_total_parsed_header(struct http_decoder_table *table); -#endif
\ No newline at end of file |
