refactor(http): change cws_http_s to cws_request_s

This commit is contained in:
2025-10-26 19:23:28 +01:00
parent 699018727b
commit 2f265c40f5
6 changed files with 20 additions and 20 deletions

View File

@@ -24,17 +24,17 @@ typedef enum cws_http_status {
HTTP_NOT_IMPLEMENTED,
} cws_http_status_e;
typedef struct cws_http {
typedef struct cws_request {
int sockfd;
cws_http_method_e method;
string_s *location;
string_s *location_path;
string_s *http_version;
hashmap_s *headers;
} cws_http_s;
} cws_request_s;
cws_http_s *cws_http_parse(string_s *request_str);
cws_request_s *cws_http_parse(string_s *request_str);
void cws_http_free(cws_http_s *request);
void cws_http_free(cws_request_s *request);
#endif