10 #ifndef _PROTOCOL_PARSERS_HTTP_
11 #define _PROTOCOL_PARSERS_HTTP_
18 #define HTTP_MESSAGE_MIN_LEN 16
19 #define HTTP_METHOD_MAX_LEN 7
20 #define HTTP_URI_DEFAULT_LEN 100
bool is_http(uint8_t *data)
Check if a TCP message is a HTTP message.
Definition: http.c:90
http_method_t
Definition: http.h:27
char * http_method_to_str(http_method_t method)
Converts a HTTP method from enum value to character string.
Definition: http.c:186
void http_free_message(http_message_t message)
Free the memory allocated for a HTTP message.
Definition: http.c:172
struct http_message http_message_t
void http_print_message(http_message_t message)
Print an HTTP message.
Definition: http.c:222
http_message_t http_parse_message(uint8_t *data, uint16_t dst_port)
Parse the method and URI of HTTP message.
Definition: http.c:149