httpc
Loading...
Searching...
No Matches
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
12typedef struct response {
13 char body[MAX_RESPONSE_BODY];
14 struct ll_node* headers;
15 int code;
16} response;
17
21void unparse_response(response* resp, char* headers, char* buffer);
22
23#endif
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
Definition linkedlist.h:9
Definition response.h:12