9 |
{ |
{ |
10 |
char *name; |
char *name; |
11 |
char *value; |
char *value; |
12 |
|
size_t name_length; |
13 |
|
size_t value_length; |
14 |
} freehttpd_header_t; |
} freehttpd_header_t; |
15 |
|
|
16 |
typedef struct freehttpd_request |
typedef struct freehttpd_request |
19 |
size_t method_length; |
size_t method_length; |
20 |
char *uri; |
char *uri; |
21 |
size_t uri_length; |
size_t uri_length; |
22 |
|
char *path; |
23 |
|
size_t path_length; |
24 |
|
char *query; |
25 |
|
size_t query_length; |
26 |
char *version; |
char *version; |
27 |
size_t version_length; |
size_t version_length; |
28 |
freehttpd_header_t **headers; |
freehttpd_header_t **headers; |
38 |
freehttpd_request_t *freehttpd_request_parse (freehttpd_t *freehttpd, |
freehttpd_request_t *freehttpd_request_parse (freehttpd_t *freehttpd, |
39 |
int sockfd, ecode_t *error); |
int sockfd, ecode_t *error); |
40 |
|
|
41 |
|
freehttpd_header_t *freehttpd_header_init (const char *name, const char *value, |
42 |
|
size_t name_length, |
43 |
|
size_t value_length); |
44 |
|
void freehttpd_header_free (freehttpd_header_t *header); |
45 |
|
|
46 |
#endif |
#endif |