improve server loop

This commit is contained in:
2025-08-02 16:19:34 +02:00
parent fd8d7b1f17
commit bcbcb10d1c
4 changed files with 40 additions and 31 deletions

View File

@@ -43,7 +43,7 @@ typedef struct cws_http_t {
* @param[in] request_str The http request sent to the server
* @return Returns a http_t pointer to the request
*/
cws_http *cws_http_parse(char *request_str, int sockfd, cws_config *config);
cws_http *cws_http_parse(mcl_string *request_str, int sockfd, cws_config *config);
int cws_http_get_content_type(cws_http *request, char *content_type);