summaryrefslogtreecommitdiff
path: root/file.c
AgeCommit message (Collapse)Author
2023-06-01Send the proper MIME type when serving static filesc-rewritecflip
2023-06-01Allow query strings to be read by PHP scriptscflip
php-cgi is now run without any command line arguments and information such as the script filename and the query string are passed in via environment variables.
2023-05-30Reads from files or pipes into a buffer instead of char-by-charcflip
This makes it possible to load image files, and doesn't spam write() as much.
2023-05-30Refactor response building codecflip
This new strategy involves finding the local file path for the given URI, determining what method to use to fulfill the request (read file from disk, use php-cgi, or error), then it writes the response to the client socket.
2023-05-29Hacks to make it possible to serve PHP pagescflip
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.
2023-05-27Split cfws.c into multiple filescflip