refactor: change project structure
This commit is contained in:
14
include/http/response.h
Normal file
14
include/http/response.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef CWS_RESPONSE_H
|
||||
#define CWS_RESPONSE_H
|
||||
|
||||
#include "http/request.h"
|
||||
#include <sys/types.h>
|
||||
|
||||
size_t http_simple_html(char **response, cws_http_status_e status, char *title, char *description);
|
||||
|
||||
size_t http_response_builder(char **response, cws_http_status_e status, char *content_type,
|
||||
char *body, size_t body_len_bytes);
|
||||
|
||||
void cws_http_send_response(cws_http_s *request, cws_http_status_e status);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user