改用自行实现的http读取与解析,同时修复部分bug

This commit is contained in:
2025-12-17 18:13:39 +08:00
parent e0a3f0d3f1
commit a73b317547
7 changed files with 76 additions and 30 deletions

View File

@ -1,7 +1,13 @@
#ifndef HTTP_REL
#define HTTP_REL
const char *http_get_body(const char *buf);
#include "config.h"
typedef struct httpbuf{
char *buf;
int size;
}httpbuf;//http分块结构体
char *recv_http_request(int cfd);
int init_http_network(int port, log_manager *logger);