request.c
520 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <stdlib.h>
#include "cclass.h"
#include "http/request.h"
INIT_CLASS(HTTP_REQUEST);
static void
_free(void ** data)
{
if (NULL != *data) {
free(*data);
}
}
__construct(LOGGER) {}
__destruct(LOGGER)
{
int i;
_free(&(this->http_version));
_free(&(this->uri));
_free(&(this->method));
for (i=0; i<128; i++) {
_free(&((this->header)[i].name));
_free(&((this->header)[i].value));
}
_free(&(this->body));
}
__jsonConst(LOGGER) {}
__toJson(LOGGER) {}
__clear(LOGGER) {}
// vim: set ts=4 sw=4: