httpmessage  0.4.0
HTTP message parsing library
httpmessage.h
Go to the documentation of this file.
1 /**************************************************************************************$
2  * httpmessage
3  ***************************************************************************************
4  * Copyright © 2022 by Renaud Guillard (dev@nore.fr)
5  * Distributed under the terms of the MIT License, see LICENSE
6  ***************************************************************************************
7  */
8 
14 #if !defined (LIBHTTPMESSAGGE_H__)
15 #define LIBHTTPMESSAGGE_H__
16 
17 #include "httpmessage/message.h"
18 #include "httpmessage/header.h"
19 #include "httpmessage/text.h"
20 #include "httpmessage/grammar.h"
22 
24 
30 typedef enum __httpmessage_result_code
31 {
38  HTTPMESSAGE_ERROR_INCOMPLETE = -1201,
40 
49 HMAPI const char *httpmessage_result_get_text(int code);
50 
58 typedef enum
59 {
64 
70 typedef enum
71 {
78 
86 
96 
98 
99 #endif /* LIBHTTPMESSAGGE_H__ */
HMAPI const char * httpmessage_result_get_text(int code)
Get the error message associated to the given result code.
HTTP header parsing and manipulation.
Definition: httpmessage.h:33
#define HTTPMESSAGE_C_END
End exter C block.
Definition: preprocessor.h:44
httpmessage_message_type
HTTP message type.
Definition: httpmessage.h:58
Text utility.
Definition: httpmessage.h:35
Definition: httpmessage.h:94
Definition: httpmessage.h:61
HTTP request and response.
Accept text input where an expected trailing CRLF is missing.
Definition: httpmessage.h:77
Definition: httpmessage.h:36
Definition: httpmessage.h:85
Definition: httpmessage.h:60
Definition: httpmessage.h:34
httpmessage_option_flags
Option flags.
Definition: httpmessage.h:70
Preprocessor macro definitions.
Definition: httpmessage.h:62
Definition: httpmessage.h:32
#define HTTPMESSAGE_C_BEGIN
Begin extern C block.
Definition: preprocessor.h:40
httpmessage_result_code
Definition: httpmessage.h:30
RFC 2616 general grammar utility.
#define HMAPI
C API exposition macro.
Definition: preprocessor.h:23
Definition: httpmessage.h:37