add file comments

This commit is contained in:
Nayan
2025-05-08 22:34:36 -04:00
parent 51fe7e1c8d
commit f060c35f7d
12 changed files with 105 additions and 1 deletions

View File

@@ -1,3 +1,14 @@
/**
* request_handler.c
*
* This file contains functions for handling an HTTP request and constructing
* an appropriate response.
*
* Included functionality is parsing the request into an http_request struct,
* and using a switch statement to call the appropriate response handler based
* on the request type.
*/
#include "request_handler.h"
void handle_request(char* request, int length, http_response* response) {