CGI
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
#define HTTP_RESPONSE_H
|
||||
|
||||
#include "http_content_type.h"
|
||||
#include "http_server.h"
|
||||
#include "http_status.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
typedef struct {
|
||||
HttpStatus status_code;
|
||||
@@ -26,5 +28,6 @@ char *read_file(const char *__path);
|
||||
// Given a path will return a HttpResponse
|
||||
HttpResponse *from_file(const char *__path);
|
||||
void free_response(HttpResponse *__res);
|
||||
HttpServerRunStatus cgi(const char *__path, int clientfd);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user