httpc
Loading...
Searching...
No Matches
include
httplib
response.h
Go to the documentation of this file.
1
4
5
#ifndef HTTPLIB_RESPONSE
6
#define HTTPLIB_RESPONSE
7
8
#include "
linkedlist.h
"
9
10
#define MAX_RESPONSE_BODY 4096
11
12
typedef
struct
response
{
13
char
body[MAX_RESPONSE_BODY];
14
struct
ll_node
* headers;
15
int
code;
16
}
response
;
17
21
void
unparse_response
(
response
* resp,
char
* headers,
char
* buffer);
22
23
#endif
linkedlist.h
unparse_response
void unparse_response(response *resp, char *headers, char *buffer)
transform a request struct into a valid html response using the buffer
Definition
response.c:4
ll_node
Definition
linkedlist.h:9
response
Definition
response.h:12
Generated by
1.13.2