From 775c4157994ee0ebe9bd951a99bc5d7558128ba4 Mon Sep 17 00:00:00 2001 From: cflip Date: Mon, 29 May 2023 22:13:12 -0600 Subject: Hacks to make it possible to serve PHP pages The most significant change is that the functions for reading a file and such write directly to the socket instead of attempting to fill buffers. --- file.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'file.h') diff --git a/file.h b/file.h index 304cc75..ee39eae 100644 --- a/file.h +++ b/file.h @@ -3,6 +3,11 @@ #include -size_t file_read(const char *, char **); +#include "http.h" + +int file_handle_request(struct http_request *, int); + +int file_read(const char *, int); +int file_read_cgi(const char *, int); #endif -- cgit v1.2.3