Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wander committed Mar 22, 2024
1 parent 40dd899 commit 8cac8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gostd/src/net/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ pub fn ReadResponse(mut r: impl BufRead, req: &Request) -> HttpResult {
Ok(resp)
}

// chunk数据是以16位数据长度 7acc\r\n独立行开头+ [data] 下一行以\r\n结尾数据段形式,所以数据的结尾用0\r\n表示。如下示例数据的hello 和world 就是[data]
// chunk数据是以16位数据长度 7acc\r\n独立行开头+ [data] 下一行以\r\n结尾数据段形式,所以数据的结尾用0\r\n表示。
fn parseChunkedBody(mut r: impl BufRead) -> Vec<u8> {
let mut body: Vec<u8> = Vec::new();
let mut size_buf = vec![];
Expand Down

0 comments on commit 8cac8ae

Please sign in to comment.