1
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
27
28
29
38
39
40
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/* ... */
#ifndef _HTTP_HEADER_H_
#define _HTTP_HEADER_H_
#include "sys/queue.h"
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct http_header *http_header_handle_t;
typedef struct http_header_item *http_header_item_handle_t;
/* ... */
http_header_handle_t http_header_init(void);
/* ... */
esp_err_t http_header_clean(http_header_handle_t header);
/* ... */
esp_err_t http_header_destroy(http_header_handle_t header);
/* ... */
esp_err_t http_header_set(http_header_handle_t header, const char *key, const char *value);
/* ... */
int http_header_set_format(http_header_handle_t header, const char *key, const char *format, ...);
/* ... */
esp_err_t http_header_get(http_header_handle_t header, const char *key, char **value);
/* ... */
int http_header_generate_string(http_header_handle_t header, int index, char *buffer, int *buffer_len);
/* ... */
esp_err_t http_header_delete(http_header_handle_t header, const char *key);
#ifdef __cplusplus
}{...}
#endif
/* ... */
#endif