Implementation:httpserver.chandle_files_request(int fd):
//from file descriptor fd, get the --files portion of it
//I think char *server_files_directory already has it
//find out if the request corresponds to a file or a directory. You can do this by using the stat() function and S_ISDIR and S_ISREG macros
set the content_type using helper that returns MIME type
set the content_length using method
if (is_dir)
if index.html exists:
return path/to/dir/index.html
else
use opendir() and readdir() to list out all the options
else if (is_file)
if file exists
return path/to/file/file.asdf
else
return 404 error