【HTTP】HTTP解析
首先我们来看一下HTTP报文的结构
解析请求行
int process_status_line(char *start, char *end, struct http_request *httpRequest) {
int size = end - start;
//method
char *space = strstr(start," ");
assert(space != NULL);
int method_size = space - start;
httpRequest->met
原创
2020-08-10 17:19:59 ·
162 阅读 ·
0 评论