项目源代码仓库 GitHub
Chunked识别
MyString contentLen = Header["Content-Length"];
ContentLength = contentLen != "" ? stoi(contentLen) : ContentLength;
Cookie = Header["Cookie"];
Server = Header["Server"];
TransferEncoding = Header["Transfer-Encoding"];
IsChunked = ContentLength==0;
就是这么简单粗暴,正文文本长度为0那就是Chunked